Class CrosshairLabels


  • public final class CrosshairLabels
    extends Object
    Utility provided to the user in order to set the same values to all labels, X and Y.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getFont

        public CrosshairLabelsFont getFont()
        Returns the font object.
        Returns:
        the font object.
      • setDisplay

        public void setDisplay​(boolean display)
        Sets true if label will be applied in the chart, otherwise false.
        Parameters:
        display - true if label will be applied in the chart, otherwise false
      • setColor

        public void setColor​(String color)
        Sets the crosshair label font color.
        Parameters:
        color - the crosshair label font color.
      • setColor

        public void setColor​(IsColor color)
        Set the crosshair label font color.
        Parameters:
        color - the crosshair label font color.
      • setPadding

        public void setPadding​(int padding)
        Sets the padding of crosshair label.
        Parameters:
        padding - padding of crosshair label
      • setBackgroundColor

        public void setBackgroundColor​(String color)
        Sets the background color.
        Parameters:
        color - the background color.
      • setBackgroundColor

        public void setBackgroundColor​(IsColor color)
        Sets the background color.
        Parameters:
        color - the background color.
      • setBorderRadius

        public void setBorderRadius​(int borderRadius)
        Sets the label border radius (in pixels).
        Parameters:
        borderRadius - the label border radius (in pixels).
      • setBorderColor

        public void setBorderColor​(IsColor borderColor)
        Sets the border color.
        Parameters:
        borderColor - the border color.
      • setBorderColor

        public void setBorderColor​(String borderColor)
        Sets the border color.
        Parameters:
        borderColor - the border color.
      • setBorderWidth

        public void setBorderWidth​(int borderWidth)
        Sets the border width.
        Parameters:
        borderWidth - the border width.