NV
- Type of the DatabaseObject being visualized.N
- Tree node typeE
- Tree entry typepublic class TreeMBRVisualization<NV extends NumberVector<NV,?>,N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry> extends P2DVisualization<NV> implements DataStoreListener
Modifier and Type | Class and Description |
---|---|
static class |
TreeMBRVisualization.Factory<NV extends NumberVector<NV,?>>
Factory
|
Modifier and Type | Field and Description |
---|---|
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 AbstractRStarTree<N,E> |
tree
The tree we visualize
|
proj, rel
context, layer, pendingRedraw, svgp, task
Constructor and Description |
---|
TreeMBRVisualization(VisualizationTask task,
boolean fill)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
contentChanged(DataStoreEvent e)
Invoked after objects of the datastore have been updated, inserted or
removed in some way.
|
void |
destroy()
Destroy the visualization.
|
protected void |
redraw()
Perform a full redraw.
|
private void |
visualizeRTreeEntry(SVGPlot svgp,
Element layer,
Projection2D proj,
AbstractRStarTree<? extends N,E> rtree,
E entry,
int depth)
Recursively draw the MBR rectangles.
|
setupCanvas
contextChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw
public static final String INDEX
public static final String NAME
protected boolean fill
protected AbstractRStarTree<N extends AbstractRStarTreeNode<N,E>,E extends SpatialEntry> tree
public TreeMBRVisualization(VisualizationTask task, boolean fill)
task
- Visualization taskfill
- Fill flagprotected void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
private void visualizeRTreeEntry(SVGPlot svgp, Element layer, Projection2D proj, AbstractRStarTree<? extends N,E> rtree, E entry, int depth)
svgp
- SVG Plotlayer
- Layerproj
- Projectionrtree
- Rtree 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