de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d
Class ReferencePointsVisualizer<NV extends NumberVector<NV,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer
de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.Projection2DVisualizer<NV>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ReferencePointsVisualizer
public ReferencePointsVisualizer()
init
public void init(VisualizerContext context,
CollectionResult<NV> colResult)
- Initializes this Visualizer.
- Parameters:
context
- Visualization contextcolResult
- 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 usewidth
- Width of plotheight
- Height of plot
- Returns:
- an Element representing a 2-dimensional visualization.