
NV - Number Vectorpublic abstract class AbstractTooltipVisualization<NV extends NumberVector<NV,?>> extends P2DVisualization<NV> implements DataStoreListener
| Modifier and Type | Field and Description |
|---|---|
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, relcontext, layer, pendingRedraw, svgp, task| Constructor and Description |
|---|
AbstractTooltipVisualization(VisualizationTask task) |
| Modifier and Type | Method and Description |
|---|---|
void |
contentChanged(DataStoreEvent e)
Invoked after objects of the datastore have been updated, inserted or
removed in some way.
|
void |
destroy()
Destroy the visualization.
|
protected void |
handleHoverEvent(Event evt)
Handle the hover events.
|
protected abstract Element |
makeTooltip(DBID id,
double x,
double y,
double dotsize) |
void |
redraw()
Perform a full redraw.
|
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.
|
setupCanvascontextChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedrawpublic static final String TOOLTIP_HIDDEN
public static final String TOOLTIP_VISIBLE
public static final String TOOLTIP_STICKY
public static final String TOOLTIP_AREA
public AbstractTooltipVisualization(VisualizationTask task)
public void destroy()
Visualizationdestroy in interface Visualizationdestroy in class AbstractVisualizationpublic void redraw()
AbstractVisualizationredraw in class AbstractVisualizationprotected 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.public void contentChanged(DataStoreEvent e)
DataStoreListenercontentChanged in interface DataStoreListenere - the update event