
NV - Vector type in relationpublic abstract class AbstractParallelVisualization<NV extends NumberVector<?>> extends AbstractVisualization
| Modifier and Type | Field and Description |
|---|---|
protected double |
axsep
Space between two axes
|
(package private) double[] |
margins
margin
|
protected ProjectionParallel |
proj
The current projection
|
protected Relation<NV> |
relation
The representation we visualize
|
(package private) double[] |
size
viewbox size
|
context, layer, pendingRedraw, svgp, task| Constructor and Description |
|---|
AbstractParallelVisualization(VisualizationTask task)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
getAxisSep()
Distance between axes.
|
protected double |
getMarginLeft() |
protected double |
getMarginTop() |
protected double |
getSizeX()
Get width of main canvas.
|
protected double |
getSizeY() |
protected double |
getVisibleAxisX(double d)
Get the position of visible axis d
|
private void |
recalcAxisPositions()
Recalculate axis positions, in particular after projection changes.
|
void |
resultChanged(Result current)
Notify that the current result has changed substantially.
|
Element |
setupCanvas(SVGPlot svgp,
ProjectionParallel proj,
double width,
double height)
Utility function to setup a canvas element for the visualization.
|
contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, redraw, resultAdded, resultRemoved, synchronizedRedrawprotected final ProjectionParallel proj
protected final Relation<NV extends NumberVector<?>> relation
final double[] margins
protected double axsep
final double[] size
public AbstractParallelVisualization(VisualizationTask task)
task - Visualization taskpublic Element setupCanvas(SVGPlot svgp, ProjectionParallel proj, double width, double height)
svgp - Plot elementproj - Projection to usewidth - Widthheight - Heightprotected double getSizeX()
protected double getSizeY()
protected double getMarginLeft()
protected double getMarginTop()
protected double getAxisSep()
private void recalcAxisPositions()
protected double getVisibleAxisX(double d)
d - Visible axis numberpublic void resultChanged(Result current)
ResultListenerresultChanged in interface ResultListenerresultChanged in class AbstractVisualizationcurrent - Result that has changed.