Package eu.webtoolkit.jwt.chart
Enum Class AxisScale
- All Implemented Interfaces:
Serializable
,Comparable<AxisScale>
,Constable
Enumeration that indicates a scale for an axis.
The scale determines how values are mapped onto an axis.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA date scale is a special linear scale, which is useful for the X axis in aChartType.Scatter
, when the X series contain dates (of typeWDate
).A datetime scale is a special linear scale, which is useful for the X axis in aChartType.Scatter
, when the X series contain timedates (of typeWDate
).A discrete scale is set as the scale for the X axis in aChartType.Category
, and is only applicable there.A linear scale is the default scale for all axes, except for the X scale in aDiscrete
.A logarithmic scale is useful for plotting values with of a large range, but only works for positive values. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Returns the numerical representation of this enum.static AxisScale
Returns the enum constant of this class with the specified name.static AxisScale[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Discrete
A discrete scale is set as the scale for the X axis in aChartType.Category
, and is only applicable there. It lists all values, evenly spaced, and consecutively in the order of the model. The categories are converted to numbers using their ordinal (first category = 0, second = 1, ...). -
Linear
A linear scale is the default scale for all axes, except for the X scale in aDiscrete
. It maps values in a linear fashion on the axis. -
Log
A logarithmic scale is useful for plotting values with of a large range, but only works for positive values. -
Date
A date scale is a special linear scale, which is useful for the X axis in aChartType.Scatter
, when the X series contain dates (of typeWDate
). The dates are converted to numbers, as Julian Days. -
DateTime
A datetime scale is a special linear scale, which is useful for the X axis in aChartType.Scatter
, when the X series contain timedates (of typeWDate
). The dates are converted to numbers, as the number of seconds since the Unix Epoch (midnight Coordinated Universal Time (UTC) of January 1, 1970).
-
-
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
-
getValue
public int getValue()Returns the numerical representation of this enum.
-