|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization<NV> de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.AbstractTooltipVisualization<NV>
NV
- Number Vectorpublic abstract class AbstractTooltipVisualization<NV extends NumberVector<NV,?>>
General base class for a tooltip visualizer.
Field Summary | |
---|---|
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. |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization |
---|
proj, rel |
Fields inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
---|
context, layer, pendingRedraw, svgp, task |
Constructor Summary | |
---|---|
AbstractTooltipVisualization(VisualizationTask task)
|
Method Summary | |
---|---|
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. |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.P2DVisualization |
---|
setupCanvas |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualization |
---|
contextChanged, getHeight, getLayer, getWidth, incrementalRedraw, resultAdded, resultChanged, resultRemoved, synchronizedRedraw, testRedraw |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TOOLTIP_HIDDEN
public static final String TOOLTIP_VISIBLE
public static final String TOOLTIP_STICKY
public static final String TOOLTIP_AREA
Constructor Detail |
---|
public AbstractTooltipVisualization(VisualizationTask task)
Method Detail |
---|
public void destroy()
Visualization
destroy
in interface Visualization
destroy
in class AbstractVisualization
public void redraw()
AbstractVisualization
redraw
in class AbstractVisualization
protected abstract Element makeTooltip(DBID id, double x, double y, double dotsize)
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
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |