public class CartesianCategoryAxis extends CartesianAxis<CartesianCategoryTick>
Modifier | Constructor and Description |
---|---|
|
CartesianCategoryAxis(IsChart chart)
Builds the object storing the chart instance.
|
|
CartesianCategoryAxis(IsChart chart,
AxisKind kind)
Builds the object storing the chart instance and axis type.
|
|
CartesianCategoryAxis(IsChart chart,
ScaleId id)
Builds the object storing the chart instance.
|
|
CartesianCategoryAxis(IsChart chart,
ScaleId id,
AxisKind kind)
Builds the object storing the chart instance and axis type.
|
protected |
CartesianCategoryAxis(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.
|
|
CartesianCategoryAxis(IsChart chart,
String id)
Builds the object storing the chart instance.
|
|
CartesianCategoryAxis(IsChart chart,
String id,
AxisKind kind)
Builds the object storing the chart instance and axis type.
|
Modifier and Type | Method and Description |
---|---|
IsChart |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
Labels |
getLabels()
Returns the labels.
|
Labels |
getLabels(boolean binding)
Returns the labels for axes.
|
String |
getMax()
Returns the maximum item to display.
|
int |
getMaxIndex()
Returns the maximum item at passed index to display.
|
String |
getMin()
Returns the minimum item to display
|
int |
getMinIndex()
Returns the minimum item at passed index to display
|
CartesianCategoryTick |
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 |
setLabels(Labels labels)
Sets the labels of the data.
|
void |
setLabels(List<String> labels)
Sets an array of labels to display.
|
void |
setLabels(String... labels)
Sets an array of labels to display.
|
void |
setMax(String max)
Sets the maximum item to display.
|
void |
setMaxIndex(int max)
Sets the maximum item at passed index to display.
|
void |
setMin(String min)
Sets the minimum item to display.
|
void |
setMinIndex(int min)
Sets the minimum item at passed index to display.
|
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 CartesianCategoryAxis(IsChart chart)
chart
- chart instancepublic CartesianCategoryAxis(IsChart chart, String id)
chart
- chart instanceid
- axis idpublic CartesianCategoryAxis(IsChart chart, ScaleId id)
chart
- chart instanceid
- axis idpublic CartesianCategoryAxis(IsChart chart, AxisKind kind)
chart
- chart instancekind
- axis kind.public CartesianCategoryAxis(IsChart chart, String id, AxisKind kind)
chart
- chart instanceid
- axis idkind
- axis kind.public CartesianCategoryAxis(IsChart chart, ScaleId id, AxisKind kind)
chart
- chart instanceid
- axis idkind
- axis kind.public CartesianCategoryTick getTicks()
CartesianAxis
getTicks
in class CartesianAxis<CartesianCategoryTick>
public void setLabels(String... labels)
labels
- An array of labels to display.public void setLabels(List<String> labels)
labels
- An array of labels to display.public void setLabels(Labels labels)
labels
- labels object to manage also multi-line labelspublic Labels getLabels()
public Labels getLabels(boolean binding)
binding
- if true
binds the new labels in the containerpublic void setMin(String min)
min
- The minimum item to displaypublic String getMin()
public int getMinIndex()
public void setMinIndex(int min)
min
- The minimum item at passed index to displaypublic void setMax(String max)
max
- the maximum item to display.public String getMax()
public void setMaxIndex(int max)
max
- the maximum item at passed index to display.public int getMaxIndex()
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()