public abstract class AbstractTooltipVisualization extends AbstractScatterplotVisualization implements DataStoreListener
| Modifier and Type | Field and Description | 
|---|---|
(package private) org.w3c.dom.events.EventListener | 
hoverer
Our event listener. 
 | 
static java.lang.String | 
TOOLTIP_AREA
Generic tag to indicate the type of element. 
 | 
static java.lang.String | 
TOOLTIP_HIDDEN
Generic tag to indicate the type of element. 
 | 
static java.lang.String | 
TOOLTIP_STICKY
Generic tag to indicate the type of element. 
 | 
static java.lang.String | 
TOOLTIP_VISIBLE
Generic tag to indicate the type of element. 
 | 
proj, rel, samplecontext, layer, svgp, task| Constructor and Description | 
|---|
AbstractTooltipVisualization(VisualizerContext context,
                            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(org.w3c.dom.events.Event evt)
Handle the hover events. 
 | 
protected abstract org.w3c.dom.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(org.w3c.dom.Element elem,
             java.lang.String type)
Toggle the Tooltip of an element. 
 | 
setupCanvas, setupCanvas, visualizationChangedaddListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontentChangedpublic static final java.lang.String TOOLTIP_HIDDEN
public static final java.lang.String TOOLTIP_VISIBLE
public static final java.lang.String TOOLTIP_STICKY
public static final java.lang.String TOOLTIP_AREA
org.w3c.dom.events.EventListener hoverer
public AbstractTooltipVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
context - Visualizer contexttask - Visualization taskplot - Plot to draw towidth - Embedding widthheight - Embedding heightproj - Projectionpublic void fullRedraw()
VisualizationfullRedraw in interface VisualizationfullRedraw in class AbstractVisualizationprotected abstract org.w3c.dom.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(org.w3c.dom.events.Event evt)
evt - Event.protected void toggleTooltip(org.w3c.dom.Element elem,
                             java.lang.String type)
elem - Elementtype - Event typeprotected abstract void setupCSS(SVGPlot svgp)
svgp - the SVGPlot to register the Tooltip-CSS-Class.Copyright © 2019 ELKI Development Team. License information.