public final class CartesianCategoryTick extends BaseTick
Modifier and Type | Method and Description |
---|---|
int |
getAutoSkipPadding()
Returns the padding between the ticks on the horizontal axis when autoSkip is enabled.
|
int |
getLabelOffset()
Returns the distance in pixels to offset the label from the centre 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. |
java.util.List<java.lang.String> |
getLabels()
Returns the array of labels to display.
|
BaseTick |
getMajor() |
java.lang.String |
getMax()
Returns the maximum item to display.
|
int |
getMaxRotation()
Returns the maximum rotation for tick labels when rotating to condense labels.
|
java.lang.String |
getMin()
Returns the minimum item to display
|
BaseTick |
getMinor() |
int |
getMinRotation()
Returns the minimum rotation for tick labels.
|
int |
getPadding()
Returns the padding between the tick label and the axis.
|
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 |
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.
|
void |
setAutoSkip(boolean autoSkip)
If true, automatically calculates how many labels that can be shown and hides labels accordingly.
|
void |
setAutoSkipPadding(int autoSkipPadding)
Sets the padding between the ticks on the horizontal axis when autoSkip is enabled.
|
void |
setDisplay(boolean display)
If true, show tick marks.
|
void |
setLabelOffset(int labelOffset)
Sets the distance in pixels to offset the label from the centre 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. |
void |
setLabels(java.util.List<java.lang.String> labels)
Sets an array of labels to display.
|
void |
setLabels(java.lang.String... labels)
Sets an array of labels to display.
|
void |
setMax(java.lang.String max)
Sets the maximum item to display.
|
void |
setMaxRotation(int maxRotation)
Sets the maximum rotation for tick labels when rotating to condense labels.
|
void |
setMin(java.lang.String min)
Sets the minimum item to display.
|
void |
setMinRotation(int minRotation)
Sets the minimum rotation for tick labels.
|
void |
setMirror(boolean mirror)
Sets the flips tick labels around axis, displaying the labels inside the chart instead of outside.
|
void |
setPadding(int padding)
Sets the padding between the tick label and the axis.
|
void |
setReverse(boolean reverse)
Sets the reverses order of tick labels.
|
getCallback, getFontColor, getFontColorAsString, getFontFamily, getFontSize, getFontStyle, onCallback, setCallback, setFontColor, setFontColor, setFontFamily, setFontSize, setFontStyle
getChart
checkAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, type
public void setLabels(java.lang.String... labels)
labels
- An array of labels to display.public void setLabels(java.util.List<java.lang.String> labels)
labels
- An array of labels to display.public java.util.List<java.lang.String> getLabels()
public void setMin(java.lang.String min)
min
- The minimum item to displaypublic java.lang.String getMin()
public void setMax(java.lang.String max)
max
- the maximum item to display.public java.lang.String getMax()
public void setAutoSkip(boolean autoSkip)
autoSkip
- If true, automatically calculates how many labels that can be shown and hides labels accordingly. Turn it
off to show all labels no matter whatpublic boolean isAutoSkip()
public void setAutoSkipPadding(int autoSkipPadding)
autoSkipPadding
- padding between the ticks on the horizontal axis when autoSkip is enabled. Note: Only applicable
to horizontal scales.public int getAutoSkipPadding()
public void setLabelOffset(int labelOffset)
labelOffset
- the distance in pixels to offset the label from the centre point of the tick (in the y direction for
the x axis, and the x direction for the y axis)public int getLabelOffset()
public void setMaxRotation(int maxRotation)
maxRotation
- maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until
necessary. Note: Only applicable to horizontal scales.public int getMaxRotation()
public void setMinRotation(int minRotation)
minRotation
- minimum rotation for tick labels. Note: Only applicable to horizontal scales.public int getMinRotation()
public void setMirror(boolean mirror)
mirror
- flips tick labels around axis, displaying the labels inside the chart instead of outside. Note: Only
applicable to vertical scales.public boolean isMirror()
public void setPadding(int padding)
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.public int getPadding()
public BaseTick getMinor()
public BaseTick getMajor()
public void setDisplay(boolean display)
display
- if true, show tick markspublic boolean isDisplay()
public void setReverse(boolean reverse)
reverse
- reverses order of tick labels.public boolean isReverse()