public class AxisVisibilityVisualization.Instance extends AbstractParallelVisualization<NumberVector>
Modifier and Type | Field and Description |
---|---|
(package private) double |
buttonsize
Button size
|
(package private) double |
controlsize
Active area size
|
static String |
SAV_BORDER
CSS class for a button border
|
static String |
SAV_BUTTON
CSS class for a tool button
|
static String |
SAV_CROSS
CSS class for a button cross
|
static String |
SELECTAXISVISIBILITY
Generic tags to indicate the type of element.
|
(package private) double |
ypos
Vertical position
|
axsep, margins, proj, relation, size
context, layer, svgp, task
Constructor and Description |
---|
AxisVisibilityVisualization.Instance(VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addCSSClasses(SVGPlot svgp)
Adds the required CSS-Classes
|
private void |
addEventListener(Element tag,
int axis)
Add an event listener to the Element
|
void |
fullRedraw()
Request a full redrawing of the visualization.
|
protected void |
makeButtonForVisible(int anum,
int apos)
Make a button for a visible axis
|
private void |
makeButtonsForHidden(int vnum,
int first,
int count,
int dim)
Insert buttons for hidden dimensions.
|
getAxisSep, getMarginLeft, getMarginTop, getSizeX, getSizeY, getVisibleAxisX, setupCanvas, visualizationChanged
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved
public static final String SELECTAXISVISIBILITY
public static final String SAV_BUTTON
public static final String SAV_BORDER
public static final String SAV_CROSS
double controlsize
double buttonsize
double ypos
public AxisVisibilityVisualization.Instance(VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
task
- VisualizationTaskplot
- Plot to draw towidth
- Embedding widthheight
- Embedding heightproj
- Projectionpublic void fullRedraw()
Visualization
fullRedraw
in interface Visualization
fullRedraw
in class AbstractParallelVisualization<NumberVector>
protected void makeButtonForVisible(int anum, int apos)
anum
- Axis numberapos
- Axis position in plotprivate void makeButtonsForHidden(int vnum, int first, int count, int dim)
vnum
- Column number (= next visible axis number)first
- First invisible axiscount
- Number of invisible axesdim
- Number of total dimensionsprivate void addEventListener(Element tag, int axis)
tag
- Element to add the listeneraxis
- Axis number (including hidden axes)private void addCSSClasses(SVGPlot svgp)
svgp
- SVG-PlotCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.