Class ScaleLabelItem


  • public final class ScaleLabelItem
    extends AbstractNode
    The label item maps the labels computed by ScaleItem.
    This is a wrapper of the CHART.JS item with all needed info.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getLabel

        public String getLabel()
        Returns the label of the scale. If the labels are stored as array, returns the array values joined by Constants.LINE_SEPARATOR.
        Returns:
        the label of the scale.
      • getLabels

        public List<String> getLabels()
        Returns the labels of the scale.
        Returns:
        the labels of the scale.
      • getOptions

        public ScaleLabelOptions getOptions()
        Returns the options applied to the scale label.
        Returns:
        the options applied to the scale label.
      • getFont

        public IsDefaultFont getFont()
        Returns the font applied to the scale label.
        Returns:
        the font applied to the scale label.
      • getTextOffset

        public double getTextOffset()
        Returns the offset of the text for scale item.
        Returns:
        the offset of the text for scale item.