de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d
Class PolygonVisualization<V 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<V>
          extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.PolygonVisualization<V>
All Implemented Interfaces:
DataStoreListener, ResultListener, ContextChangeListener, Visualization, EventListener

public class PolygonVisualization<V extends NumberVector<?,?>>
extends P2DVisualization<V>
implements DataStoreListener

Renders PolygonsObject in the data set.


Nested Class Summary
static class PolygonVisualization.Factory
          The visualization factory
 
Field Summary
private static String NAME
          A short name characterizing this Visualizer.
static String POLYS
          Generic tag to indicate the type of element.
protected  Projection2D proj
          The current projection
protected  Relation<PolygonsObject> rep
          The representation we visualize
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization
rel
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
context, layer, pendingRedraw, svgp, task
 
Constructor Summary
PolygonVisualization(VisualizationTask task)
          Constructor.
 
Method Summary
 void contentChanged(DataStoreEvent e)
          Invoked after objects of the datastore have been updated, inserted or removed in some way.
 void destroy()
          Destroy the visualization.
 void redraw()
          Perform a full redraw.
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization
setupCanvas
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
contextChanged, getHeight, getLayer, getWidth, incrementalRedraw, 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

NAME

private static final String NAME
A short name characterizing this Visualizer.

See Also:
Constant Field Values

POLYS

public static final String POLYS
Generic tag to indicate the type of element. Used in IDs, CSS-Classes etc.

See Also:
Constant Field Values

proj

protected final Projection2D proj
The current projection


rep

protected final Relation<PolygonsObject> rep
The representation we visualize

Constructor Detail

PolygonVisualization

public PolygonVisualization(VisualizationTask task)
Constructor.

Parameters:
task - Task to visualize
Method Detail

destroy

public void destroy()
Description copied from interface: Visualization
Destroy the visualization. Called after the elements have been removed from the document. Implementations should remove their listeners etc.

Specified by:
destroy in interface Visualization
Overrides:
destroy in class AbstractVisualization

redraw

public void redraw()
Description copied from class: AbstractVisualization
Perform a full redraw.

Specified by:
redraw in class AbstractVisualization

contentChanged

public void contentChanged(DataStoreEvent e)
Description copied from interface: DataStoreListener
Invoked after objects of the datastore have been updated, inserted or removed in some way.

Specified by:
contentChanged in interface DataStoreListener
Parameters:
e - the update event

Release 0.4.0 (2011-09-20_1324)