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, rel
context, 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.
|
setupCanvas
contextChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw
public 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()
Visualization
destroy
in interface Visualization
destroy
in class AbstractVisualization
public void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
protected 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)
DataStoreListener
contentChanged
in interface DataStoreListener
e
- the update event