|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.chart.AbstractChartNode com.imsl.chart.ChartNode com.imsl.chart.Axis
public abstract class Axis
The Axis node provides the mapping for all of its children from the user coordinate space to the device (screen) space.
Field Summary |
---|
Fields inherited from class com.imsl.chart.AbstractChartNode |
---|
AUTOSCALE_DATA, AUTOSCALE_DENSITY, AUTOSCALE_NUMBER, AUTOSCALE_OFF, AUTOSCALE_WINDOW, AXIS_X, AXIS_Y, AXIS_Z, LABEL_TYPE_NONE, LABEL_TYPE_TITLE, LABEL_TYPE_X, LABEL_TYPE_Y, LABEL_TYPE_Z, TRANSFORM_CUSTOM, TRANSFORM_LINEAR, TRANSFORM_LOG |
Constructor Summary | |
---|---|
Axis(Chart chart)
Contructs an Axis node. |
Method Summary | |
---|---|
abstract void |
mapDeviceToUser(int devX,
int devY,
double[] userXY)
Maps the device coordinates to user coordinates. |
abstract void |
mapUserToDevice(double userX,
double userY,
int[] devXY)
Maps the user coordinates (userX,userY) to the device coordinates devXY. |
void |
paint(Draw draw)
Paints this node and all of its children. |
abstract void |
setupMapping()
Initializes the mappings between user and coordinate space. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Axis(Chart chart)
Axis
node. Its parent must be a Chart
node. This node's
"Axis" attribute has itself as a value, so that decendent nodes can
easily obtain their controlling axis node.
chart
- a Chart
object, the parent of this nodeMethod Detail |
---|
public abstract void mapDeviceToUser(int devX, int devY, double[] userXY)
devX
- an int
which specifies the device
x-coordinatedevY
- an int
which specifies the device
y-coordinateuserXY
- an int
[2] array on input, on output, the
user coordinatespublic abstract void mapUserToDevice(double userX, double userY, int[] devXY)
userX
- a double
which specifies the user
x-coordinateuserY
- a double
which specifies the user
y-coordinatedevXY
- an int
[2] array on input, on output, the
device coordinatespublic void paint(Draw draw)
paint
in class ChartNode
draw
- a Draw
object which specifies the chart
tree to be rendered on the screenpublic abstract void setupMapping()
|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |