public abstract class P2DVisualization<NV extends NumberVector<?,?>> extends AbstractVisualization
Modifier and Type | Field and Description |
---|---|
protected Projection2D |
proj
The current projection
|
protected Relation<NV> |
rel
The representation we visualize
|
context, layer, pendingRedraw, svgp, task
Constructor and Description |
---|
P2DVisualization(VisualizationTask task)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Element |
setupCanvas(SVGPlot svgp,
Projection2D proj,
double margin,
double width,
double height)
Utility function to setup a canvas element for the visualization.
|
contextChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, redraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw
protected final Projection2D proj
protected final Relation<NV extends NumberVector<?,?>> rel
public P2DVisualization(VisualizationTask task)
task
- Visualization taskpublic static Element setupCanvas(SVGPlot svgp, Projection2D proj, double margin, double width, double height)
svgp
- Plot elementproj
- Projection to usemargin
- Margin to usewidth
- Widthheight
- Height