public class KeyVisualization.Instance extends AbstractVisualization
Modifier and Type | Field and 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
|
context, layer, svgp, task
Constructor and Description |
---|
Instance(VisualizerContext context,
VisualizationTask task,
VisualizationPlot plot,
double width,
double height)
Constructor.
|
Modifier and Type | Method and 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.
|
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, visualizationChanged
private static final java.lang.String KEY_CAPTION
private static final java.lang.String KEY_ENTRY
private static final java.lang.String KEY_HIERLINE
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height)
context
- Visualizer contexttask
- Visualization taskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightpublic void fullRedraw()
Visualization
fullRedraw
in interface Visualization
fullRedraw
in class AbstractVisualization
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)
protected void setupCSS(SVGPlot svgp)
svgp
- the SVGPlot to register the Tooltip-CSS-Class.Copyright © 2019 ELKI Development Team. License information.