Class ScaleLabelOptions


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

      • getBackdropOptions

        public ScaleLabelBackdropOptions getBackdropOptions()
        Returns the backdrop options of the label of the scale.
        Returns:
        the backdrop options of the label of the scale
      • getColorAsString

        public String getColorAsString()
        Returns the color of the label of the scale.
        Returns:
        the color of the label of the scale
      • getColor

        public IsColor getColor()
        Returns the color of the label of the scale.
        Returns:
        the color of the label of the scale
      • getDecorationWidth

        public int getDecorationWidth()
        Returns the width of the strikethrough / underline of the label of the scale.
        Returns:
        the width of the strikethrough / underline of the label of the scale.
      • getMaxWidth

        public double getMaxWidth()
        Returns the max width of the text in pixels of the label of the scale.
        Returns:
        the max width of the text in pixels of the label of the scale.
      • getRotation

        public double getRotation()
        Returns the rotation of the text in pixels of the label of the scale.
        Returns:
        the rotation of the text in pixels of the label of the scale.
      • isStrikethrough

        public boolean isStrikethrough()
        Returns the strikethrough is applied to the text in pixels of the label of the scale.
        Returns:
        the strikethrough is applied to the text in pixels of the label of the scale.
      • getStrokeColorAsString

        public String getStrokeColorAsString()
        Returns the stroke color of the label of the scale.
        Returns:
        the stroke color of the label of the scale
      • getStrokeColor

        public IsColor getStrokeColor()
        Returns the stroke color of the label of the scale.
        Returns:
        the stroke color of the label of the scale
      • getStrokeWidth

        public double getStrokeWidth()
        Returns the stroke width of the text in pixels of the label of the scale.
        Returns:
        the stroke width of the text in pixels of the label of the scale.
      • isUnderline

        public boolean isUnderline()
        Returns the underline is applied to the text in pixels of the label of the scale.
        Returns:
        the underline is applied to the text in pixels of the label of the scale.
      • getTranslation

        public List<Double> getTranslation()
        Returns the translation is applied to the text in pixels of the label of the scale.
        Returns:
        the translation is applied to the text in pixels of the label of the scale.
      • getTextBaseline

        public TextBaseline getTextBaseline()
        Returns the text baseline is applied to the text in pixels of the label of the scale.
        Returns:
        the text baseline is applied to the text in pixels of the label of the scale.
      • getTextAlign

        public TextAlign getTextAlign()
        Returns the text align is applied to the text in pixels of the label of the scale.
        Returns:
        the text align is applied to the text in pixels of the label of the scale.