Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer
          extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.Projection2DVisualizer<NV>
              extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.ReferencePointsVisualizer<NV>
Type Parameters:
NV - Type of the DatabaseObject being visualized.
All Implemented Interfaces:
Parameterizable, ProjectedVisualizer, Visualizer

public class ReferencePointsVisualizer<NV extends NumberVector<NV,?>>
extends Projection2DVisualizer<NV>

Generates a SVG-Element visualizing reference points.

Author:
Remigius Wojdanowski

Field Summary
private  CollectionResult<NV> colResult
          Serves reference points.
private static String NAME
          A short name characterizing this Visualizer.
static String REFPOINT
          Generic tag to indicate the type of element.
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer
context, metadata
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Fields inherited from interface de.lmu.ifi.dbs.elki.visualization.visualizers.Visualizer
LEVEL_BACKGROUND, LEVEL_FOREGROUND, LEVEL_INTERACTIVE, LEVEL_STATIC, META_LEVEL, META_NAME, META_NOTHUMB, META_VISIBLE, META_VISIBLE_DEFAULT
 
Constructor Summary
ReferencePointsVisualizer()
           
 
Method Summary
 void init(VisualizerContext context, CollectionResult<NV> colResult)
          Initializes this Visualizer.
private  void setupCSS(SVGPlot svgp)
          Registers the Reference-Point-CSS-Class at a SVGPlot.
 Element visualize(SVGPlot svgp, VisualizationProjection proj, double width, double height)
          Returns an Element representing a visualization.
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.Projection2DVisualizer
setupCanvas
 
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer
addRedrawListener, fireRedrawEvent, getMetadata, init, removeRedrawListener, requestRedraw, setLevel
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.visualization.visualizers.Visualizer
addRedrawListener, getMetadata, removeRedrawListener
 

Field Detail

colResult

private CollectionResult<NV extends NumberVector<NV,?>> colResult
Serves reference points.


REFPOINT

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

See Also:
Constant Field Values

NAME

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

See Also:
Constant Field Values
Constructor Detail

ReferencePointsVisualizer

public ReferencePointsVisualizer()
Method Detail

init

public void init(VisualizerContext context,
                 CollectionResult<NV> colResult)
Initializes this Visualizer.

Parameters:
context - Visualization context
colResult - contains all reference points.

setupCSS

private void setupCSS(SVGPlot svgp)
Registers the Reference-Point-CSS-Class at a SVGPlot.

Parameters:
svgp - the SVGPlot to register the -CSS-Class.

visualize

public Element visualize(SVGPlot svgp,
                         VisualizationProjection proj,
                         double width,
                         double height)
Description copied from interface: ProjectedVisualizer
Returns an Element representing a visualization.

Parameters:
svgp - plot to contain the returned Element.
proj - projection to use
width - Width of plot
height - Height of plot
Returns:
an Element representing a 2-dimensional visualization.

Release 0.3 (2010-03-31_1612)