public abstract class Axis extends Object
Modifier and Type | Method and Description |
---|---|
AxisCalculateTickRotationCallback |
getAxisCalculateTickRotationCallback()
Returns the user callback that runs before/after tick rotation is determined.
|
AxisDataLimitsCallback |
getAxisDataLimitsCallback()
Returns the user callback that runs before/after data limits are determined.
|
AxisDimensionsCallback |
getAxisDimensionsCallback()
Returns the user callback that runs before/after dimensions are set.
|
AxisFitCallback |
getAxisFitCallback()
Returns the user callback that runs before/after the scale fits to the canvas.
|
AxisTickToLabelConversionCallback |
getAxisTickToLabelConversionCallback()
Returns the user callback that runs before/after ticks are converted into strings.
|
AxisUpdateCallback |
getAxisUpdateCallback()
Returns the user callback that runs before/after of the update process.
|
int |
getCharbaId()
Returns the unique id of axis.
|
IsChart |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
Display |
getDisplay()
The display option controls the visibility of axis.
Controls the axis global visibility (visible when true, hidden when false). |
AxisType |
getType()
Returns the type of axis.
|
double |
getWeight()
The weight used to sort the axis.
|
void |
merge(NativeObjectContainer source,
String property)
Merge a native object into this one with a specific property name.
This is used by plugins implementation (native java script ones) when they are not using the standard way to add plugin configuration into options of chart. |
void |
setAxisCalculateTickRotationCallback(AxisCalculateTickRotationCallback axisCalculateTickRotationCallback)
Sets the user callback that runs before/after tick rotation is determined.
|
void |
setAxisDataLimitsCallback(AxisDataLimitsCallback axisDataLimitsCallback)
Sets the user callback that runs before/after data limits are determined.
|
void |
setAxisDimensionsCallback(AxisDimensionsCallback axisDimensionsCallback)
Sets the user callback that runs before/after dimensions are set.
|
void |
setAxisFitCallback(AxisFitCallback axisFitCallback)
Sets the user callback that runs before/after the scale fits to the canvas.
|
void |
setAxisTickToLabelConversionCallback(AxisTickToLabelConversionCallback axisTickToLabelConversionCallback)
Sets the user callback that runs before/after ticks are converted into strings.
|
void |
setAxisUpdateCallback(AxisUpdateCallback axisUpdateCallback)
Sets the user callback that runs before/after of the update process.
|
protected void |
setConfiguration(T configuration) |
void |
setDisplay(boolean display)
If set to false the axis is hidden from view.
|
void |
setDisplay(Display display)
The display option controls the visibility of axis.
Controls the axis global visibility (visible when true, hidden when false). |
void |
setWeight(double weight)
The weight used to sort the axis.
|
String |
toJSON()
Returns the JSON representation of the object.
|
public final int getCharbaId()
public AxisType getType()
public void setDisplay(boolean display)
display
- If set to false the axis is hidden from view. Overrides gridLines.display, scaleLabel.display, and ticks.display.public final void setDisplay(Display display)
display
- display option controls the visibility of axispublic final Display getDisplay()
public void setWeight(double weight)
weight
- weight of axispublic double getWeight()
public AxisCalculateTickRotationCallback getAxisCalculateTickRotationCallback()
public void setAxisCalculateTickRotationCallback(AxisCalculateTickRotationCallback axisCalculateTickRotationCallback)
axisCalculateTickRotationCallback
- the axisCalculateTickRotationCallback to setpublic AxisDataLimitsCallback getAxisDataLimitsCallback()
public void setAxisDataLimitsCallback(AxisDataLimitsCallback axisDataLimitsCallback)
axisDataLimitsCallback
- the user callback that runs before/after data limits are determinedpublic AxisDimensionsCallback getAxisDimensionsCallback()
public void setAxisDimensionsCallback(AxisDimensionsCallback axisDimensionsCallback)
axisDimensionsCallback
- the user callback that runs before/after dimensions are setpublic AxisFitCallback getAxisFitCallback()
public void setAxisFitCallback(AxisFitCallback axisFitCallback)
axisFitCallback
- the user callback that runs before/after the scale fits to the canvaspublic AxisTickToLabelConversionCallback getAxisTickToLabelConversionCallback()
public void setAxisTickToLabelConversionCallback(AxisTickToLabelConversionCallback axisTickToLabelConversionCallback)
axisTickToLabelConversionCallback
- the user callback that runs before/after ticks are converted into stringspublic AxisUpdateCallback getAxisUpdateCallback()
public void setAxisUpdateCallback(AxisUpdateCallback axisUpdateCallback)
axisUpdateCallback
- the user callback that runs before/after of the update processprotected final void setConfiguration(T configuration)
configuration
- the configuration to setprotected final T getConfiguration()
public final void merge(NativeObjectContainer source, String property)
source
- native object container to addproperty
- property namepublic final String toJSON()
public final IsChart getChart()