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()
IsDefaultFontContainergetFont in interface IsDefaultFontContainerpublic IsDefaultPadding getBackdropPadding()
IsDefaultTicksgetBackdropPadding in interface IsDefaultTickspublic IsDefaultMajor getMajor()
IsDefaultTicksgetMajor in interface IsDefaultTickspublic IsDefaultNumberFormatOptions getNumberFormat()
IsDefaultTicksgetNumberFormat in interface IsDefaultTickspublic String getColorAsString()
IsDefaultFontContainergetColorAsString in interface IsDefaultFontContainerpublic boolean isDisplay()
IsDefaultTicksisDisplay in interface IsDefaultTickspublic boolean isAutoSkip()
IsDefaultTicksisAutoSkip in interface IsDefaultTickspublic int getAutoSkipPadding()
IsDefaultTicksgetAutoSkipPadding in interface IsDefaultTickspublic boolean isIncludeBounds()
IsDefaultTickstrue, the defined minimum and maximum values should be presented as ticks even if they are not "nice".isIncludeBounds in interface IsDefaultTickstrue, the defined min and maximum values should be presented as ticks even if they are not "nice"public int getLabelOffset()
IsDefaultTicksgetLabelOffset in interface IsDefaultTickspublic int getCount()
IsDefaultTicksgetCount in interface IsDefaultTickspublic int getMaxRotation()
IsDefaultTicksgetMaxRotation in interface IsDefaultTickspublic int getMinRotation()
IsDefaultTicksgetMinRotation in interface IsDefaultTickspublic boolean isMirror()
IsDefaultTicksisMirror in interface IsDefaultTickspublic int getPadding()
IsDefaultTicksgetPadding in interface IsDefaultTickspublic int getMaxTicksLimit()
IsDefaultTicksgetMaxTicksLimit in interface IsDefaultTickspublic double getStepSize()
IsDefaultTicksgetStepSize in interface IsDefaultTickspublic String getBackdropColorAsString()
IsDefaultTicksgetBackdropColorAsString in interface IsDefaultTickspublic boolean isShowLabelBackdrop()
IsDefaultTicksisShowLabelBackdrop in interface IsDefaultTickspublic TickSource getSource()
IsDefaultTicksgetSource in interface IsDefaultTickspublic int getPrecision()
IsDefaultTicksgetPrecision in interface IsDefaultTickspublic int getZ()
IsDefaultTicksgetZ in interface IsDefaultTickspublic int getSampleSize()
IsDefaultTicksgetSampleSize in interface IsDefaultTickspublic ElementAlign getAlign()
IsDefaultTicksgetAlign in interface IsDefaultTickspublic CrossAlign getCrossAlign()
IsDefaultTicksgetCrossAlign in interface IsDefaultTickspublic String getTextStrokeColorAsString()
IsDefaultTicksgetTextStrokeColorAsString in interface IsDefaultTickspublic int getTextStrokeWidth()
IsDefaultTicksgetTextStrokeWidth in interface IsDefaultTicks