Class KeyVisualization.Instance
- java.lang.Object
-
- elki.visualization.visualizers.AbstractVisualization
-
- elki.visualization.visualizers.visunproj.KeyVisualization.Instance
-
- All Implemented Interfaces:
DataStoreListener
,ResultListener
,VisualizationListener
,Visualization
,java.util.EventListener
- Enclosing class:
- KeyVisualization
public static class KeyVisualization.Instance extends AbstractVisualization
Instance- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
KEY_CAPTION
CSS class for key captions.private static java.lang.String
KEY_ENTRY
CSS class for key entries.private static java.lang.String
KEY_HIERLINE
CSS class for hierarchy plot lines-
Fields inherited from class elki.visualization.visualizers.AbstractVisualization
context, layer, svgp, task
-
-
Constructor Summary
Constructors Constructor Description Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private double
drawHierarchy(SVGPlot svgp, MarkerLibrary ml, DoubleDoublePair size, DoubleDoublePair pos, int depth, Cluster<Model> cluster, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<Cluster<Model>> cnum, Hierarchy<Cluster<Model>> hier)
void
fullRedraw()
Request a full redrawing of the visualization.protected void
setupCSS(SVGPlot svgp)
Registers the Tooltip-CSS-Class at a SVGPlot.-
Methods inherited from class elki.visualization.visualizers.AbstractVisualization
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultChanged, visualizationChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.result.ResultListener
resultAdded, resultRemoved
-
-
-
-
Field Detail
-
KEY_CAPTION
private static final java.lang.String KEY_CAPTION
CSS class for key captions.- See Also:
- Constant Field Values
-
KEY_ENTRY
private static final java.lang.String KEY_ENTRY
CSS class for key entries.- See Also:
- Constant Field Values
-
KEY_HIERLINE
private static final java.lang.String KEY_HIERLINE
CSS class for hierarchy plot lines- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Instance
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height)
Constructor.- Parameters:
context
- Visualizer contexttask
- Visualization taskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding height
-
-
Method Detail
-
fullRedraw
public void fullRedraw()
Description copied from interface:Visualization
Request a full redrawing of the visualization.- Specified by:
fullRedraw
in interfaceVisualization
- Specified by:
fullRedraw
in classAbstractVisualization
-
drawHierarchy
private double drawHierarchy(SVGPlot svgp, MarkerLibrary ml, DoubleDoublePair size, DoubleDoublePair pos, int depth, Cluster<Model> cluster, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<Cluster<Model>> cnum, Hierarchy<Cluster<Model>> hier)
-
setupCSS
protected void setupCSS(SVGPlot svgp)
Registers the Tooltip-CSS-Class at a SVGPlot.- Parameters:
svgp
- the SVGPlot to register the Tooltip-CSS-Class.
-
-