Class SelectionCubeVisualization.Instance
- java.lang.Object
-
- elki.visualization.visualizers.AbstractVisualization
-
- elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
-
- elki.visualization.visualizers.scatterplot.selection.SelectionCubeVisualization.Instance
-
- All Implemented Interfaces:
DataStoreListener
,ResultListener
,VisualizationListener
,Visualization
,java.util.EventListener
- Enclosing class:
- SelectionCubeVisualization
public class SelectionCubeVisualization.Instance extends AbstractScatterplotVisualization
Instance.- Author:
- Heidi Kolb
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CSS_CUBE
CSS class for the filled cubestatic java.lang.String
CSS_CUBEFRAME
CSS class for the cube framestatic java.lang.String
MARKER
Generic tag to indicate the type of element.-
Fields inherited from class elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
proj, rel, sample
-
Fields inherited from class elki.visualization.visualizers.AbstractVisualization
context, layer, svgp, task
-
-
Constructor Summary
Constructors Constructor Description Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classesvoid
fullRedraw()
Request a full redrawing of the visualization.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 elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
setupCanvas, setupCanvas, visualizationChanged
-
Methods inherited from class elki.visualization.visualizers.AbstractVisualization
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.result.ResultListener
resultAdded, resultRemoved
-
-
-
-
Field Detail
-
MARKER
public static final java.lang.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 java.lang.String CSS_CUBE
CSS class for the filled cube- See Also:
- Constant Field Values
-
CSS_CUBEFRAME
public static final java.lang.String CSS_CUBEFRAME
CSS class for the cube frame- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Instance
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor.- Parameters:
context
- Visualizer contexttask
- Visualization taskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightproj
- Projection
-
-
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 plotproj
- The projection
-
fullRedraw
public void fullRedraw()
Description copied from interface:Visualization
Request a full redrawing of the visualization.- Specified by:
fullRedraw
in interfaceVisualization
- Specified by:
fullRedraw
in classAbstractVisualization
-
-