
public class VisualizationTask extends AnyMap<String> implements Cloneable, Result, Comparable<VisualizationTask>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description | 
|---|---|
| (package private) VisualizerContext | contextThe active context | 
| (package private) VisFactory | factoryThe factory | 
| double | heightHeight | 
| static int | LEVEL_BACKGROUNDBackground layer | 
| static int | LEVEL_DATAData layer | 
| static int | LEVEL_FOREGROUNDPassive foreground layer | 
| static int | LEVEL_INTERACTIVEActive foreground layer (interactive elements) | 
| static int | LEVEL_STATICStatic plot layer | 
| static String | META_LEVELMeta data key: Level for visualizer ordering
 
 Returns an integer indicating the "temporal position" of this Visualizer. | 
| static String | META_NODETAILMark as not having a (sensible) detail view. | 
| static String | META_NOEXPORTFlag to signal the visualizer should not be exported. | 
| static String | META_NOTHUMBFlag to signal there is no thumbnail needed. | 
| static String | META_TOOLFlag to mark the visualizer as tool. | 
| static String | META_VISIBLEFlag to control visibility. | 
| static String | META_VISIBLE_DEFAULTFlag to signal default visibility of a visualizer. | 
| (package private) String | nameName | 
| (package private) Projection | projThe current projection | 
| (package private) Relation<?> | relationThe main representation | 
| (package private) Result | resultThe result we are attached to | 
| private static long | serialVersionUIDSerial number | 
| (package private) SVGPlot | svgpThe plot to draw onto | 
| static String | THUMBNAILConstant for using thumbnail | 
| static String | THUMBNAIL_RESOLUTIONThumbnail size | 
| double | widthWidth | 
| Constructor and Description | 
|---|
| VisualizationTask(String name,
                 Result result,
                 Relation<?> relation,
                 VisFactory factory)Visualization task. | 
| VisualizationTask(String name,
                 VisualizerContext context,
                 Result result,
                 Relation<?> relation,
                 VisFactory factory,
                 Projection proj,
                 SVGPlot svgp,
                 double width,
                 double height)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| VisualizationTask | clone() | 
| VisualizationTask | clone(SVGPlot newplot,
     VisualizerContext context)Special clone operation that replaces the target plot. | 
| VisualizationTask | clone(SVGPlot plot,
     VisualizerContext context,
     Projection p,
     double width,
     double height)Special clone operation to set projection and size. | 
| int | compareTo(VisualizationTask other) | 
| boolean | equals(Object o) | 
| VisualizerContext | getContext()Get the visualizer context. | 
| VisFactory | getFactory()Get the visualizer factory. | 
| double | getHeight() | 
| String | getLongName()A "pretty" name for the result, for use in titles, captions and menus. | 
| SVGPlot | getPlot() | 
| <P extends Projection>  | getProj() | 
| <R extends Relation<?>>  | getRelation() | 
| <R extends Result>  | getResult() | 
| String | getShortName()A short name for the result, useful for file names. | 
| double | getWidth() | 
| int | hashCode() | 
| String | toString() | 
get, get, getGenericsprivate static final long serialVersionUID
public static final String THUMBNAIL
public static final String THUMBNAIL_RESOLUTION
public static final String META_LEVEL
public static final String META_VISIBLE
public static final String META_NOTHUMB
public static final String META_NODETAIL
public static final String META_NOEXPORT
public static final String META_VISIBLE_DEFAULT
public static final String META_TOOL
public static final int LEVEL_BACKGROUND
public static final int LEVEL_DATA
public static final int LEVEL_STATIC
public static final int LEVEL_FOREGROUND
public static final int LEVEL_INTERACTIVE
String name
VisualizerContext context
VisFactory factory
Result result
Projection proj
Relation<?> relation
SVGPlot svgp
public double width
public double height
public VisualizationTask(String name, Result result, Relation<?> relation, VisFactory factory)
name - Nameresult - Resultrelation - Relation to usefactory - Factorypublic VisualizationTask(String name, VisualizerContext context, Result result, Relation<?> relation, VisFactory factory, Projection proj, SVGPlot svgp, double width, double height)
name - Namecontext - Contextresult - Resultrelation - Representationfactory - Factoryproj - Projectionsvgp - Plotwidth - Widthheight - Heightpublic VisualizerContext getContext()
public VisFactory getFactory()
public <R extends Result> R getResult()
public <P extends Projection> P getProj()
public <R extends Relation<?>> R getRelation()
public SVGPlot getPlot()
public double getWidth()
public double getHeight()
public VisualizationTask clone()
public VisualizationTask clone(SVGPlot newplot, VisualizerContext context)
newplot - Replacement plot to usecontext - Visualizer contextpublic VisualizationTask clone(SVGPlot plot, VisualizerContext context, Projection p, double width, double height)
plot - new plotp - Projection to usewidth - Widthheight - Heightpublic String getLongName()
ResultgetLongName in interface Resultpublic String getShortName()
ResultgetShortName in interface Resultpublic int compareTo(VisualizationTask other)
compareTo in interface Comparable<VisualizationTask>public String toString()
toString in class AbstractMap<String,Object>public int hashCode()