Class AbstractScatterplotVisualization
- java.lang.Object
-
- elki.visualization.visualizers.AbstractVisualization
-
- elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
-
- All Implemented Interfaces:
DataStoreListener
,ResultListener
,VisualizationListener
,Visualization
,java.util.EventListener
- Direct Known Subclasses:
AbstractTooltipVisualization
,AxisVisualization.Instance
,BubbleVisualization.Instance
,ClusterAlphaHullVisualization.Instance
,ClusterConvexHullVisualization.Instance
,ClusterMeanVisualization.Instance
,ClusterOrderVisualization.Instance
,ClusterStarVisualization.Instance
,COPVectorVisualization.Instance
,DensityEstimationOverlay.Instance
,DistanceFunctionVisualization.Instance
,EMClusterVisualization.Instance
,MarkerVisualization.Instance
,MoveObjectsToolVisualization.Instance
,PolygonVisualization.Instance
,ReferencePointsVisualization.Instance
,SelectionConvexHullVisualization.Instance
,SelectionCubeVisualization.Instance
,SelectionDotVisualization.Instance
,SelectionToolCubeVisualization.Instance
,SelectionToolDotVisualization.Instance
,TreeMBRVisualization.Instance
,TreeSphereVisualization.Instance
,UncertainBoundingBoxVisualization.Instance
,UncertainInstancesVisualization.Instance
,UncertainSamplesVisualization.Instance
,VoronoiVisualization.Instance
public abstract class AbstractScatterplotVisualization extends AbstractVisualization
Default class to handle 2D projected visualizations.- Since:
- 0.3
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected Projection2D
proj
The current projectionprotected Relation<? extends NumberVector>
rel
The representation we visualizeprotected SamplingResult
sample
The DBID sample-
Fields inherited from class elki.visualization.visualizers.AbstractVisualization
context, layer, svgp, task
-
-
Constructor Summary
Constructors Constructor Description AbstractScatterplotVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.w3c.dom.Element
setupCanvas()
Setup our canvas.static org.w3c.dom.Element
setupCanvas(SVGPlot svgp, Projection2D proj, double margin, double width, double height)
Utility function to setup a canvas element for the visualization.void
visualizationChanged(VisualizationItem item)
Visualization has changed.-
Methods inherited from class elki.visualization.visualizers.AbstractVisualization
addListeners, contentChanged, destroy, fullRedraw, getHeight, getLayer, getWidth, incrementalRedraw, resultChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.result.ResultListener
resultAdded, resultRemoved
-
-
-
-
Field Detail
-
proj
protected final Projection2D proj
The current projection
-
rel
protected final Relation<? extends NumberVector> rel
The representation we visualize
-
sample
protected final SamplingResult sample
The DBID sample
-
-
Constructor Detail
-
AbstractScatterplotVisualization
public AbstractScatterplotVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor.- Parameters:
context
- Visualizer contexttask
- Visualization taskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightproj
- Projection
-
-
Method Detail
-
setupCanvas
protected org.w3c.dom.Element setupCanvas()
Setup our canvas.- Returns:
- Canvas
-
setupCanvas
public static org.w3c.dom.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.
-
visualizationChanged
public void visualizationChanged(VisualizationItem item)
Description copied from interface:VisualizationListener
Visualization has changed.- Specified by:
visualizationChanged
in interfaceVisualizationListener
- Overrides:
visualizationChanged
in classAbstractVisualization
- Parameters:
item
- Changed visualization
-
-