Class TooltipScoreVisualization.Instance
- java.lang.Object
-
- elki.visualization.visualizers.AbstractVisualization
-
- elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
-
- elki.visualization.visualizers.scatterplot.AbstractTooltipVisualization
-
- elki.visualization.visualizers.scatterplot.TooltipScoreVisualization.Instance
-
- All Implemented Interfaces:
DataStoreListener
,ResultListener
,VisualizationListener
,Visualization
,java.util.EventListener
- Enclosing class:
- TooltipScoreVisualization
public class TooltipScoreVisualization.Instance extends AbstractTooltipVisualization
Instance- Author:
- Remigius Wojdanowski, Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private double
fontsize
Font size to use.private Relation<? extends java.lang.Number>
result
Number value to visualize-
Fields inherited from class elki.visualization.visualizers.scatterplot.AbstractTooltipVisualization
hoverer, TOOLTIP_AREA, TOOLTIP_HIDDEN, TOOLTIP_STICKY, TOOLTIP_VISIBLE
-
Fields inherited from class elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
proj, rel, sample
-
Fields inherited from class elki.visualization.visualizers.AbstractVisualization
context, layer, svgp, task
-
-
Constructor Summary
Constructors Constructor Description Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.w3c.dom.Element
makeTooltip(DBIDRef id, double x, double y, double dotsize)
Make a tooltip Element for this id.protected void
setupCSS(SVGPlot svgp)
Registers the Tooltip-CSS-Class at a SVGPlot.-
Methods inherited from class elki.visualization.visualizers.scatterplot.AbstractTooltipVisualization
fullRedraw, handleHoverEvent, toggleTooltip
-
Methods inherited from class elki.visualization.visualizers.scatterplot.AbstractScatterplotVisualization
setupCanvas, setupCanvas, visualizationChanged
-
Methods inherited from class elki.visualization.visualizers.AbstractVisualization
addListeners, contentChanged, destroy, getHeight, getLayer, getWidth, incrementalRedraw, resultChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.database.datastore.DataStoreListener
contentChanged
-
Methods inherited from interface elki.result.ResultListener
resultAdded, resultRemoved
-
-
-
-
Field Detail
-
result
private Relation<? extends java.lang.Number> result
Number value to visualize
-
fontsize
private double fontsize
Font size to use.
-
-
Constructor Detail
-
Instance
public Instance(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Constructor- Parameters:
context
- Visualizer contexttask
- Taskplot
- Plotwidth
- Widthheight
- Heightproj
- Projection
-
-
Method Detail
-
makeTooltip
protected org.w3c.dom.Element makeTooltip(DBIDRef id, double x, double y, double dotsize)
Description copied from class:AbstractTooltipVisualization
Make a tooltip Element for this id.- Specified by:
makeTooltip
in classAbstractTooltipVisualization
- Parameters:
id
- Id to make a tooltip forx
- X positiony
- Y positiondotsize
- Size of a dot- Returns:
- Element
-
setupCSS
protected void setupCSS(SVGPlot svgp)
Registers the Tooltip-CSS-Class at a SVGPlot.- Specified by:
setupCSS
in classAbstractTooltipVisualization
- Parameters:
svgp
- the SVGPlot to register the Tooltip-CSS-Class.
-
-