public abstract class CartesianTicks extends Object implements Serializable
Constructor and Description |
---|
CartesianTicks() |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Write the common ticks options
|
Number |
getAutoSkipPadding()
Gets the autoSkipPadding
|
Number |
getLabelOffset()
Gets the labelOffset
|
Number |
getMaxRotation()
Gets the maxRotation
|
Number |
getMinRotation()
Gets the minRotation
|
Number |
getPadding()
Gets the padding
|
boolean |
isAutoSkip()
Gets the autoSkip
|
boolean |
isMirror()
Gets the mirror
|
void |
setAutoSkip(boolean autoSkip)
Sets the autoSkip
|
void |
setAutoSkipPadding(Number autoSkipPadding)
Sets the autoSkipPadding
|
void |
setLabelOffset(Number labelOffset)
Sets the labelOffset
|
void |
setMaxRotation(Number maxRotation)
Sets the maxRotation
|
void |
setMinRotation(Number minRotation)
Sets the minRotation
|
void |
setMirror(boolean mirror)
Sets the mirror
|
void |
setPadding(Number padding)
Sets the padding
|
public boolean isAutoSkip()
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 Number getAutoSkipPadding()
public void setAutoSkipPadding(Number autoSkipPadding)
autoSkipPadding
- Padding between the ticks on the horizontal axis when autoSkip is enabled.
Note: Only applicable to horizontal scales.public Number getLabelOffset()
public void setLabelOffset(Number labelOffset)
labelOffset
- 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 canvaspublic Number getMaxRotation()
public void setMaxRotation(Number 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 Number getMinRotation()
public void setMinRotation(Number minRotation)
minRotation
- Minimum rotation for tick labels.
Note: Only applicable to horizontal scales.public boolean isMirror()
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 scalespublic Number getPadding()
public void setPadding(Number 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 String encode() throws IOException
IOException
- If an I/O error occursCopyright © 2020. All rights reserved.