Class AxisVisibilityVisualization.Instance
- java.lang.Object
-
- elki.visualization.visualizers.AbstractVisualization
-
- elki.visualization.visualizers.parallel.AbstractParallelVisualization<NumberVector>
-
- elki.visualization.visualizers.parallel.AxisVisibilityVisualization.Instance
-
- All Implemented Interfaces:
DataStoreListener
,ResultListener
,VisualizationListener
,Visualization
,java.util.EventListener
- Enclosing class:
- AxisVisibilityVisualization
public class AxisVisibilityVisualization.Instance extends AbstractParallelVisualization<NumberVector>
Instance for a particular data set.- Author:
- Robert Rödler, Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double
buttonsize
Button size(package private) double
controlsize
Active area sizestatic java.lang.String
SAV_BORDER
CSS class for a button borderstatic java.lang.String
SAV_BUTTON
CSS class for a tool buttonstatic java.lang.String
SAV_CROSS
CSS class for a button crossstatic java.lang.String
SELECTAXISVISIBILITY
Generic tags to indicate the type of element.(package private) double
ypos
Vertical position-
Fields inherited from class elki.visualization.visualizers.parallel.AbstractParallelVisualization
axsep, margins, proj, relation, size
-
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-Classesprivate void
addEventListener(org.w3c.dom.Element tag, int axis)
Add an event listener to the Elementvoid
fullRedraw()
Request a full redrawing of the visualization.protected void
makeButtonForVisible(int anum, int apos)
Make a button for a visible axisprivate void
makeButtonsForHidden(int vnum, int first, int count, int dim)
Insert buttons for hidden dimensions.-
Methods inherited from class elki.visualization.visualizers.parallel.AbstractParallelVisualization
getAxisSep, getMarginLeft, getMarginTop, getSizeX, getSizeY, getVisibleAxisX, 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
-
SELECTAXISVISIBILITY
public static final java.lang.String SELECTAXISVISIBILITY
Generic tags to indicate the type of element. Used in IDs, CSS-Classes etc.- See Also:
- Constant Field Values
-
SAV_BUTTON
public static final java.lang.String SAV_BUTTON
CSS class for a tool button- See Also:
- Constant Field Values
-
SAV_BORDER
public static final java.lang.String SAV_BORDER
CSS class for a button border- See Also:
- Constant Field Values
-
SAV_CROSS
public static final java.lang.String SAV_CROSS
CSS class for a button cross- See Also:
- Constant Field Values
-
controlsize
double controlsize
Active area size
-
buttonsize
double buttonsize
Button size
-
ypos
double ypos
Vertical position
-
-
Constructor Detail
-
Instance
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor.- Parameters:
context
- Visualizer contexttask
- VisualizationTaskplot
- 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
- Overrides:
fullRedraw
in classAbstractParallelVisualization<NumberVector>
-
makeButtonForVisible
protected void makeButtonForVisible(int anum, int apos)
Make a button for a visible axis- Parameters:
anum
- Axis numberapos
- Axis position in plot
-
makeButtonsForHidden
private void makeButtonsForHidden(int vnum, int first, int count, int dim)
Insert buttons for hidden dimensions.- Parameters:
vnum
- Column number (= next visible axis number)first
- First invisible axiscount
- Number of invisible axesdim
- Number of total dimensions
-
addEventListener
private void addEventListener(org.w3c.dom.Element tag, int axis)
Add an event listener to the Element- Parameters:
tag
- Element to add the listeneraxis
- Axis number (including hidden axes)
-
addCSSClasses
private void addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classes- Parameters:
svgp
- SVG-Plot
-
-