public class CartesianTimeAxis extends CartesianAxis<CartesianTimeTick>
Modifier | Constructor and Description |
---|---|
|
CartesianTimeAxis(IsChart chart)
Builds the object storing the chart instance.
|
|
CartesianTimeAxis(IsChart chart,
AxisKind kind)
Builds the object storing the chart instance and axis type.
|
|
CartesianTimeAxis(IsChart chart,
ScaleId id)
Builds the object storing the chart instance.
|
|
CartesianTimeAxis(IsChart chart,
ScaleId id,
AxisKind kind)
Builds the object storing the chart instance and axis type.
|
protected |
CartesianTimeAxis(IsChart chart,
ScaleId id,
AxisType type,
AxisKind kind)
Builds the object storing the chart instance and cartesian axis type.
|
|
CartesianTimeAxis(IsChart chart,
String id)
Builds the object storing the chart instance.
|
|
CartesianTimeAxis(IsChart chart,
String id,
AxisKind kind)
Builds the object storing the chart instance and axis type.
|
Modifier and Type | Method and Description |
---|---|
Adapters |
getAdapters()
Returns the adapters element.
|
IsChart |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
Date |
getMax()
If defined, this will override the data maximum.
|
Date |
getMin()
If defined, this will override the data minimum.
|
CartesianTimeTick |
getTicks()
Returns the ticks element
|
Time |
getTime()
Returns the time element.
|
ChartEnvelop<NativeObject> |
loadNativeObject(ChartEnvelop<NativeObject> envelop)
Returns the native object instance inside an envelop.
It can be called only from org.pepstock.charba.client package. |
void |
merge(NativeObjectContainer source,
String property)
Merge a native object in the 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 in the options of chart. |
protected void |
setConfiguration(T configuration) |
void |
setMax(Date max)
If defined, this will override the data maximum.
|
void |
setMin(Date min)
If defined, this will override the data minimum.
|
String |
toJSON()
Returns the JSON representation of the object.
|
getBounds, getGrid, getPosition, getStack, getStackWeight, getTitle, isOffset, isSingleStacked, isStacked, setBounds, setOffset, setPosition, setSingleStacked, setStack, setStacked, setStackWeight
getAxis, getAxisBuildTicksCallback, getAxisCalculateLabelRotationCallback, getAxisDataLimitsCallback, getAxisDimensionsCallback, getAxisFitCallback, getAxisTickToLabelConversionCallback, getAxisUpdateCallback, getBackgroundColor, getBackgroundColorAsString, getCharbaId, getDisplay, getId, getType, getWeight, isAlignToPixels, isReverse, setAlignToPixels, setAxisBuildTicksCallback, setAxisCalculateLabelRotationCallback, setAxisDataLimitsCallback, setAxisDimensionsCallback, setAxisFitCallback, setAxisTickToLabelConversionCallback, setAxisUpdateCallback, setBackgroundColor, setBackgroundColor, setDisplay, setDisplay, setReverse, setWeight
public CartesianTimeAxis(IsChart chart)
chart
- chart instancepublic CartesianTimeAxis(IsChart chart, String id)
chart
- chart instanceid
- axis idpublic CartesianTimeAxis(IsChart chart, ScaleId id)
chart
- chart instanceid
- axis idpublic CartesianTimeAxis(IsChart chart, AxisKind kind)
chart
- chart instancekind
- axis kindpublic CartesianTimeAxis(IsChart chart, String id, AxisKind kind)
chart
- chart instanceid
- axis idkind
- axis kindpublic CartesianTimeAxis(IsChart chart, ScaleId id, AxisKind kind)
chart
- chart instanceid
- axis idkind
- axis kindpublic CartesianTimeTick getTicks()
CartesianAxis
getTicks
in class CartesianAxis<CartesianTimeTick>
public Time getTime()
public Adapters getAdapters()
public void setMax(Date max)
max
- If defined, this will override the data maximum.public Date getMax()
public void setMin(Date min)
min
- If defined, this will override the data minimum.public Date getMin()
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 ChartEnvelop<NativeObject> loadNativeObject(ChartEnvelop<NativeObject> envelop)
org.pepstock.charba.client
package.envelop
- envelop instance which will contain the native objectpublic final IsChart getChart()