|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer
de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.Projection2DVisualizer<NV>
de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.TooltipVisualizer<NV>
NV
- Data type visualized.public class TooltipVisualizer<NV extends NumberVector<NV,?>>
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.
Field Summary | |
---|---|
private AnnotationResult<? extends Number> |
anResult
Contains the "outlierness-scores" to be displayed as Tooltips. |
static OptionID |
DIGITS_ID
OptionID for DIGITS_PARAM . |
private IntParameter |
DIGITS_PARAM
Parameter for the gamma-correction. |
static String |
NAME
A short name characterizing this Visualizer. |
(package private) NumberFormat |
nf
Number formatter used for visualization |
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.AbstractVisualizer |
---|
context, metadata |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Fields inherited from interface de.lmu.ifi.dbs.elki.visualization.visualizers.Visualizer |
---|
LEVEL_BACKGROUND, LEVEL_FOREGROUND, LEVEL_INTERACTIVE, LEVEL_STATIC, META_LEVEL, META_NAME, META_NOTHUMB, META_VISIBLE, META_VISIBLE_DEFAULT |
Constructor Summary | |
---|---|
TooltipVisualizer(Parameterization config)
Constructor, adhering to Parameterizable |
Method Summary | |
---|---|
private Number |
getValue(int id)
Returns the outlierness-score for a given ID. |
protected void |
handleHoverevent(Event evt)
Handle the hover events. |
void |
init(String name,
VisualizerContext context,
OutlierResult result)
Initializes this Visualizer. |
private 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. |
Element |
visualize(SVGPlot svgp,
VisualizationProjection proj,
double width,
double height)
Returns an Element representing a visualization. |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.vis2d.Projection2DVisualizer |
---|
setupCanvas |
Methods inherited from class de.lmu.ifi.dbs.elki.visualization.visualizers.AbstractVisualizer |
---|
addRedrawListener, fireRedrawEvent, getMetadata, init, removeRedrawListener, requestRedraw, setLevel |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.visualization.visualizers.Visualizer |
---|
addRedrawListener, getMetadata, removeRedrawListener |
Field Detail |
---|
public static final OptionID DIGITS_ID
DIGITS_PARAM
.
private final IntParameter DIGITS_PARAM
Key: -tooltip.digits
Default value: 4 < /p>
public static final String NAME
public static final String TOOLTIP_HIDDEN
public static final String TOOLTIP_VISIBLE
public static final String TOOLTIP_STICKY
public static final String TOOLTIP_AREA
private AnnotationResult<? extends Number> anResult
NumberFormat nf
Constructor Detail |
---|
public TooltipVisualizer(Parameterization config)
Parameterizable
config
- ParameterizationMethod Detail |
---|
private Number getValue(int id)
id
- an ID which has to exist in both the database and the result.
public void init(String name, VisualizerContext context, OutlierResult result)
name
- Visualizer namecontext
- Visualization contextresult
- the outlier score visualizedprivate void setupCSS(SVGPlot svgp)
svgp
- the SVGPlot to register the Tooltip-CSS-Class.public Element visualize(SVGPlot svgp, VisualizationProjection proj, double width, double height)
ProjectedVisualizer
svgp
- plot to contain the returned Element.proj
- projection to usewidth
- Width of plotheight
- Height of plot
protected void handleHoverevent(Event evt)
evt
- Event.protected void toggleTooltip(Element elem, String type)
elem
- Elementtype
- Event type
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |