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
|
rel
context, 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.
|
setupCanvas
contextChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw
private 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()
Visualization
destroy
in interface Visualization
destroy
in class AbstractVisualization
public void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
public void contentChanged(DataStoreEvent e)
DataStoreListener
contentChanged
in interface DataStoreListener
e
- the update event