public class RadialLinearTick extends Object
Modifier and Type | Method and Description |
---|---|
IsColor |
getBackdropColor()
Returns the color of label backdrops.
|
String |
getBackdropColorAsString()
Returns the color of label backdrops.
|
int |
getBackdropPaddingX()
Returns the horizontal padding of label backdrop.
|
int |
getBackdropPaddingY()
Returns the vertical padding of label backdrop.
|
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.
|
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 |
getMaxTicksLimit()
Returns the maximum number of ticks and gridlines to show.
|
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 |
getPrecision()
If defined and stepSize is not specified, the step size will be rounded to this many decimal places.
|
double |
getStepSize()
Returns the user defined fixed step size for the scale.
|
double |
getSuggestedMax()
Returns the adjustment used when calculating the maximum data value.
|
double |
getSuggestedMin()
Returns the adjustment used when calculating the minimum data value.
|
boolean |
isBeginAtZero()
If true, scale will include 0 if it is not already included.
|
boolean |
isDisplay()
If true, show tick marks
|
boolean |
isReverse()
Returns the reverses order of tick labels.
|
boolean |
isShowLabelBackdrop()
If true, draw a background behind the tick labels.
|
void |
setBackdropColor(IsColor backdropColor)
Sets the color of label backdrops.
|
void |
setBackdropColor(String backdropColor)
Sets the color of label backdrops.
|
void |
setBackdropPaddingX(int backdropPaddingX)
Sets the horizontal padding of label backdrop.
|
void |
setBackdropPaddingY(int backdropPaddingY)
Sets the vertical padding of label backdrop.
|
void |
setBeginAtZero(boolean beginAtZero)
If true, scale will include 0 if it is not already included.
|
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 |
setMax(double max)
Sets the user defined maximum number for the scale, overrides maximum value from data.
|
void |
setMaxTicksLimit(int maxTicksLimit)
Sets the maximum number of ticks and gridlines to show.
|
void |
setMin(double min)
Sets the user defined minimum number for the scale, overrides minimum value from data.
|
void |
setPrecision(int precision)
If defined and stepSize is not specified, the step size will be rounded to this many decimal places.
|
void |
setReverse(boolean reverse)
Sets the reverses order of tick labels.
|
void |
setShowLabelBackdrop(boolean showLabelBackdrop)
If true, draw a background behind the tick labels.
|
void |
setStepSize(double stepSize)
Sets the user defined fixed step size for the scale.
|
void |
setSuggestedMax(double suggestedMax)
Sets the adjustment used when calculating the maximum data value.
|
void |
setSuggestedMin(double suggestedMin)
Sets the adjustment used when calculating the minimum data value.
|
public void setBeginAtZero(boolean beginAtZero)
beginAtZero
- if true, scale will include 0 if it is not already included.public boolean isBeginAtZero()
public void setMin(double min)
min
- 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 setMaxTicksLimit(int maxTicksLimit)
maxTicksLimit
- maximum number of ticks and gridlines to show.public int getMaxTicksLimit()
public void setStepSize(double stepSize)
stepSize
- user defined fixed step size for the scale.public double getStepSize()
public void setSuggestedMax(double suggestedMax)
suggestedMax
- adjustment used when calculating the maximum data value.public double getSuggestedMax()
public void setSuggestedMin(double suggestedMin)
suggestedMin
- adjustment used when calculating the minimum data value.public double getSuggestedMin()
public void setBackdropColor(IsColor backdropColor)
backdropColor
- color of label backdrops.public void setBackdropColor(String backdropColor)
backdropColor
- color of label backdrops.public String getBackdropColorAsString()
public IsColor getBackdropColor()
public void setBackdropPaddingX(int backdropPaddingX)
backdropPaddingX
- horizontal padding of label backdrop.public int getBackdropPaddingX()
public void setBackdropPaddingY(int backdropPaddingY)
backdropPaddingY
- vertical padding of label backdrop.public int getBackdropPaddingY()
public void setShowLabelBackdrop(boolean showLabelBackdrop)
showLabelBackdrop
- if true, draw a background behind the tick labels.public boolean isShowLabelBackdrop()
public void setPrecision(int precision)
precision
- if defined and stepSize is not specified, the step size will be rounded to this many decimal places.public int getPrecision()
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