public abstract class AbstractTooltipVisualization extends AbstractScatterplotVisualization implements DataStoreListener
Modifier and Type | Field and Description |
---|---|
(package private) EventListener |
hoverer
Our event listener.
|
static String |
TOOLTIP_AREA
Generic tag to indicate the type of element.
|
static String |
TOOLTIP_HIDDEN
Generic tag to indicate the type of element.
|
static String |
TOOLTIP_STICKY
Generic tag to indicate the type of element.
|
static String |
TOOLTIP_VISIBLE
Generic tag to indicate the type of element.
|
proj, rel, sample
context, layer, svgp, task
Constructor and Description |
---|
AbstractTooltipVisualization(VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
fullRedraw()
Request a full redrawing of the visualization.
|
protected void |
handleHoverEvent(Event evt)
Handle the hover events.
|
protected abstract Element |
makeTooltip(DBIDRef id,
double x,
double y,
double dotsize)
Make a tooltip Element for this id.
|
protected abstract void |
setupCSS(SVGPlot svgp)
Registers the Tooltip-CSS-Class at a SVGPlot.
|
protected void |
toggleTooltip(Element elem,
String type)
Toggle the Tooltip of an element.
|
setupCanvas, setupCanvas, visualizationChanged
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentChanged
public static final String TOOLTIP_HIDDEN
public static final String TOOLTIP_VISIBLE
public static final String TOOLTIP_STICKY
public static final String TOOLTIP_AREA
EventListener hoverer
public AbstractTooltipVisualization(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
protected abstract Element makeTooltip(DBIDRef id, double x, double y, double dotsize)
id
- Id to make a tooltip forx
- X positiony
- Y positiondotsize
- Size of a dotprotected void handleHoverEvent(Event evt)
evt
- Event.protected void toggleTooltip(Element elem, String type)
elem
- Elementtype
- Event typeprotected abstract void setupCSS(SVGPlot svgp)
svgp
- the SVGPlot to register the Tooltip-CSS-Class.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.