public class CartesianTimeAxis extends Axis
Constructor and Description |
---|
CartesianTimeAxis(IsChart chart)
Builds the object storing the chart instance.
|
CartesianTimeAxis(IsChart chart,
CartesianAxisType cartesianType)
Builds the object storing the chart instance and axis type.
|
Modifier and Type | Method and Description |
---|---|
Adapters |
getAdapters()
Returns the adapters element.
|
TimeAxisBuildTicksCallback |
getAxisBuildTicksCallback()
Returns the user callback that runs before/after ticks are created.
|
ScaleBounds |
getBounds()
Returns the property controls the scale boundary strategy (bypassed by min/max time options).
|
CartesianAxisType |
getCartesianType()
Returns the axis type
|
IsChart |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
ScaleDistribution |
getDistribution()
Returns the property controls the data distribution along the scale.
|
GridLines |
getGrideLines()
Returns the grid lines element
|
String |
getId()
The ID is used to link datasets and scale axes together.
This is especially needed if multi-axes charts are used. |
Position |
getPosition()
Position of the axis in the chart.
|
CartesianScaleLabel |
getScaleLabel()
Returns the scale label element
|
CartesianTimeTick |
getTicks()
Returns the ticks element
|
Time |
getTime()
Returns the time element.
|
boolean |
isOffset()
If true, extra space is added to the both edges and the axis is scaled to fit into the chart area.
|
boolean |
isStacked()
Gets if the axis are stacked or not.
|
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 |
setAxisBuildTicksCallback(TimeAxisBuildTicksCallback axisBuildTicksCallback)
Sets the user callback that runs before/after ticks are created.
|
void |
setBounds(ScaleBounds bounds)
Sets the property controls the scale boundary strategy (bypassed by min/max time options).
|
protected void |
setConfiguration(T configuration) |
void |
setDistribution(ScaleDistribution distribution)
Sets property controls the data distribution along the scale.
|
void |
setId(String id)
The ID is used to link datasets and scale axes together.
This is especially needed if multi-axes charts are used. |
void |
setOffset(boolean offset)
If true, extra space is added to the both edges and the axis is scaled to fit into the chart area.
|
void |
setPosition(Position position)
Position of the axis in the chart.
|
void |
setStacked(boolean stacked)
Sets if the axis are stacked or not.
|
String |
toJSON()
Returns the JSON representation of the object.
|
getAxisCalculateTickRotationCallback, getAxisDataLimitsCallback, getAxisDimensionsCallback, getAxisFitCallback, getAxisTickToLabelConversionCallback, getAxisUpdateCallback, getCharbaId, getDisplay, getType, getWeight, setAxisCalculateTickRotationCallback, setAxisDataLimitsCallback, setAxisDimensionsCallback, setAxisFitCallback, setAxisTickToLabelConversionCallback, setAxisUpdateCallback, setDisplay, setDisplay, setWeight
public CartesianTimeAxis(IsChart chart)
chart
- chart instancepublic CartesianTimeAxis(IsChart chart, CartesianAxisType cartesianType)
chart
- chart instancecartesianType
- cartesian axis type.public CartesianTimeTick getTicks()
public Time getTime()
public Adapters getAdapters()
public void setDistribution(ScaleDistribution distribution)
distribution
- property controls the data distribution along the scale.public ScaleDistribution getDistribution()
public void setBounds(ScaleBounds bounds)
bounds
- property controls the scale boundary strategy (bypassed by min/max time options).public ScaleBounds getBounds()
public TimeAxisBuildTicksCallback getAxisBuildTicksCallback()
public void setAxisBuildTicksCallback(TimeAxisBuildTicksCallback axisBuildTicksCallback)
axisBuildTicksCallback
- the axisBuildTicksCallback to setpublic CartesianScaleLabel getScaleLabel()
public GridLines getGrideLines()
public CartesianAxisType getCartesianType()
public void setStacked(boolean stacked)
stacked
- if the axis are stacked or not.public boolean isStacked()
public void setOffset(boolean offset)
true
in the bar chart by default.offset
- extra space of axispublic boolean isOffset()
true
in the bar chart by default.public void setId(String id)
id
- The ID is used to link datasets and scale axes togetherpublic String getId()
public void setPosition(Position position)
position
- position of axispublic Position getPosition()
protected 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()