Package eu.webtoolkit.jwt.chart
Enum AxisScale
java.lang.Object
java.lang.Enum<AxisScale>
eu.webtoolkit.jwt.chart.AxisScale
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AxisScale>
,java.lang.constant.Constable
public enum AxisScale extends java.lang.Enum<AxisScale>
Enumeration that indicates a scale for an axis.
The scale determines how values are mapped onto an axis.
- See Also:
WAxis.setScale(AxisScale scale)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description CategoryScale
A category scale is set as the scale for the X axis in aChartType.CategoryChart
, and is only applicable there.DateScale
A date scale is a special linear scale, which is useful for the X axis in a ScatterPlot, when the X series contain dates (of typeWDate
).DateTimeScale
A datetime scale is a special linear scale, which is useful for the X axis in a ScatterPlot, when the X series contain timedates (of typeWDate
).LinearScale
A linear scale is the default scale for all axes, except for the X scale in a CategoryScale.LogScale
A logarithmic scale is useful for plotting values with of a large range, but only works for positive values. -
Method Summary
Modifier and Type Method Description int
getValue()
Returns the numerical representation of this enum.static AxisScale
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AxisScale[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
CategoryScale
A category scale is set as the scale for the X axis in aChartType.CategoryChart
, 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, ...). -
LinearScale
A linear scale is the default scale for all axes, except for the X scale in a CategoryScale. It maps values in a linear fashion on the axis. -
LogScale
A logarithmic scale is useful for plotting values with of a large range, but only works for positive values. -
DateScale
A date scale is a special linear scale, which is useful for the X axis in a ScatterPlot, when the X series contain dates (of typeWDate
). The dates are converted to numbers, as Julian Days. -
DateTimeScale
A datetime scale is a special linear scale, which is useful for the X axis in a ScatterPlot, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()Returns the numerical representation of this enum.
-