
public class PolygonVisualization<V extends NumberVector<?,?>> extends P2DVisualization<V> implements DataStoreListener
| Modifier and Type | Class and Description |
|---|---|
static class |
PolygonVisualization.Factory
The visualization factory
|
| Modifier and Type | Field and Description |
|---|---|
private static String |
NAME
A short name characterizing this Visualizer.
|
static String |
POLYS
Generic tag to indicate the type of element.
|
protected Projection2D |
proj
The current projection
|
protected Relation<PolygonsObject> |
rep
The representation we visualize
|
relcontext, layer, pendingRedraw, svgp, task| Constructor and Description |
|---|
PolygonVisualization(VisualizationTask task)
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.
|
void |
redraw()
Perform a full redraw.
|
setupCanvascontextChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedrawprivate static final String NAME
public static final String POLYS
protected final Projection2D proj
protected final Relation<PolygonsObject> rep
public PolygonVisualization(VisualizationTask task)
task - Task to visualizepublic void destroy()
Visualizationdestroy in interface Visualizationdestroy in class AbstractVisualizationpublic void redraw()
AbstractVisualizationredraw in class AbstractVisualizationpublic void contentChanged(DataStoreEvent e)
DataStoreListenercontentChanged in interface DataStoreListenere - the update event