public class KeyVisualization.Instance extends AbstractVisualization
Modifier and Type | Field and Description |
---|---|
private Clustering<Model> |
clustering
Clustering to display
|
private static String |
KEY_CAPTION
CSS class for key captions.
|
private static String |
KEY_ENTRY
CSS class for key entries.
|
private static String |
KEY_HIERLINE
CSS class for hierarchy plot lines
|
context, layer, pendingRedraw, svgp, task
Constructor and Description |
---|
KeyVisualization.Instance(VisualizationTask task)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the visualization.
|
private double |
drawHierarchy(SVGPlot svgp,
MarkerLibrary ml,
DoubleDoublePair size,
DoubleDoublePair pos,
int depth,
Cluster<Model> cluster,
gnu.trove.map.TObjectIntMap<Cluster<Model>> cnum,
Hierarchy<Cluster<Model>> hier) |
protected void |
redraw()
Perform a full redraw.
|
void |
resultChanged(Result current)
Notify that the current result has changed substantially.
|
protected void |
setStylePolicy()
Trigger a style change.
|
protected void |
setupCSS(SVGPlot svgp)
Registers the Tooltip-CSS-Class at a SVGPlot.
|
contentChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultRemoved, synchronizedRedraw
private static final String KEY_CAPTION
private static final String KEY_ENTRY
private static final String KEY_HIERLINE
private Clustering<Model> clustering
public KeyVisualization.Instance(VisualizationTask task)
task
- Visualization taskpublic void destroy()
Visualization
destroy
in interface Visualization
destroy
in class AbstractVisualization
public void resultChanged(Result current)
ResultListener
resultChanged
in interface ResultListener
resultChanged
in class AbstractVisualization
current
- Result that has changed.protected void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
private double drawHierarchy(SVGPlot svgp, MarkerLibrary ml, DoubleDoublePair size, DoubleDoublePair pos, int depth, Cluster<Model> cluster, gnu.trove.map.TObjectIntMap<Cluster<Model>> cnum, Hierarchy<Cluster<Model>> hier)
protected void setStylePolicy()
protected void setupCSS(SVGPlot svgp)
svgp
- the SVGPlot to register the Tooltip-CSS-Class.