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 a ChartType.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 type WDate).
    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 type WDate).
    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

      public static final AxisScale CategoryScale
      A category scale is set as the scale for the X axis in a ChartType.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

      public static final AxisScale 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

      public static final AxisScale LogScale
      A logarithmic scale is useful for plotting values with of a large range, but only works for positive values.
    • DateScale

      public static final AxisScale 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 type WDate). The dates are converted to numbers, as Julian Days.
    • DateTimeScale

      public static final AxisScale 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 type WDate). 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

      public static AxisScale[] 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

      public static AxisScale valueOf​(java.lang.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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.