public class CartesianLinearAxis extends CartesianAxis<CartesianLinearTick> implements IsLinearAxis
Modifier | Constructor and Description |
---|---|
|
CartesianLinearAxis(IsChart chart)
Builds the object storing the chart instance.
|
|
CartesianLinearAxis(IsChart chart,
AxisKind kind)
Builds the object storing the chart instance and axis type.
|
|
CartesianLinearAxis(IsChart chart,
ScaleId id)
Builds the object storing the chart instance.
|
|
CartesianLinearAxis(IsChart chart,
ScaleId id,
AxisKind kind)
Builds the object storing the chart instance and axis type.
|
protected |
CartesianLinearAxis(IsChart chart,
ScaleId id,
AxisType type,
AxisKind kind)
Builds the object storing the chart instance and cartesian axis type, to use to extend the axis.
|
|
CartesianLinearAxis(IsChart chart,
String id)
Builds the object storing the chart instance.
|
|
CartesianLinearAxis(IsChart chart,
String id,
AxisKind kind)
Builds the object storing the chart instance and axis type.
|
Modifier and Type | Method and Description |
---|---|
Axis |
getAxisElement()
Returns the axis instance.
|
IsChart |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
int |
getGrace()
Returns the value in pixels is added to the maximum data value and subtracted from the minimum data.
This extends the scale range as if the data values were that much greater. |
String |
getGraceAsPercentage()
Returns the value in percentage is added to the maximum data value and subtracted from the minimum data.
This extends the scale range as if the data values were that much greater. |
CartesianLinearTick |
getTicks()
Returns the ticks 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 |
setGrace(int grace)
Sets the value in pixels is added to the maximum data value and subtracted from the minimum data.
This extends the scale range as if the data values were that much greater. |
void |
setGraceAsPercentage(String grace)
Sets the value in percentage is added to the maximum data value and subtracted from the minimum data.
This extends the scale range as if the data values were that much greater. |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isBeginAtZero, setBeginAtZero
getMax, getMin, getSuggestedMax, getSuggestedMin, setMax, setMin, setSuggestedMax, setSuggestedMin
public CartesianLinearAxis(IsChart chart)
chart
- chart instancepublic CartesianLinearAxis(IsChart chart, String id)
chart
- chart instanceid
- axis idpublic CartesianLinearAxis(IsChart chart, ScaleId id)
chart
- chart instanceid
- axis idpublic CartesianLinearAxis(IsChart chart, AxisKind kind)
chart
- chart instancekind
- axis kind.public CartesianLinearAxis(IsChart chart, String id, AxisKind kind)
chart
- chart instanceid
- axis idkind
- axis kind.public CartesianLinearAxis(IsChart chart, ScaleId id, AxisKind kind)
chart
- chart instanceid
- axis idkind
- axis kind.public final Axis getAxisElement()
IsNumericAxis
getAxisElement
in interface IsNumericAxis
public CartesianLinearTick getTicks()
CartesianAxis
getTicks
in class CartesianAxis<CartesianLinearTick>
public void setGrace(int grace)
grace
- the value in pixels is added to the maximum data value and subtracted from the minimum datapublic int getGrace()
public void setGraceAsPercentage(String grace)
grace
- the value in percentage is added to the maximum data value and subtracted from the minimum datapublic String getGraceAsPercentage()
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()