NV
- Data type in relationpublic abstract class AbstractParallelVisualization<NV> 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, svgp, task
Constructor and Description |
---|
AbstractParallelVisualization(VisualizerContext context,
VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
fullRedraw()
Request a full redrawing of the visualization.
|
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.
|
org.w3c.dom.Element |
setupCanvas(SVGPlot svgp,
ProjectionParallel proj,
double width,
double height)
Utility function to setup a canvas element for the visualization.
|
void |
visualizationChanged(VisualizationItem item)
Visualization has changed.
|
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved
protected final ProjectionParallel proj
final double[] margins
protected double axsep
final double[] size
public AbstractParallelVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
context
- Visualizer contexttask
- Visualization taskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightproj
- Projectionpublic void fullRedraw()
Visualization
fullRedraw
in interface Visualization
fullRedraw
in class AbstractVisualization
public org.w3c.dom.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 visualizationChanged(VisualizationItem item)
VisualizationListener
visualizationChanged
in interface VisualizationListener
visualizationChanged
in class AbstractVisualization
item
- Changed visualizationCopyright © 2019 ELKI Development Team. License information.