Class SilhouettePlotSelectionVisualization.Instance
- java.lang.Object
-
- elki.visualization.visualizers.AbstractVisualization
-
- elki.visualization.visualizers.silhouette.AbstractSilhouetteVisualization
-
- elki.visualization.visualizers.silhouette.SilhouettePlotSelectionVisualization.Instance
-
- All Implemented Interfaces:
DataStoreListener
,ResultListener
,VisualizationListener
,Visualization
,java.util.EventListener
- Enclosing class:
- SilhouettePlotSelectionVisualization
public static class SilhouettePlotSelectionVisualization.Instance extends AbstractSilhouetteVisualization
Instance.- Author:
- Robert Gehde
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
CSS_MARKER
CSS class for markersprotected static java.lang.String
CSS_RANGEMARKER
CSS class for markersprivate org.w3c.dom.Element
mtag
Element for the markerprivate int
plotSize
Nmber of points pllus spaces in the plot-
Fields inherited from class elki.visualization.visualizers.silhouette.AbstractSilhouetteVisualization
plotheight, plotwidth, silhouette
-
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()
Adds the required CSS-Classesvoid
addMarker()
Add marker for the selected IDs to mtagprivate org.w3c.dom.Element
addMarkerRect(double x1, double width)
Create a rectangle as marker (Marker higher than plot!)void
fullRedraw()
Request a full redrawing of the visualization.-
Methods inherited from class elki.visualization.visualizers.silhouette.AbstractSilhouetteVisualization
makeLayerElement
-
Methods inherited from class elki.visualization.visualizers.AbstractVisualization
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultChanged, visualizationChanged
-
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
-
CSS_MARKER
protected static final java.lang.String CSS_MARKER
CSS class for markers- See Also:
- Constant Field Values
-
CSS_RANGEMARKER
protected static final java.lang.String CSS_RANGEMARKER
CSS class for markers- See Also:
- Constant Field Values
-
mtag
private org.w3c.dom.Element mtag
Element for the marker
-
plotSize
private int plotSize
Nmber of points pllus spaces in the plot
-
-
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
-
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
-
addMarker
public void addMarker()
Add marker for the selected IDs to mtag
-
addMarkerRect
private org.w3c.dom.Element addMarkerRect(double x1, double width)
Create a rectangle as marker (Marker higher than plot!)- Parameters:
x1
- X-Value for the markerwidth
- Width of an entry- Returns:
- SVG-Element svg-rectangle
-
addCSSClasses
private void addCSSClasses()
Adds the required CSS-Classes
-
-