|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.chart.client.chart.axis.Axis<M,V>
com.sencha.gxt.chart.client.chart.axis.CartesianAxis<M,Number>
com.sencha.gxt.chart.client.chart.axis.NumericAxis<M>
M - the data type that the axis usespublic class NumericAxis<M>
An axis to handle numeric values. This axis is used for quantitative data as opposed to the category axis. You can set minimum and maximum values to the axis so that the values are bound to that. If no values are set, then the scale will auto-adjust to the values.
| Nested Class Summary | |
|---|---|
class |
NumericAxis.Step
Class that represents a tick mark step in CartesianAxis. |
| Constructor Summary | |
|---|---|
NumericAxis()
Creates a numeric axis. |
|
| Method Summary | |
|---|---|
void |
addField(ValueProvider<M,? extends Number> field)
Adds a ValueProvider to provide data to a field of the axis. |
void |
calcEnds()
Calculate the start, end and step points. |
double |
getMaximum()
Returns the maximum value of the axis. |
double |
getMinimum()
Returns the minimum value of the axis. |
boolean |
isAdjustMaximumByMajorUnit()
Returns true if the axis adjusts the minimum. |
boolean |
isAdjustMinimumByMajorUnit()
Returns true if the axis adjusts the maximum. |
void |
setAdjustMaximumByMajorUnit(boolean adjustMaximumByMajorUnit)
Sets true if the axis adjusts the maximum. |
void |
setAdjustMinimumByMajorUnit(boolean adjustMinimumByMajorUnit)
Sets true if the axis adjusts the minimum. |
void |
setMaximum(double maximum)
Sets the maximum value of the axis. |
void |
setMinimum(double minimum)
Sets the minimum value of the axis. |
| Methods inherited from class com.sencha.gxt.chart.client.chart.axis.CartesianAxis |
|---|
delete, drawAxis, drawLabels, getDashSize, getDepth, getGridDefaultConfig, getGridEvenConfig, getGridOddConfig, getHeight, getLabelTolerance, getLength, getMinorTickSteps, getPosition, getTextLabelPadding, getWidth, setDashSize, setDepth, setGridDefaultConfig, setGridEvenConfig, setGridOddConfig, setHeight, setLabelTolerance, setLength, setMinorTickSteps, setPosition, setTextLabelPadding, setWidth |
| Methods inherited from class com.sencha.gxt.chart.client.chart.axis.Axis |
|---|
addAxisHandler, addAxisItemOutHandler, addAxisItemOverHandler, addAxisSelectionHandler, getAxisConfig, getBBox, getChart, getFrom, getLabelConfig, getLabelProvider, getSteps, getTitleConfig, getTo, getX, getY, isDisplayGrid, isHidden, onMouseDown, onMouseMove, onMouseOut, removeToolTip, setAxisConfig, setChart, setDisplayGrid, setHidden, setLabelConfig, setLabelProvider, setSteps, setTitleConfig, setToolTipConfig, setX, setY |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumericAxis()
| Method Detail |
|---|
public void addField(ValueProvider<M,? extends Number> field)
ValueProvider to provide data to a field of the axis.
field - the value providerpublic void calcEnds()
public double getMaximum()
public double getMinimum()
public boolean isAdjustMaximumByMajorUnit()
public boolean isAdjustMinimumByMajorUnit()
public void setAdjustMaximumByMajorUnit(boolean adjustMaximumByMajorUnit)
adjustMaximumByMajorUnit - true if the axis adjusts the maximumpublic void setAdjustMinimumByMajorUnit(boolean adjustMinimumByMajorUnit)
adjustMinimumByMajorUnit - true if the axis adjusts the minimumpublic void setMaximum(double maximum)
maximum - the maximum value of the axispublic void setMinimum(double minimum)
minimum - the minimum value of the axis
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||