
N - Tree node typeE - Tree entry typepublic class TreeSphereVisualization<D extends NumberDistance<D,?>,N extends AbstractMTreeNode<?,D,N,E>,E extends MTreeEntry<D>> extends AbstractScatterplotVisualization implements DataStoreListener
| Modifier and Type | Class and Description |
|---|---|
static class |
TreeSphereVisualization.Factory
Factory
|
private static class |
TreeSphereVisualization.Modus
Drawing modes.
|
| Modifier and Type | Field and Description |
|---|---|
protected TreeSphereVisualization.Modus |
dist
Drawing mode (distance) to use
|
protected boolean |
fill
Fill parameter.
|
static String |
INDEX
Generic tag to indicate the type of element.
|
static String |
NAME
A short name characterizing this Visualizer.
|
protected double |
p |
protected AbstractMTree<?,D,N,E> |
tree
The tree we visualize
|
proj, rel, samplecontext, layer, pendingRedraw, svgp, task| Constructor and Description |
|---|
TreeSphereVisualization(VisualizationTask task,
boolean fill)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canVisualize(AbstractMTree<?,?,?,?> tree)
Test for a visualizable index in the context's database.
|
void |
destroy()
Destroy the visualization.
|
static Double |
getLPNormP(AbstractMTree<?,?,?,?> tree)
Get the "p" value of an Lp norm.
|
protected void |
redraw()
Perform a full redraw.
|
private void |
visualizeMTreeEntry(SVGPlot svgp,
Element layer,
Projection2D proj,
AbstractMTree<?,D,N,E> mtree,
E entry,
int depth)
Recursively draw the MBR rectangles.
|
resultChanged, setupCanvascontentChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultRemoved, synchronizedRedrawclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontentChangedpublic static final String INDEX
public static final String NAME
protected double p
protected TreeSphereVisualization.Modus dist
protected AbstractMTree<?,D extends NumberDistance<D,?>,N extends AbstractMTreeNode<?,D,N,E>,E extends MTreeEntry<D>> tree
protected boolean fill
public TreeSphereVisualization(VisualizationTask task, boolean fill)
task - Taskfill - fill flagpublic static Double getLPNormP(AbstractMTree<?,?,?,?> tree)
tree - Tree to visualizepublic static boolean canVisualize(AbstractMTree<?,?,?,?> tree)
tree - Tree to visualizeprotected void redraw()
AbstractVisualizationredraw in class AbstractVisualizationprivate void visualizeMTreeEntry(SVGPlot svgp, Element layer, Projection2D proj, AbstractMTree<?,D,N,E> mtree, E entry, int depth)
svgp - SVG Plotlayer - Layerproj - Projectionmtree - Mtree to visualizeentry - Current entrydepth - Current depthpublic void destroy()
Visualizationdestroy in interface Visualizationdestroy in class AbstractVisualization