|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap<K,Object> de.lmu.ifi.dbs.elki.utilities.datastructures.AnyMap<String> de.lmu.ifi.dbs.elki.visualization.VisualizationTask
public class VisualizationTask
Container class, with ugly casts to reduce generics crazyness.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Field Summary | |
---|---|
(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 Summary | |
---|---|
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 |
Method Summary | ||
---|---|---|
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()
|
|
|
getProj()
|
|
|
getRelation()
|
|
|
getResult()
|
|
String |
getShortName()
A short name for the result, useful for file names. |
|
double |
getWidth()
|
|
int |
hashCode()
|
|
String |
toString()
|
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.datastructures.AnyMap |
---|
get, get, getGenerics |
Methods inherited from class java.util.HashMap |
---|
clear, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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
- HeightMethod Detail |
---|
public 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()
clone
in class HashMap<String,Object>
public VisualizationTask clone(SVGPlot newplot, VisualizerContext context)
newplot
- Replacement plot to usecontext
- Visualizer context
public VisualizationTask clone(SVGPlot plot, VisualizerContext context, Projection p, double width, double height)
plot
- new plotp
- Projection to usewidth
- Widthheight
- Height
public 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()
hashCode
in interface Map<String,Object>
hashCode
in class AbstractMap<String,Object>
public boolean equals(Object o)
equals
in interface Map<String,Object>
equals
in class AbstractMap<String,Object>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |