Enum Class TooltipType
- All Implemented Interfaces:
Serializable
,Comparable<TooltipType>
,Constable
The types of tooltip that appear on the chart
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TooltipType
Determines the tooltip type by its name.toString()
static TooltipType
Returns the enum constant of this class with the specified name.static TooltipType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIMPLE
Simple tooltip -
LINE
Line tooltip. If more than one series is displayed on the chart, all series data is displayed on the tooltip. -
DOT
Point tooltip. Only the data value of the selected point on the chart is visible on the tooltip. -
CUSTOM
Custom tooltip. Users can specify a custom HTML that is displayed on the tooltip, or use the tooltip renderer, which can also be used to display components in the tooltip. More on the renderer in theChartCanvas.setToolTipRenderer()
method description.
-
-
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
-
toString
- Overrides:
toString
in classEnum<TooltipType>
-
fromName
Determines the tooltip type by its name.- Parameters:
name
- Tooltip type- Returns:
- Tooltip type corresponding the specified name or
null
if there is no tooltip type for the specified name
-