public class CartesianLogarithmicTick extends Object
Modifier and Type | Method and Description |
---|---|
int |
getAutoSkipPadding()
Returns the padding between the ticks on the horizontal axis when autoSkip is enabled.
|
TickCallback |
getCallback()
Returns the user callback instance.
|
IsColor |
getFontColor()
Returns the font color for tick
|
String |
getFontColorAsString()
Returns the font color for tick
|
String |
getFontFamily()
Returns the font family for the tick, follows CSS font-family options.
|
int |
getFontSize()
Returns the font size for tick.
|
FontStyle |
getFontStyle()
Returns the font style for the tick, 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. |
org.pepstock.charba.client.configuration.BaseTick<TickMajor> |
getMajor()
Returns major tick element.
|
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.
|
double |
getMin()
Returns the user defined minimum number for the scale, overrides minimum value from data.
|
org.pepstock.charba.client.configuration.BaseTick<TickMinor> |
getMinor()
Returns minor tick element.
|
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 |
setCallback(TickCallback callback)
Sets the user callback instance.
|
void |
setDisplay(boolean display)
If true, show tick marks.
|
void |
setFontColor(IsColor fontColor)
Sets the font color for tick
|
void |
setFontColor(String fontColor)
Sets the font color for tick
|
void |
setFontFamily(String fontFamily)
Sets the font family for the tick, follows CSS font-family options.
|
void |
setFontSize(int fontSize)
Sets the font size for tick.
|
void |
setFontStyle(FontStyle fontStyle)
Sets the font style for the tick, follows CSS font-style options (i.e.
|
void |
setLabelOffset(int labelOffset)
Sets 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. |
void |
setMax(double max)
Sets the user defined maximum number for the scale, overrides maximum value from data.
|
void |
setMaxRotation(int maxRotation)
Sets the maximum rotation for tick labels when rotating to condense labels.
|
void |
setMin(double min)
Sets the user defined minimum number for the scale, overrides minimum value from data.
|
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.
|
public void setMin(double min)
min
- the user defined minimum number for the scale, overrides minimum value from data.public double getMin()
public void setMax(double max)
max
- user defined maximum number for the scale, overrides maximum value from data.public double 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 center 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 org.pepstock.charba.client.configuration.BaseTick<TickMinor> getMinor()
public org.pepstock.charba.client.configuration.BaseTick<TickMajor> 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()
public void setFontSize(int fontSize)
fontSize
- the font size for tick.public int getFontSize()
public void setFontStyle(FontStyle fontStyle)
fontStyle
- Font style for the tick, follows CSS font-style options (i.e. normal, italic, oblique, initial,
inherit).public FontStyle getFontStyle()
public void setFontColor(IsColor fontColor)
fontColor
- Font color for tickpublic void setFontColor(String fontColor)
fontColor
- Font color for tickpublic String getFontColorAsString()
public IsColor getFontColor()
public void setFontFamily(String fontFamily)
fontFamily
- Font family for the tick, follows CSS font-family options.public String getFontFamily()
public TickCallback getCallback()
public void setCallback(TickCallback callback)
callback
- the callback to set