Class RadialLinearTick

    • Method Detail

      • getTickOptionsHandler

        public final org.pepstock.charba.client.configuration.LinearTickOptionsHandler getTickOptionsHandler()
        Description copied from interface: IsLinearTick
        Returns the linear tick options handler instance, for callbacks.
        Specified by:
        getTickOptionsHandler in interface IsLinearTick
        Specified by:
        getTickOptionsHandler in interface IsNumericTick
        Returns:
        the linear tick options handler instance, for callbacks
      • getCallback

        public TickCallback getCallback()
        Returns the user callback instance.
        Returns:
        the callback
      • setCallback

        public void setCallback​(TickCallback callback)
        Sets the user callback instance.
        Parameters:
        callback - the callback to set
      • getMajor

        public Major getMajor()
        Returns major tick element.
        Returns:
        the major
      • getFont

        public Font getFont()
        Returns the font element.
        Returns:
        the font element
      • getBackdropPadding

        public Padding getBackdropPadding()
        Returns the padding of label backdrop.
        Returns:
        padding of label backdrop.
      • setColor

        public void setColor​(IsColor color)
        Sets the font color.
        Parameters:
        color - font color.
      • setColor

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

        public String getColorAsString()
        Returns the font color as string.
        Returns:
        font color as string
      • getColor

        public IsColor getColor()
        Returns the font color.
        Returns:
        font color
      • setDisplay

        public void setDisplay​(boolean display)
        If true, show tick marks.
        Parameters:
        display - if true, show tick marks
      • isDisplay

        public boolean isDisplay()
        If true, show tick marks
        Returns:
        if true, show tick marks.
      • setZ

        public void setZ​(int z)
        Sets z-index of tick layer. Useful when ticks are drawn on chart area.
        Values less than or equals to 0 are drawn under datasets, greater than 0 on top.
        Parameters:
        z - z-index of tick layer. Useful when ticks are drawn on chart area.
        Values less than or equals to 0 are drawn under datasets, greater than 0 on top.
      • getZ

        public int getZ()
        Returns z-index of tick layer. Useful when ticks are drawn on chart area.
        Values less than or equals to 0 are drawn under datasets, greater than 0 on top.
        Returns:
        z-index of tick layer. Useful when ticks are drawn on chart area.
        Values less than or equals to 0 are drawn under datasets, greater than 0 on top.
      • setTextStrokeColor

        public void setTextStrokeColor​(IsColor color)
        Sets the text stroke color.
        Parameters:
        color - the text stroke color
      • setTextStrokeColor

        public void setTextStrokeColor​(String color)
        Sets the text stroke color.
        Parameters:
        color - the text stroke color.
      • getTextStrokeColorAsString

        public String getTextStrokeColorAsString()
        Returns the text stroke color as string.
        Returns:
        the text stroke color as string.
      • getTextStrokeColor

        public IsColor getTextStrokeColor()
        Returns the text stroke color.
        Returns:
        the text stroke color.
      • setTextStrokeWidth

        public void setTextStrokeWidth​(int textStrokeWidth)
        Sets the text stroke width.
        Parameters:
        textStrokeWidth - the text stroke width.
      • getTextStrokeWidth

        public int getTextStrokeWidth()
        Returns the text stroke width.
        Returns:
        the text stroke width.
      • setPadding

        public void setPadding​(int padding)
        Sets the padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.
        Parameters:
        padding - padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.
      • getPadding

        public int getPadding()
        Returns the padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.
        Returns:
        padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.
      • setBackdropColor

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

        public void setBackdropColor​(String backdropColor)
        Sets the color of label backdrops.
        Parameters:
        backdropColor - color of label backdrops.
      • getBackdropColorAsString

        public String getBackdropColorAsString()
        Returns the color of label backdrops.
        Returns:
        color of label backdrops.
      • getBackdropColor

        public IsColor getBackdropColor()
        Returns the color of label backdrops.
        Returns:
        color of label backdrops.
      • setShowLabelBackdrop

        public void setShowLabelBackdrop​(boolean showLabelBackdrop)
        If true, draw a background behind the tick labels.
        Parameters:
        showLabelBackdrop - if true, draw a background behind the tick labels.
      • isShowLabelBackdrop

        public boolean isShowLabelBackdrop()
        If true, draw a background behind the tick labels.
        Returns:
        if true, draw a background behind the tick labels.
      • getColorCallback

        public ColorCallback<ScaleContext> getColorCallback()
        Returns the color callback, if set, otherwise null.
        Returns:
        the color callback, if set, otherwise null.
      • getTextStrokeColorCallback

        public ColorCallback<ScaleContext> getTextStrokeColorCallback()
        Returns the text stroke color callback, if set, otherwise null.
        Returns:
        the text stroke color callback, if set, otherwise null.
      • getTextStrokeWidthCallback

        public WidthCallback<ScaleContext> getTextStrokeWidthCallback()
        Returns the text stroke width callback, if set, otherwise null.
        Returns:
        the text stroke width callback, if set, otherwise null.
      • getBackdropColorCallback

        public ColorCallback<ScaleContext> getBackdropColorCallback()
        Returns the backdrop color callback instance.
        Returns:
        the backdrop color callback instance
      • getShowLabelBackdropCallback

        public ShowLabelBackdropCallback getShowLabelBackdropCallback()
        Returns the show label backdrop callback instance.
        Returns:
        the show label backdrop callback instance
      • setColor

        public void setColor​(ColorCallback<ScaleContext> colorCallback)
        Sets the color callback.
        Parameters:
        colorCallback - the color callback to set
      • setColor

        public void setColor​(NativeCallback colorCallback)
        Sets the color callback.
        Parameters:
        colorCallback - the color callback to set
      • setTextStrokeColor

        public void setTextStrokeColor​(ColorCallback<ScaleContext> textStrokeColorCallback)
        Sets the text stroke color callback.
        Parameters:
        textStrokeColorCallback - the text stroke color callback to set
      • setTextStrokeColor

        public void setTextStrokeColor​(NativeCallback textStrokeColorCallback)
        Sets the text stroke color callback.
        Parameters:
        textStrokeColorCallback - the text stroke color callback to set
      • setTextStrokeWidth

        public void setTextStrokeWidth​(WidthCallback<ScaleContext> textStrokeWidthCallback)
        Sets the text stroke width callback.
        Parameters:
        textStrokeWidthCallback - the text stroke width callback to set
      • setTextStrokeWidth

        public void setTextStrokeWidth​(NativeCallback textStrokeWidthCallback)
        Sets the text stroke width callback.
        Parameters:
        textStrokeWidthCallback - the text stroke width callback to set
      • setBackdropColor

        public void setBackdropColor​(ColorCallback<ScaleContext> backdropColorCallback)
        Sets the backdrop color callback instance.
        Parameters:
        backdropColorCallback - the backdrop color callback instance
      • setBackdropColor

        public void setBackdropColor​(NativeCallback backdropColorCallback)
        Sets the backdrop color callback instance.
        Parameters:
        backdropColorCallback - the backdrop color callback instance
      • setShowLabelBackdrop

        public void setShowLabelBackdrop​(ShowLabelBackdropCallback showLabelBackdropCallback)
        Sets the show label backdrop callback instance.
        Parameters:
        showLabelBackdropCallback - the show label backdrop callback instance
      • setShowLabelBackdrop

        public void setShowLabelBackdrop​(NativeCallback showLabelBackdropCallback)
        Sets the show label backdrop callback instance.
        Parameters:
        showLabelBackdropCallback - the show label backdrop callback instance
      • getAxis

        public final Axis getAxis()
        Returns the axis instance.
        Returns:
        the axis