Class DefaultChartTicks

    • Method Detail

      • isDisplay

        public boolean isDisplay()
        Description copied from interface: IsDefaultTicks
        If true, show tick marks
        Specified by:
        isDisplay in interface IsDefaultTicks
        Returns:
        if true, show tick marks.
      • isAutoSkip

        public boolean isAutoSkip()
        Description copied from interface: IsDefaultTicks
        If true, automatically calculates how many labels that can be shown and hides labels accordingly. Turn it off to show all labels no matter what
        Specified by:
        isAutoSkip in interface IsDefaultTicks
        Returns:
        If true, automatically calculates how many labels that can be shown and hides labels accordingly. Turn it off to show all labels no matter what.
      • getAutoSkipPadding

        public int getAutoSkipPadding()
        Description copied from interface: IsDefaultTicks
        Returns the padding between the ticks on the horizontal axis when autoSkip is enabled. Note: Only applicable to horizontal scales.
        Specified by:
        getAutoSkipPadding in interface IsDefaultTicks
        Returns:
        padding between the ticks on the horizontal axis when autoSkip is enabled. Note: Only applicable to horizontal scales.
      • isIncludeBounds

        public boolean isIncludeBounds()
        Description copied from interface: IsDefaultTicks
        If true, the defined minimum and maximum values should be presented as ticks even if they are not "nice".
        Specified by:
        isIncludeBounds in interface IsDefaultTicks
        Returns:
        if true, the defined min and maximum values should be presented as ticks even if they are not "nice"
      • getLabelOffset

        public int getLabelOffset()
        Description copied from interface: IsDefaultTicks
        Returns the distance in pixels to offset the label from the center point of the tick (in the y direction for the x axis, and the x direction for the y axis).
        Note: this can cause labels at the edges to be cropped by the edge of the canvas.
        Specified by:
        getLabelOffset in interface IsDefaultTicks
        Returns:
        the distance in pixels to offset the label from the center point of the tick (in the y direction for the x axis, and the x direction for the y axis).
      • getCount

        public int getCount()
        Description copied from interface: IsDefaultTicks
        Returns the number of ticks to generate.
        If specified, this overrides the automatic generation.
        Specified by:
        getCount in interface IsDefaultTicks
        Returns:
        the number of ticks to generate.
        If specified, this overrides the automatic generation
      • getMaxRotation

        public int getMaxRotation()
        Description copied from interface: IsDefaultTicks
        Returns the maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. Note: Only applicable to horizontal scales.
        Specified by:
        getMaxRotation in interface IsDefaultTicks
        Returns:
        maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. Note: Only applicable to horizontal scales.
      • getMinRotation

        public int getMinRotation()
        Description copied from interface: IsDefaultTicks
        Returns the minimum rotation for tick labels. Note: Only applicable to horizontal scales.
        Specified by:
        getMinRotation in interface IsDefaultTicks
        Returns:
        minimum rotation for tick labels. Note: Only applicable to horizontal scales.
      • isMirror

        public boolean isMirror()
        Description copied from interface: IsDefaultTicks
        Returns the flips tick labels around axis, displaying the labels inside the chart instead of outside. Note: Only applicable to vertical scales.
        Specified by:
        isMirror in interface IsDefaultTicks
        Returns:
        flips tick labels around axis, displaying the labels inside the chart instead of outside. Note: Only applicable to vertical scales.
      • getPadding

        public int getPadding()
        Description copied from interface: IsDefaultTicks
        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.
        Specified by:
        getPadding in interface IsDefaultTicks
        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.
      • getMaxTicksLimit

        public int getMaxTicksLimit()
        Description copied from interface: IsDefaultTicks
        Returns the maximum number of ticks and grid to show.
        Specified by:
        getMaxTicksLimit in interface IsDefaultTicks
        Returns:
        maximum number of ticks and grid to show.
      • getStepSize

        public double getStepSize()
        Description copied from interface: IsDefaultTicks
        Returns the user defined fixed step size for the scale.
        Specified by:
        getStepSize in interface IsDefaultTicks
        Returns:
        user defined fixed step size for the scale.
      • isShowLabelBackdrop

        public boolean isShowLabelBackdrop()
        Description copied from interface: IsDefaultTicks
        If true, draw a background behind the tick labels.
        Specified by:
        isShowLabelBackdrop in interface IsDefaultTicks
        Returns:
        if true, draw a background behind the tick labels.
      • getSource

        public TickSource getSource()
        Description copied from interface: IsDefaultTicks
        Returns the property controls the ticks generation.
        Specified by:
        getSource in interface IsDefaultTicks
        Returns:
        property controls the ticks generation.
      • getPrecision

        public int getPrecision()
        Description copied from interface: IsDefaultTicks
        If defined and stepSize is not specified, the step size will be rounded to this many decimal places.
        Specified by:
        getPrecision in interface IsDefaultTicks
        Returns:
        if defined and stepSize is not specified, the step size will be rounded to this many decimal places.
      • getZ

        public int getZ()
        Description copied from interface: IsDefaultTicks
        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.
        Specified by:
        getZ in interface IsDefaultTicks
        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.
      • getSampleSize

        public int getSampleSize()
        Description copied from interface: IsDefaultTicks
        Returns the number of ticks to examine when deciding how many labels will fit.
        Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.
        Specified by:
        getSampleSize in interface IsDefaultTicks
        Returns:
        the number of ticks to examine when deciding how many labels will fit.
      • getAlign

        public TickAlign getAlign()
        Description copied from interface: IsDefaultTicks
        Returns the tick alignment along the axis.
        Specified by:
        getAlign in interface IsDefaultTicks
        Returns:
        the tick alignment along the axis
      • getCrossAlign

        public CrossAlign getCrossAlign()
        Description copied from interface: IsDefaultTicks
        Returns the tick alignment perpendicular to the axis.
        Specified by:
        getCrossAlign in interface IsDefaultTicks
        Returns:
        the tick alignment perpendicular to the axis
      • getTextStrokeWidth

        public int getTextStrokeWidth()
        Description copied from interface: IsDefaultTicks
        Returns the text stroke width.
        Specified by:
        getTextStrokeWidth in interface IsDefaultTicks
        Returns:
        the text stroke width.