|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.chart.axis.Axis
com.jidesoft.chart.axis.NumericAxis
public class NumericAxis
An axis class specialised for numeric values.
For example, if you create a NumericAxis with the following code:
NumericAxis axis = new NumericAxis(0, 100, "X Axis")
you generate an axis which, when used as the x axis, looks as follows:

| Field Summary |
|---|
| Fields inherited from class com.jidesoft.chart.axis.Axis |
|---|
MIN_RESOLUTION, PROPERTY_AXIS_COLOR, PROPERTY_LABEL, PROPERTY_MINOR_TICK_COLOR, PROPERTY_MINOR_TICK_LENGTH, PROPERTY_RANGE, PROPERTY_STROKE, PROPERTY_TICK_CALCULATOR, PROPERTY_TICK_COLOR, PROPERTY_TICK_FONT, PROPERTY_TICK_LABEL_COLOR, PROPERTY_TICK_LENGTH, PROPERTY_TICKS, PROPERTY_UPDATE_OTHER_AXES |
| Constructor Summary | |
|---|---|
NumericAxis()
The default constructor creates an axis that ranges from 0.0 to 1.0, and no axis label. |
|
NumericAxis(AutoPositionedLabel label)
Creates an axis ranging from 0.0 to 1.0 and with the supplied object as the label |
|
NumericAxis(double min,
double max)
Creates an axis ranging from min to max, but without an axis label |
|
NumericAxis(double min,
double max,
String text)
Creates an axis ranging from min to max, and the supplied text as the axis label |
|
NumericAxis(Range<?> range)
Creates an axis using the supplied range |
|
NumericAxis(Range<?> range,
String text)
Creates an axis using the supplied range and the given text as the axis label |
|
NumericAxis(String text)
Creates an axis ranging from 0.0 to 1.0 and with the supplied text as an axis label |
|
| Method Summary | |
|---|---|
AxisQuantity |
getQuantity()
Returns the NUMBER quantity |
protected void |
init()
|
void |
setNumberFormat(NumberFormat numberFormat)
Sets the number format used when rendering ticks on the axis |
void |
setNumberFormat(String numberFormat)
Sets the number format used when rendering ticks on the axis. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NumericAxis()
public NumericAxis(String text)
text - the label for the axispublic NumericAxis(AutoPositionedLabel label)
label - the label object that will be placed in the centre of the axis
public NumericAxis(double min,
double max)
min - the minimum value of the axis rangemax - the maximum value of the axis range
public NumericAxis(double min,
double max,
String text)
min - the minimum value of the axis rangemax - the maximum value of the axis rangetext - the text to use for the axis labelpublic NumericAxis(Range<?> range)
range - the range of the axis
public NumericAxis(Range<?> range,
String text)
range - the range of the axistext - the text to use as the axis label| Method Detail |
|---|
protected void init()
public void setNumberFormat(NumberFormat numberFormat)
numberFormat - the format to useNumberFormatpublic void setNumberFormat(String numberFormat)
numberFormat - the format string to useDecimalFormatpublic AxisQuantity getQuantity()
getQuantity in class Axis
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||