Class TooltipScoreVisualization
- java.lang.Object
-
- elki.visualization.visualizers.scatterplot.TooltipScoreVisualization
-
- All Implemented Interfaces:
VisualizationProcessor
,VisFactory
public class TooltipScoreVisualization extends java.lang.Object implements VisFactory
Generates a SVG-Element containing Tooltips. Tooltips remain invisible until their corresponding Marker is touched by the cursor and stay visible as long as the cursor lingers on the marker.- Since:
- 0.4.0
- Author:
- Remigius Wojdanowski, Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TooltipScoreVisualization.Instance
Instancestatic class
TooltipScoreVisualization.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
A short name characterizing this Visualizer.static java.lang.String
NAME_GEN
A short name characterizing this Visualizer.protected TooltipScoreVisualization.Par
settings
Settings
-
Constructor Summary
Constructors Constructor Description TooltipScoreVisualization(TooltipScoreVisualization.Par settings)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addTooltips(java.lang.String nam, Relation<?> val, VisualizerContext context, ScatterPlotProjector<?> p, Relation<?> rel)
Add tooltips.Visualization
makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Produce a visualization instance for the given taskvoid
processNewResult(VisualizerContext context, java.lang.Object result)
Add visualizers for the given result (tree) to the context.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.visualization.visualizers.VisFactory
allowThumbnails, makeVisualizationOrThumbnail
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
A short name characterizing this Visualizer.- See Also:
- Constant Field Values
-
NAME_GEN
public static final java.lang.String NAME_GEN
A short name characterizing this Visualizer.- See Also:
- Constant Field Values
-
settings
protected TooltipScoreVisualization.Par settings
Settings
-
-
Constructor Detail
-
TooltipScoreVisualization
public TooltipScoreVisualization(TooltipScoreVisualization.Par settings)
Constructor.- Parameters:
settings
- Settings
-
-
Method Detail
-
makeVisualization
public Visualization makeVisualization(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
Description copied from interface:VisFactory
Produce a visualization instance for the given task- Specified by:
makeVisualization
in interfaceVisFactory
- Parameters:
context
- Visualization contexttask
- Visualization taskplot
- Plotwidth
- Widthheight
- Heightproj
- Projection- Returns:
- Visualization
-
processNewResult
public void processNewResult(VisualizerContext context, java.lang.Object result)
Description copied from interface:VisFactory
Add visualizers for the given result (tree) to the context.- Specified by:
processNewResult
in interfaceVisFactory
- Specified by:
processNewResult
in interfaceVisualizationProcessor
- Parameters:
context
- Visualization contextresult
- Result to process
-
addTooltips
private void addTooltips(java.lang.String nam, Relation<?> val, VisualizerContext context, ScatterPlotProjector<?> p, Relation<?> rel)
Add tooltips.- Parameters:
nam
- Nameval
- Value relationcontext
- Visualization contextp
- Projectorrel
- Data projection relation
-
-