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 |
context
The active context
|
(package private) VisFactory |
factory
The factory
|
double |
height
Height
|
static int |
LEVEL_BACKGROUND
Background layer
|
static int |
LEVEL_DATA
Data layer
|
static int |
LEVEL_FOREGROUND
Passive foreground layer
|
static int |
LEVEL_INTERACTIVE
Active foreground layer (interactive elements)
|
static int |
LEVEL_STATIC
Static plot layer
|
static String |
META_LEVEL
Meta data key: Level for visualizer ordering
Returns an integer indicating the "temporal position" of this Visualizer.
|
static String |
META_NODETAIL
Mark as not having a (sensible) detail view.
|
static String |
META_NOEXPORT
Flag to signal the visualizer should not be exported.
|
static String |
META_NOTHUMB
Flag to signal there is no thumbnail needed.
|
static String |
META_TOOL
Flag to mark the visualizer as tool.
|
static String |
META_VISIBLE
Flag to control visibility.
|
static String |
META_VISIBLE_DEFAULT
Flag to signal default visibility of a visualizer.
|
(package private) String |
name
Name
|
(package private) Projection |
proj
The current projection
|
(package private) Relation<?> |
relation
The main representation
|
(package private) Result |
result
The result we are attached to
|
private static long |
serialVersionUID
Serial number
|
(package private) SVGPlot |
svgp
The plot to draw onto
|
static String |
THUMBNAIL
Constant for using thumbnail
|
static String |
THUMBNAIL_RESOLUTION
Thumbnail size
|
double |
width
Width
|
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, getGenerics
private 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()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
public int compareTo(VisualizationTask other)
compareTo
in interface Comparable<VisualizationTask>
public String toString()
toString
in class AbstractMap<String,Object>
public int hashCode()