Class UncertainSamplesVisualization.Instance
- java.lang.Object
-
- elki.visualization.visualizers.AbstractVisualization
-
- elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
-
- elki.visualization.visualizers.scatterplot.uncertain.UncertainSamplesVisualization.Instance
-
- All Implemented Interfaces:
DataStoreListener
,ResultListener
,VisualizationListener
,Visualization
,java.util.EventListener
- Enclosing class:
- UncertainSamplesVisualization
public class UncertainSamplesVisualization.Instance extends AbstractScatterplotVisualization
Instance.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CSS_CLASS
CSS class for uncertain bounding boxes.private static java.lang.String
FILL
String constant.protected RandomFactory
random
Random factory.protected Relation<? extends UncertainObject>
rel
The representation we visualize-
Fields inherited from class elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
proj, 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
drawContinuous(UncertainObject uo, MarkerLibrary ml, int cnum, double size, java.util.Random rand)
Visualize random samplesprivate void
drawContinuousDefault(UncertainObject uo, int col, double size, java.util.Random rand)
Visualize random samplesprivate void
drawDiscete(DiscreteUncertainObject uo, MarkerLibrary ml, int cnum, double size)
Visualize a discrete uncertain objectprivate void
drawDiscreteDefault(DiscreteUncertainObject uo, int col, double size)
Visualize discrete objectvoid
fullRedraw()
Request a full redrawing of the visualization.-
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
-
CSS_CLASS
public static final java.lang.String CSS_CLASS
CSS class for uncertain bounding boxes.- See Also:
- Constant Field Values
-
rel
protected final Relation<? extends UncertainObject> rel
The representation we visualize
-
random
protected final RandomFactory random
Random factory.
-
FILL
private static final java.lang.String FILL
String constant.- 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
-
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
-
drawDiscete
private void drawDiscete(DiscreteUncertainObject uo, MarkerLibrary ml, int cnum, double size)
Visualize a discrete uncertain object- Parameters:
uo
- Uncertain objectml
- Marker librarycnum
- Cluster numbersize
- Size
-
drawContinuous
private void drawContinuous(UncertainObject uo, MarkerLibrary ml, int cnum, double size, java.util.Random rand)
Visualize random samples- Parameters:
uo
- Uncertain objectml
- Marker librarycnum
- Cluster numbersize
- Marker sizerand
- Random generator
-
drawDiscreteDefault
private void drawDiscreteDefault(DiscreteUncertainObject uo, int col, double size)
Visualize discrete object- Parameters:
uo
- Uncertain objectcol
- Colorsize
- Size
-
drawContinuousDefault
private void drawContinuousDefault(UncertainObject uo, int col, double size, java.util.Random rand)
Visualize random samples- Parameters:
uo
- Uncertain objectcol
- Colorsize
- Sizerand
- Random generator
-
-