public class CartesianTimeAxis extends Axis
Constructor and Description |
---|
CartesianTimeAxis(AbstractChart<?,?> chart)
Builds the object storing the chart instance.
|
CartesianTimeAxis(AbstractChart<?,?> chart,
CartesianAxisType cartesianType)
Builds the object storing the chart instance and axis type.
|
Modifier and Type | Method and Description |
---|---|
ScaleBounds |
getBounds()
Returns the property controls the scale boundary strategy (bypassed by min/max time options).
|
CartesianAxisType |
getCartesianType()
Returns the axis type
|
AbstractChart<?,?> |
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 |
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.
|
getAxisBuildTicksCallback, getAxisCalculateTickRotationCallback, getAxisDataLimitsCallback, getAxisDimensionsCallback, getAxisFitCallback, getAxisTickToLabelConversionCallback, getAxisUpdateCallback, getType, getWeight, isDisplay, setAxisBuildTicksCallback, setAxisCalculateTickRotationCallback, setAxisDataLimitsCallback, setAxisDimensionsCallback, setAxisFitCallback, setAxisTickToLabelConversionCallback, setAxisUpdateCallback, setDisplay, setType, setWeight
public CartesianTimeAxis(AbstractChart<?,?> chart)
chart
- chart instancepublic CartesianTimeAxis(AbstractChart<?,?> chart, CartesianAxisType cartesianType)
chart
- chart instancecartesianType
- cartesian axis type.public CartesianTimeTick getTicks()
public Time getTime()
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 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)
offset
- extra space of axispublic boolean isOffset()
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 String toJSON()
public final AbstractChart<?,?> getChart()