Class TreeSphereVisualization.Instance<N extends AbstractMTreeNode<?,N,E>,E extends MTreeEntry>
- java.lang.Object
-
- elki.visualization.visualizers.AbstractVisualization
-
- elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
-
- elki.visualization.visualizers.scatterplot.index.TreeSphereVisualization.Instance<N,E>
-
- Type Parameters:
N
- Tree node typeE
- Tree entry type
- All Implemented Interfaces:
DataStoreListener
,ResultListener
,VisualizationListener
,Visualization
,java.util.EventListener
- Enclosing class:
- TreeSphereVisualization
public class TreeSphereVisualization.Instance<N extends AbstractMTreeNode<?,N,E>,E extends MTreeEntry> extends AbstractScatterplotVisualization implements DataStoreListener
Instance for a particular tree.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected TreeSphereVisualization.Mode
dist
Drawing mode (distance) to useprotected double
p
protected AbstractMTree<?,N,E,?>
tree
The tree we visualize-
Fields inherited from class elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
proj, rel, sample
-
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, Projection proj)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
Destroy the visualization.void
fullRedraw()
Request a full redrawing of the visualization.private void
visualizeMTreeEntry(SVGPlot svgp, org.w3c.dom.Element layer, Projection2D proj, AbstractMTree<?,N,E,?> mtree, E entry, int depth)
Recursively draw the MBR rectangles.-
Methods inherited from class elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
setupCanvas, setupCanvas, visualizationChanged
-
Methods inherited from class elki.visualization.visualizers.AbstractVisualization
addListeners, contentChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.database.datastore.DataStoreListener
contentChanged
-
Methods inherited from interface elki.result.ResultListener
resultAdded, resultRemoved
-
-
-
-
Field Detail
-
p
protected double p
-
dist
protected TreeSphereVisualization.Mode dist
Drawing mode (distance) to use
-
tree
protected AbstractMTree<?,N extends AbstractMTreeNode<?,N,E>,E extends MTreeEntry,?> tree
The tree we visualize
-
-
Constructor Detail
-
Instance
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor- Parameters:
context
- Visualizer contexttask
- Taskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightproj
- Projection
-
-
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
-
visualizeMTreeEntry
private void visualizeMTreeEntry(SVGPlot svgp, org.w3c.dom.Element layer, Projection2D proj, AbstractMTree<?,N,E,?> mtree, E entry, int depth)
Recursively draw the MBR rectangles.- Parameters:
svgp
- SVG Plotlayer
- Layerproj
- Projectionmtree
- Mtree to visualizeentry
- Current entrydepth
- Current depth
-
destroy
public void destroy()
Description copied from interface:Visualization
Destroy the visualization. Called after the elements have been removed from the document. Implementations should remove their listeners etc.- Specified by:
destroy
in interfaceVisualization
- Overrides:
destroy
in classAbstractVisualization
-
-