Package info.monitorenter.gui.chart
Enum Class Chart2D.ToolTipType
- All Implemented Interfaces:
IToolTipType
,Serializable
,Comparable<Chart2D.ToolTipType>
,Constable
- Enclosing class:
Chart2D
Types of tool tip.
- Version:
- $Revision: 1.142.2.1 $
- Author:
- Achim Westermann
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChart data value tool tips are shown.No tool tips are shown.Pixel tool tips are shown (used for debugging).Snaps to the nearest
and shows it's value.TracePoint2D
-
Method Summary
Modifier and TypeMethodDescriptionReturns a description of this tool tip type (for UI display).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
Returns the enum constant of this class with the specified name.static Chart2D.ToolTipType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DATAVALUES
Chart data value tool tips are shown.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.
-
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.TracePoint2D
Warning: due to the data structure of multiple axes this is very expensive!
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDescription
Description copied from interface:IToolTipType
Returns a description of this tool tip type (for UI display).- Specified by:
getDescription
in interfaceIToolTipType
- Returns:
- a description of this tool tip type (for UI display).
- See Also:
-
getToolTipText
Description copied from interface:IToolTipType
The base class implementation that returns the tool tip text for the given mouse event which is a NONE implementation here.- Specified by:
getToolTipText
in interfaceIToolTipType
- Parameters:
chart
- the chart for computation of tool tips.me
- the corresponding mouse event.- Returns:
- the tool tip text for the given mouse event.
- See Also:
-