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 java.lang.String |
SAV_BORDER
CSS class for a button border
|
static java.lang.String |
SAV_BUTTON
CSS class for a tool button
|
static java.lang.String |
SAV_CROSS
CSS class for a button cross
|
static java.lang.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 |
---|
Instance(VisualizerContext context,
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(org.w3c.dom.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 java.lang.String SELECTAXISVISIBILITY
public static final java.lang.String SAV_BUTTON
public static final java.lang.String SAV_BORDER
public static final java.lang.String SAV_CROSS
double controlsize
double buttonsize
double ypos
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
context
- Visualizer contexttask
- 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(org.w3c.dom.Element tag, int axis)
tag
- Element to add the listeneraxis
- Axis number (including hidden axes)private void addCSSClasses(SVGPlot svgp)
svgp
- SVG-PlotCopyright © 2019 ELKI Development Team. License information.