Class ScaleTickItem


  • public final class ScaleTickItem
    extends NativeObjectContainer
    The tick item maps the objects passed a ScaleItem.
    This is a wrapper of the CHART.JS item with all needed info.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getLabel

        public final String getLabel()
        Returns the label of the tick.
        Returns:
        the label of the tick or Undefined.STRING if missing.
      • getValue

        public final double getValue()
        Returns the value of the tick as double.
        Returns:
        the value of the tick or Undefined.DOUBLE if missing or not a double.
      • getValueAsString

        public final String getValueAsString()
        Returns the value of the tick as string.
        Returns:
        the value of the tick or Undefined.STRING if missing or not a string.
      • getValueAsDate

        public Date getValueAsDate()
        Returns the date of the tick.
        Returns:
        the date of the tick or null if missing.