public class UncertainSamplesVisualization.Instance extends AbstractScatterplotVisualization
Modifier and Type | Field and Description |
---|---|
static String |
CSS_CLASS
CSS class for uncertain bounding boxes.
|
private static String |
FILL
String constant.
|
protected RandomFactory |
random
Random factory.
|
protected Relation<? extends UncertainObject> |
rel
The representation we visualize
|
proj, sample
context, layer, svgp, task
Constructor and Description |
---|
Instance(VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
drawContinuous(UncertainObject uo,
MarkerLibrary ml,
int cnum,
double size,
Random rand)
Visualize random samples
|
private void |
drawContinuousDefault(UncertainObject uo,
int col,
double size,
Random rand)
Visualize random samples
|
private void |
drawDiscete(DiscreteUncertainObject uo,
MarkerLibrary ml,
int cnum,
double size)
Visualize a discrete uncertain object
|
private void |
drawDiscreteDefault(DiscreteUncertainObject uo,
int col,
double size)
Visualize discrete object
|
void |
fullRedraw()
Request a full redrawing of the visualization.
|
setupCanvas, setupCanvas, visualizationChanged
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved
public static final String CSS_CLASS
protected final Relation<? extends UncertainObject> rel
protected final RandomFactory random
private static final String FILL
public Instance(VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
task
- Visualization taskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightproj
- Projectionpublic void fullRedraw()
Visualization
fullRedraw
in interface Visualization
fullRedraw
in class AbstractVisualization
private void drawDiscete(DiscreteUncertainObject uo, MarkerLibrary ml, int cnum, double size)
uo
- Uncertain objectml
- Marker librarycnum
- Cluster numbersize
- Sizeprivate void drawContinuous(UncertainObject uo, MarkerLibrary ml, int cnum, double size, Random rand)
uo
- Uncertain objectml
- Marker librarycnum
- Cluster numbersize
- Marker sizerand
- Random generatorprivate void drawDiscreteDefault(DiscreteUncertainObject uo, int col, double size)
uo
- Uncertain objectcol
- Colorsize
- Sizeprivate void drawContinuousDefault(UncertainObject uo, int col, double size, Random rand)
uo
- Uncertain objectcol
- Colorsize
- Sizerand
- Random generatorCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.