de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d
Class P2DVisualization<NV extends NumberVector<?,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization<NV>
- All Implemented Interfaces:
- ResultListener, ContextChangeListener, Visualization, EventListener
- Direct Known Subclasses:
- AbstractTooltipVisualization, AxisVisualization, BubbleVisualization, ClusterConvexHullVisualization, ClusteringVisualization, ClusterMeanVisualization, ClusterOrderVisualization, DotVisualization, EMClusterVisualization, MoveObjectsToolVisualization, PolygonVisualization, ReferencePointsVisualization, SelectionConvexHullVisualization, SelectionCubeVisualization, SelectionDotVisualization, SelectionToolCubeVisualization, SelectionToolDotVisualization, ToolBox2DVisualization, TreeMBRVisualization, TreeSphereVisualization
public abstract class P2DVisualization<NV extends NumberVector<?,?>>
- extends AbstractVisualization
Default class to handle 2D projected visualizations.
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
contextChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, redraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proj
protected final Projection2D proj
- The current projection
rel
protected final Relation<NV extends NumberVector<?,?>> rel
- The representation we visualize
P2DVisualization
public P2DVisualization(VisualizationTask task)
- Constructor.
- Parameters:
task
- Visualization task
setupCanvas
public static Element setupCanvas(SVGPlot svgp,
Projection2D proj,
double margin,
double width,
double height)
- Utility function to setup a canvas element for the visualization.
- Parameters:
svgp
- Plot elementproj
- Projection to usemargin
- Margin to usewidth
- Widthheight
- Height
- Returns:
- wrapper element with appropriate view box.