de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d
Class P2DVisualization<NV extends NumberVector<?,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
      extended by 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.


Field Summary
protected  Projection2D proj
          The current projection
protected  Relation<NV> rel
          The representation we visualize
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
context, layer, pendingRedraw, svgp, task
 
Constructor Summary
P2DVisualization(VisualizationTask task)
          Constructor.
 
Method Summary
static Element setupCanvas(SVGPlot svgp, Projection2D proj, double margin, double width, double height)
          Utility function to setup a canvas element for the visualization.
 
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
 

Field Detail

proj

protected final Projection2D proj
The current projection


rel

protected final Relation<NV extends NumberVector<?,?>> rel
The representation we visualize

Constructor Detail

P2DVisualization

public P2DVisualization(VisualizationTask task)
Constructor.

Parameters:
task - Visualization task
Method Detail

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 element
proj - Projection to use
margin - Margin to use
width - Width
height - Height
Returns:
wrapper element with appropriate view box.

Release 0.4.0 (2011-09-20_1324)