Class PointLabels

    • Method Detail

      • getFontContainer

        public FontContainer getFontContainer()
        Description copied from interface: HasFont
        Returns a font container instance to use in the default methods of this interface.
        Specified by:
        getFontContainer in interface HasFont
        Returns:
        a font container instance
      • setDisplay

        public void setDisplay​(boolean display)
        If true, labels are shown.
        Parameters:
        display - if true, labels are shown.
      • setDisplay

        public void setDisplay​(Display display)
        The display option controls the visibility of labels.
        Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the labels are visible only if there is enough space to draw them.
        Parameters:
        display - display option controls the visibility of labels
      • getDisplay

        public Display getDisplay()
        The display option controls the visibility of labels.
        Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the labels are visible only if there is enough space to draw them.
        Specified by:
        getDisplay in interface IsDefaultPointLabels
        Returns:
        display option controls the visibility of labels
      • setBackdropColor

        public void setBackdropColor​(IsColor backdropColor)
        Sets the background color of the point label.
        Parameters:
        backdropColor - the background color of the point label
      • setBackdropColor

        public void setBackdropColor​(String backdropColor)
        Sets the background color of the point label.
        Parameters:
        backdropColor - the background color of the point label
      • getBackdropColor

        public IsColor getBackdropColor()
        Returns the background color of the point label.
        Returns:
        the background color of the point label
      • setPadding

        public void setPadding​(int padding)
        Sets the padding between chart and point labels, in pixels.
        Parameters:
        padding - the padding between chart and point labels, in pixels.
      • getPadding

        public int getPadding()
        Returns the padding between chart and point labels, in pixels.
        Specified by:
        getPadding in interface IsDefaultPointLabels
        Returns:
        padding the padding between chart and point labels, in pixels.
      • setCentered

        public void setCentered​(boolean centered)
        Sets true if point labels are centered.
        Parameters:
        centered - true if point labels are centered.
      • isCentered

        public boolean isCentered()
        Returns if point labels are centered.
        Specified by:
        isCentered in interface IsDefaultPointLabels
        Returns:
        if point labels are centered
      • setBorderRadius

        public void setBorderRadius​(int radius)
        Sets the border radius.
        Parameters:
        radius - the border radius.
      • setBorderRadius

        public void setBorderRadius​(BarBorderRadius borderRadius)
        Sets the border radius (in pixels).
        Parameters:
        borderRadius - the border radius (in pixels).
      • getBorderRadius

        public int getBorderRadius()
        Returns the border radius (in pixels).
        Specified by:
        getBorderRadius in interface IsDefaultPointLabels
        Returns:
        the border radius (in pixels).
      • getBorderRadiusAsObject

        public BarBorderRadius getBorderRadiusAsObject()
        Returns the border radius (in pixels).
        Returns:
        the border radius (in pixels).