public static enum Chart2D.ToolTipType extends Enum<Chart2D.ToolTipType> implements IToolTipType
Enum Constant and Description |
---|
DATAVALUES
Chart data value tool tips are shown.
|
NONE
No tool tips are shown.
|
PIXEL
Pixel tool tips are shown (used for debugging).
|
VALUE_SNAP_TO_TRACEPOINTS
Snaps to the nearest
and shows it's
value. |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description of this tool tip type (for UI display).
|
String |
getToolTipText(Chart2D chart,
MouseEvent me)
The base class implementation that returns the tool tip text for the
given mouse event which is a NONE implementation here.
|
static Chart2D.ToolTipType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Chart2D.ToolTipType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Chart2D.ToolTipType DATAVALUES
Note that this implementation only works correctly for one left y axis and one bottom x axis as it does not search for the nearest trace. Displayed values will be formatted according to the formatting of the axes mentioned above.
public static final Chart2D.ToolTipType NONE
public static final Chart2D.ToolTipType PIXEL
public static final Chart2D.ToolTipType VALUE_SNAP_TO_TRACEPOINTS
TracePoint2D
and shows it's
value.
Warning: due to the data structure of multiple axes this is very expensive!
public static Chart2D.ToolTipType[] values()
for (Chart2D.ToolTipType c : Chart2D.ToolTipType.values()) System.out.println(c);
public static Chart2D.ToolTipType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getDescription()
IToolTipType
getDescription
in interface IToolTipType
IToolTipType.getDescription()
public String getToolTipText(Chart2D chart, MouseEvent me)
IToolTipType
getToolTipText
in interface IToolTipType
chart
- the chart for computation of tool tips.me
- the corresponding mouse event.IToolTipType.getToolTipText(info.monitorenter.gui.chart.Chart2D,
java.awt.event.MouseEvent)
Copyright © 2001 - 2010 LGPL, All Rights Footloose.