Enum Class SparklineType
- All Implemented Interfaces:
Serializable
,Comparable<SparklineType>
,Constable
Sparkline types.
- 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
Enum ConstantDescriptionArea chartBar chartBox plot chartBullet chartDiscrete chartLine chartPie chartTristate chart -
Method Summary
Modifier and TypeMethodDescriptionprotected static SparklineType
protected static SparklineType
fromTypeName
(String typeName) protected String
protected String
protected String
getType()
protected String
static SparklineType
Returns the enum constant of this class with the specified name.static SparklineType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LINE_CHART
Line chart -
AREA_CHART
Area chart -
BAR_CHART
Bar chart -
TRISTATE_CHART
Tristate chart -
DISCRETE_CHART
Discrete chart -
BULLET_GRAPH
Bullet chart -
PIE_CHART
Pie chart -
BOX_PLOT
Box plot chart
-
-
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
-
getType
- Returns:
- JavaScript type name for the sparkline type
-
getWidthParamName
- Returns:
- JavaScript parameter name for the width parameter
-
getColorParamNames
- Returns:
- Color Color parameter name
-
getNegativecolorParamName
- Returns:
- JavaScript parameter name for the negative color parameter
-
fromName
- Parameters:
sparklineType
- Type name used to get the sparkline type- Returns:
- Sparkline type for the corresponding name or
null
if no sparkline type is associated with the specified name
-
fromTypeName
- Parameters:
typeName
- Sparkline type- Returns:
- Sparkline type for the corresponding name or
null
if no sparkline type is associated with the specified name
-
getDefaultColor
- Returns:
- Default sparkline type color
-
getDefaultNegativetColor
- Returns:
- Default color for negative values
-