public class DefaultTicks extends DefaultTickItem implements IsDefaultTicks
Constructor and Description |
---|
DefaultTicks() |
Modifier and Type | Method and Description |
---|---|
int |
getAutoSkipPadding()
Returns the padding between the ticks on the horizontal axis when autoSkip is enabled.
|
String |
getBackdropColorAsString()
Returns the color of label backdrops.
|
int |
getBackdropPaddingX()
Returns the horizontal padding of label backdrop.
|
int |
getBackdropPaddingY()
Returns the vertical padding of label backdrop.
|
String |
getFontColorAsString()
Returns the font color
|
String |
getFontFamily()
Returns the font family, follows CSS font-family options.
|
int |
getFontSize()
Returns the font size.
|
FontStyle |
getFontStyle()
Returns the font style, follows CSS font-style options (i.e.
|
int |
getLabelOffset()
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. |
IsDefaultMajorTick |
getMajor()
Returns the major tick defaults.
|
double |
getMax()
Returns the user defined maximum number for the scale, overrides maximum value from data.
|
int |
getMaxRotation()
Returns the maximum rotation for tick labels when rotating to condense labels.
|
int |
getMaxTicksLimit()
Returns the maximum number of ticks and gridlines to show.
|
double |
getMin()
Returns the user defined minimum number for the scale, overrides minimum value from data.
|
IsDefaultMinorTick |
getMinor()
Returns the minor tick defaults.
|
int |
getMinRotation()
Returns the minimum rotation for tick labels.
|
int |
getPadding()
Returns the padding between the tick label and the axis.
|
int |
getPrecision()
If defined and stepSize is not specified, the step size will be rounded to this many decimal places.
|
int |
getSampleSize()
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. |
TickSource |
getSource()
Returns the property controls the ticks generation.
|
double |
getStepSize()
Returns the user defined fixed step size for the scale.
|
double |
getSuggestedMax()
Returns the adjustment used when calculating the maximum data value.
|
double |
getSuggestedMin()
Returns the adjustment used when calculating the minimum data value.
|
int |
getZ()
Returns z-index of tick layer.
|
boolean |
isAutoSkip()
If true, automatically calculates how many labels that can be shown and hides labels accordingly.
|
boolean |
isBeginAtZero()
If true, scale will include 0 if it is not already included.
|
boolean |
isDisplay()
If true, show tick marks
|
boolean |
isMirror()
Returns the flips tick labels around axis, displaying the labels inside the chart instead of outside.
|
boolean |
isReverse()
Returns the reverses order of tick labels.
|
boolean |
isShowLabelBackdrop()
If true, draw a background behind the tick labels.
|
getLineHeight
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLineHeight
getFontColorAsString, getFontFamily, getFontSize, getFontStyle
public IsDefaultMinorTick getMinor()
IsDefaultTicks
getMinor
in interface IsDefaultTicks
public IsDefaultMajorTick getMajor()
IsDefaultTicks
getMajor
in interface IsDefaultTicks
public boolean isBeginAtZero()
IsDefaultTicks
isBeginAtZero
in interface IsDefaultTicks
public boolean isDisplay()
IsDefaultTicks
isDisplay
in interface IsDefaultTicks
public boolean isReverse()
IsDefaultTicks
isReverse
in interface IsDefaultTicks
public boolean isAutoSkip()
IsDefaultTicks
isAutoSkip
in interface IsDefaultTicks
public int getAutoSkipPadding()
IsDefaultTicks
getAutoSkipPadding
in interface IsDefaultTicks
public int getLabelOffset()
IsDefaultTicks
getLabelOffset
in interface IsDefaultTicks
public int getMaxRotation()
IsDefaultTicks
getMaxRotation
in interface IsDefaultTicks
public int getMinRotation()
IsDefaultTicks
getMinRotation
in interface IsDefaultTicks
public boolean isMirror()
IsDefaultTicks
isMirror
in interface IsDefaultTicks
public int getPadding()
IsDefaultTicks
getPadding
in interface IsDefaultTicks
public double getMin()
IsDefaultTicks
getMin
in interface IsDefaultTicks
public double getMax()
IsDefaultTicks
getMax
in interface IsDefaultTicks
public int getMaxTicksLimit()
IsDefaultTicks
getMaxTicksLimit
in interface IsDefaultTicks
public double getStepSize()
IsDefaultTicks
getStepSize
in interface IsDefaultTicks
public double getSuggestedMax()
IsDefaultTicks
getSuggestedMax
in interface IsDefaultTicks
public double getSuggestedMin()
IsDefaultTicks
getSuggestedMin
in interface IsDefaultTicks
public String getBackdropColorAsString()
IsDefaultTicks
getBackdropColorAsString
in interface IsDefaultTicks
public int getBackdropPaddingX()
IsDefaultTicks
getBackdropPaddingX
in interface IsDefaultTicks
public int getBackdropPaddingY()
IsDefaultTicks
getBackdropPaddingY
in interface IsDefaultTicks
public boolean isShowLabelBackdrop()
IsDefaultTicks
isShowLabelBackdrop
in interface IsDefaultTicks
public TickSource getSource()
IsDefaultTicks
getSource
in interface IsDefaultTicks
public int getPrecision()
IsDefaultTicks
getPrecision
in interface IsDefaultTicks
public int getZ()
IsDefaultTicks
getZ
in interface IsDefaultTicks
public int getSampleSize()
IsDefaultTicks
getSampleSize
in interface IsDefaultTicks
public String getFontColorAsString()
IsDefaultFontItem
getFontColorAsString
in interface IsDefaultFontItem
public int getFontSize()
IsDefaultFontItem
getFontSize
in interface IsDefaultFontItem
public FontStyle getFontStyle()
IsDefaultFontItem
getFontStyle
in interface IsDefaultFontItem
public String getFontFamily()
IsDefaultFontItem
getFontFamily
in interface IsDefaultFontItem