|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization<NV> de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.TreeSphereVisualization<NV,D,N,E>
NV
- Type of the DatabaseObject being visualized.N
- Tree node typeE
- Tree entry typepublic class TreeSphereVisualization<NV extends NumberVector<NV,?>,D extends NumberDistance<D,?>,N extends AbstractMTreeNode<NV,D,N,E>,E extends MTreeEntry<D>>
Visualize the bounding sphere of a metric index.
Nested Class Summary | |
---|---|
static class |
TreeSphereVisualization.Factory<NV extends NumberVector<NV,?>>
Factory |
private static class |
TreeSphereVisualization.Modus
Drawing modes. |
Field Summary | |
---|---|
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<NV,D,N,E> |
tree
The tree we visualize |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization |
---|
proj, rel |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
---|
context, layer, pendingRedraw, svgp, task |
Constructor Summary | |
---|---|
TreeSphereVisualization(VisualizationTask task,
boolean fill)
Constructor |
Method Summary | |
---|---|
static boolean |
canVisualize(AbstractMTree<?,?,?,?> tree)
Test for a visualizable index in the context's database. |
void |
contentChanged(DataStoreEvent e)
Invoked after objects of the datastore have been updated, inserted or removed in some way. |
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<NV,D,N,E> mtree,
E entry,
int depth)
Recursively draw the MBR rectangles. |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization |
---|
setupCanvas |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
---|
contextChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INDEX
public static final String NAME
protected double p
protected TreeSphereVisualization.Modus dist
protected AbstractMTree<NV extends NumberVector<NV,?>,D extends NumberDistance<D,?>,N extends AbstractMTreeNode<NV,D,N,E>,E extends MTreeEntry<D>> tree
protected boolean fill
Constructor Detail |
---|
public TreeSphereVisualization(VisualizationTask task, boolean fill)
task
- Taskfill
- fill flagMethod Detail |
---|
public static Double getLPNormP(AbstractMTree<?,?,?,?> tree)
tree
- Tree to visualize
public static boolean canVisualize(AbstractMTree<?,?,?,?> tree)
tree
- Tree to visualize
protected void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
private void visualizeMTreeEntry(SVGPlot svgp, Element layer, Projection2D proj, AbstractMTree<NV,D,N,E> mtree, E entry, int depth)
svgp
- SVG Plotlayer
- Layerproj
- Projectionmtree
- Mtree to visualizeentry
- Current entrydepth
- Current depthpublic void destroy()
Visualization
destroy
in interface Visualization
destroy
in class AbstractVisualization
public void contentChanged(DataStoreEvent e)
DataStoreListener
contentChanged
in interface DataStoreListener
e
- the update event
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |