Package org.pepstock.charba.client.enums
Enum ContextType
- java.lang.Object
-
- java.lang.Enum<ContextType>
-
- org.pepstock.charba.client.enums.ContextType
-
- All Implemented Interfaces:
Serializable
,Comparable<ContextType>
,Key
public enum ContextType extends Enum<ContextType> implements Key
Enumerates the type of scriptable options context.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNOTATION
Annotation plugin context type.CHART
Chart context type.DATA
Data of dataset context type.DATALABELS
DataLabels plugin context type.DATASET
Dataset of chart context type.LABELS
Labels plugin context type.METER
Meter and gauge controllers context type.POINT_LABEL
Point label context type, only forRadialPointLabels
.SCALE
Scale of chart context type.SEGMENT
Segment line context type.TICK
Tick of scale context type.TOOLTIP
Tick of scale context type.UNKNOWN
Unknown context type.ZOOM
Zoom plugin context type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic ContextType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContextType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHART
public static final ContextType CHART
Chart context type.
-
DATASET
public static final ContextType DATASET
Dataset of chart context type.
-
DATA
public static final ContextType DATA
Data of dataset context type.
-
SCALE
public static final ContextType SCALE
Scale of chart context type.
-
TICK
public static final ContextType TICK
Tick of scale context type.
-
POINT_LABEL
public static final ContextType POINT_LABEL
Point label context type, only forRadialPointLabels
.
-
TOOLTIP
public static final ContextType TOOLTIP
Tick of scale context type.
-
DATALABELS
public static final ContextType DATALABELS
DataLabels plugin context type.
-
LABELS
public static final ContextType LABELS
Labels plugin context type.
-
ANNOTATION
public static final ContextType ANNOTATION
Annotation plugin context type.
-
ZOOM
public static final ContextType ZOOM
Zoom plugin context type.
-
METER
public static final ContextType METER
Meter and gauge controllers context type.
-
SEGMENT
public static final ContextType SEGMENT
Segment line context type.
-
UNKNOWN
public static final ContextType UNKNOWN
Unknown context type.
-
-
Method Detail
-
values
public static ContextType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ContextType c : ContextType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContextType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-