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

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>
          extended by de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.SelectionCubeVisualization<NV>
Type Parameters:
NV - Type of the NumberVector being visualized.
All Implemented Interfaces:
ResultListener, ContextChangeListener, Visualization, EventListener

public class SelectionCubeVisualization<NV extends NumberVector<NV,?>>
extends P2DVisualization<NV>
implements ContextChangeListener

Visualizer for generating an SVG-Element containing a cube as marker representing the selected range for each dimension


Nested Class Summary
static class SelectionCubeVisualization.Factory<NV extends NumberVector<NV,?>>
          Factory for visualizers to generate an SVG-Element containing a cube as marker representing the selected range for each dimension
 
Field Summary
static String CSS_CUBE
          CSS class for the filled cube
static String CSS_CUBEFRAME
          CSS class for the cube frame
static String MARKER
          Generic tag to indicate the type of element.
private static String NAME
          A short name characterizing this Visualizer.
protected  boolean nofill
          Fill parameter.
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization
proj, rel
 
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization
context, layer, pendingRedraw, svgp, task
 
Constructor Summary
SelectionCubeVisualization(VisualizationTask task, boolean nofill)
           
 
Method Summary
private  void addCSSClasses(SVGPlot svgp)
          Adds the required CSS-Classes
protected  void redraw()
          Perform a full redraw.
private  void setSVGRect(SVGPlot svgp, Projection2D proj)
          Generates a cube and a frame depending on the selection stored in the context
 
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, destroy, 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
 
Methods inherited from interface de.lmu.ifi.dbs.elki.visualization.visualizers.events.ContextChangeListener
contextChanged
 

Field Detail

NAME

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

See Also:
Constant Field Values

MARKER

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

See Also:
Constant Field Values

CSS_CUBE

public static final String CSS_CUBE
CSS class for the filled cube

See Also:
Constant Field Values

CSS_CUBEFRAME

public static final String CSS_CUBEFRAME
CSS class for the cube frame

See Also:
Constant Field Values

nofill

protected boolean nofill
Fill parameter.

Constructor Detail

SelectionCubeVisualization

public SelectionCubeVisualization(VisualizationTask task,
                                  boolean nofill)
Method Detail

addCSSClasses

private void addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classes

Parameters:
svgp - SVG-Plot

setSVGRect

private void setSVGRect(SVGPlot svgp,
                        Projection2D proj)
Generates a cube and a frame depending on the selection stored in the context

Parameters:
svgp - The plot
proj - The projection

redraw

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

Specified by:
redraw in class AbstractVisualization

Release 0.4.0 (2011-09-20_1324)