|
JMSLTM Numerical Library 3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.imsl.chart.ChartNode
com.imsl.chart.Axis1D
An x-axis or a y-axis.
Axis1D is created by AxisXY as its child. It can be retrieved
using the method AxisXY.getAxisX() or AxisXY.getAxisY().
It in turn creates the following child nodes: AxisLine,
AxisLabel, AxisTitle, AxisUnit, MajorTick,
MinorTick and Grid.
The number of tick marks ("Number" attribute) is set to 5, but autoscaling can change this value.
| Field Summary |
| Method Summary | |
AxisLabel |
getAxisLabel()
Returns the label node associated with this axis. |
AxisLine |
getAxisLine()
Returns the axis line node associated with this axis. |
AxisTitle |
getAxisTitle()
Returns the title node associated with this axis. |
AxisUnit |
getAxisUnit()
Returns the unit node associated with this axis. |
double |
getFirstTick()
Convenience routine to get the "FirstTick" attribute. |
Grid |
getGrid()
Returns the grid node associated with this axis. |
MajorTick |
getMajorTick()
Returns the major tick node associated with this axis. |
MinorTick |
getMinorTick()
Returns the minor tick node associated with this axis. |
double |
getTickInterval()
Retrieves the tick interval. |
double[] |
getTicks()
Returns the value of the "Ticks" attribute, if set. |
int |
getType()
Returns the axis type. |
double[] |
getWindow()
Returns the window for an Axis1D. |
void |
paint(Draw draw)
Paints this node and all of its children. |
void |
setFirstTick(double firstTick)
Convenience routine to set the "FirstTick" attribute. |
void |
setTickInterval(double tickInterval)
Sets the tick interval. |
void |
setTicks(double[] ticks)
Sets the value of the "Ticks" attribute. |
void |
setType(int type)
Sets the type of this node. |
void |
setWindow(double[] window)
Sets the window for an Axis1D. |
void |
setWindow(double min,
double max)
Sets the window for an Axis1D. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public void paint(Draw draw)
paint in class ChartNodedraw - the Draw object to be painted
public void setWindow(double min,
double max)
min - a double which specifies the value of the
left/bottom end of the axismax - a double which specifies the value of the
right/top end of the axispublic void setWindow(double[] window)
window - is an array of length two containing the range
of this axis.public double[] getWindow()
double array of length two containing the range
of this axis.public void setType(int type)
type - an int which specifies the node type; can
be AXIS_X, AXIS_Y,
AXIS_X_TOP or AXIS_Y_RIGHTChartNode.AXIS_X,
ChartNode.AXIS_Y,
ChartNode.AXIS_X_TOP,
ChartNode.AXIS_Y_RIGHTpublic int getType()
int which specifies the node type; can be
AXIS_X, AXIS_Y,
AXIS_X_TOP or AXIS_Y_RIGHTChartNode.AXIS_X,
ChartNode.AXIS_Y,
ChartNode.AXIS_X_TOP,
ChartNode.AXIS_Y_RIGHTpublic AxisLabel getAxisLabel()
AxisLabel node created as a child by this nodepublic AxisLine getAxisLine()
AxisLine node created as a child by this nodepublic AxisTitle getAxisTitle()
AxisTitle node created as a child by this nodepublic AxisUnit getAxisUnit()
AxisUnit node created as a child by this nodepublic MajorTick getMajorTick()
MajorTick node created as a child by this nodepublic MinorTick getMinorTick()
MinorTick node created as a child by this nodepublic Grid getGrid()
Grid node created as a child by this nodepublic void setFirstTick(double firstTick)
firstTick - a double, the location of the first
tickpublic double getFirstTick()
double value of the "FirstTick" attribute, if
defined. Otherwise, window[0] is returned.public void setTickInterval(double tickInterval)
tickInterval - a double which specifies a tick
intervalpublic double getTickInterval()
double which specifies the tick intervalpublic void setTicks(double[] ticks)
ticks - an array of doubles which contain the
location, in user coordinates, of the major tick marks.
If set, this attribute overrides the automatic
computation of the tick values.public double[] getTicks()
double value of the "Ticks" attribute, if
defined. Otherwise, the computed tick values are returned.
|
JMSLTM Numerical Library 3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||