public final class DefaultChartTicks extends Object implements IsDefaultTicks
Modifier and Type | Method and Description |
---|---|
ElementAlign |
getAlign()
Returns the tick alignment along the axis.
|
int |
getAutoSkipPadding()
Returns the padding between the ticks on the horizontal axis when autoSkip is enabled.
|
String |
getBackdropColorAsString()
Returns the color of label backdrops.
|
IsDefaultPadding |
getBackdropPadding()
Returns the padding of label backdrop.
|
String |
getColorAsString()
Returns the font color as string.
|
int |
getCount()
Returns the number of ticks to generate.
If specified, this overrides the automatic generation. |
CrossAlign |
getCrossAlign()
Returns the tick alignment perpendicular to the axis.
|
IsDefaultFont |
getFont()
Returns the font element.
|
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. |
IsDefaultMajor |
getMajor()
Returns the major tick defaults.
|
int |
getMaxRotation()
Returns the maximum rotation for tick labels when rotating to condense labels.
|
int |
getMaxTicksLimit()
Returns the maximum number of ticks and grid to show.
|
int |
getMinRotation()
Returns the minimum rotation for tick labels.
|
IsDefaultNumberFormatOptions |
getNumberFormat()
Returns the number formatting options.
|
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.
|
String |
getTextStrokeColorAsString()
Returns the text stroke color as string.
|
int |
getTextStrokeWidth()
Returns the text stroke width.
|
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 |
isDisplay()
If true, show tick marks
|
boolean |
isIncludeBounds()
If
true , the defined minimum and maximum values should be presented as ticks even if they are not "nice". |
boolean |
isMirror()
Returns the flips tick labels around axis, displaying the labels inside the chart instead of outside.
|
boolean |
isShowLabelBackdrop()
If true, draw a background behind the tick labels.
|
public IsDefaultFont getFont()
IsDefaultFontContainer
getFont
in interface IsDefaultFontContainer
public IsDefaultPadding getBackdropPadding()
IsDefaultTicks
getBackdropPadding
in interface IsDefaultTicks
public IsDefaultMajor getMajor()
IsDefaultTicks
getMajor
in interface IsDefaultTicks
public IsDefaultNumberFormatOptions getNumberFormat()
IsDefaultTicks
getNumberFormat
in interface IsDefaultTicks
public String getColorAsString()
IsDefaultFontContainer
getColorAsString
in interface IsDefaultFontContainer
public boolean isDisplay()
IsDefaultTicks
isDisplay
in interface IsDefaultTicks
public boolean isAutoSkip()
IsDefaultTicks
isAutoSkip
in interface IsDefaultTicks
public int getAutoSkipPadding()
IsDefaultTicks
getAutoSkipPadding
in interface IsDefaultTicks
public boolean isIncludeBounds()
IsDefaultTicks
true
, the defined minimum and maximum values should be presented as ticks even if they are not "nice".isIncludeBounds
in interface IsDefaultTicks
true
, the defined min and maximum values should be presented as ticks even if they are not "nice"public int getLabelOffset()
IsDefaultTicks
getLabelOffset
in interface IsDefaultTicks
public int getCount()
IsDefaultTicks
getCount
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 int getMaxTicksLimit()
IsDefaultTicks
getMaxTicksLimit
in interface IsDefaultTicks
public double getStepSize()
IsDefaultTicks
getStepSize
in interface IsDefaultTicks
public String getBackdropColorAsString()
IsDefaultTicks
getBackdropColorAsString
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 ElementAlign getAlign()
IsDefaultTicks
getAlign
in interface IsDefaultTicks
public CrossAlign getCrossAlign()
IsDefaultTicks
getCrossAlign
in interface IsDefaultTicks
public String getTextStrokeColorAsString()
IsDefaultTicks
getTextStrokeColorAsString
in interface IsDefaultTicks
public int getTextStrokeWidth()
IsDefaultTicks
getTextStrokeWidth
in interface IsDefaultTicks