public abstract class Axis extends Object
Modifier and Type | Method and Description |
---|---|
AxisBuildTicksCallback |
getAxisBuildTicksCallback()
Returns the user callback that runs before/after ticks are created.
|
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.
|
AbstractChart<?,?> |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
AxisType |
getType()
Returns the type of axis.
|
int |
getWeight()
The weight used to sort the axis.
|
boolean |
isDisplay()
Returns if axis is hidden.
|
void |
setAxisBuildTicksCallback(AxisBuildTicksCallback axisBuildTicksCallback)
Sets the user callback that runs before/after ticks are created.
|
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 |
setType(AxisType type)
Type of scale being employed.
|
void |
setWeight(int weight)
The weight used to sort the axis.
|
String |
toJSON()
Returns the JSON representation of the object.
|
public void setType(AxisType type)
type
- type of axispublic 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 boolean isDisplay()
false
if axis is hidden, otherwise true
.public void setWeight(int weight)
weight
- weight of axispublic int getWeight()
public AxisBuildTicksCallback getAxisBuildTicksCallback()
public void setAxisBuildTicksCallback(AxisBuildTicksCallback axisBuildTicksCallback)
axisBuildTicksCallback
- the axisBuildTicksCallback to setpublic AxisCalculateTickRotationCallback getAxisCalculateTickRotationCallback()
public void setAxisCalculateTickRotationCallback(AxisCalculateTickRotationCallback axisCalculateTickRotationCallback)
axisCalculateTickRotationCallback
- the axisCalculateTickRotationCallback to setpublic AxisDataLimitsCallback getAxisDataLimitsCallback()
public void setAxisDataLimitsCallback(AxisDataLimitsCallback axisDataLimitsCallback)
axisDataLimitsCallback
- the axisDataLimitsCallback to setpublic AxisDimensionsCallback getAxisDimensionsCallback()
public void setAxisDimensionsCallback(AxisDimensionsCallback axisDimensionsCallback)
axisDimensionsCallback
- the axisDimensionsCallback to setpublic AxisFitCallback getAxisFitCallback()
public void setAxisFitCallback(AxisFitCallback axisFitCallback)
axisFitCallback
- the axisFitCallback to setpublic AxisTickToLabelConversionCallback getAxisTickToLabelConversionCallback()
public void setAxisTickToLabelConversionCallback(AxisTickToLabelConversionCallback axisTickToLabelConversionCallback)
axisTickToLabelConversionCallback
- the axisTickToLabelConversionCallback to setpublic AxisUpdateCallback getAxisUpdateCallback()
public void setAxisUpdateCallback(AxisUpdateCallback axisUpdateCallback)
axisUpdateCallback
- the axisUpdateCallback to setprotected final void setConfiguration(T configuration)
configuration
- the configuration to setprotected final T getConfiguration()
public final String toJSON()
public final AbstractChart<?,?> getChart()