|
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.Axis
com.imsl.chart.Polar
This Axis node is used for polar charts.
In a polar plot, the (x,y) coordinates in Data nodes
are interpreted as (r,theta) values.
| Field Summary |
| Constructor Summary | |
Polar(Chart chart)
Create an AxisPolar. |
|
| Method Summary | |
AxisR |
getAxisR()
Return the radius axis node. |
AxisTheta |
getAxisTheta()
Return the angular axis node. |
GridPolar |
getGridPolar()
Returns the grid. |
void |
mapDeviceToUser(int devX,
int devY,
double[] userRT)
Map the device coordinates to polar coordinates. |
void |
mapUserToDevice(double userRadius,
double userTheta,
int[] devXY)
Map the polar coordinates (userRadius,userAngle) to the device coordinates devXY. |
void |
paint(Draw draw)
Paints this node and all of its children. |
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 Polar(Chart chart)
chart - a Chart object, the parent of this node| Method Detail |
public void setupMapping()
setupMapping in class Axispublic void paint(Draw draw)
paint in class Axisdraw - the Draw object to be painted
public void mapUserToDevice(double userRadius,
double userTheta,
int[] devXY)
mapUserToDevice in class AxisuserRadius - a double, the user radius coordinateuserTheta - a double, the user angle coordinatedevXY - an int[2] array in which the device coordinates are returned.
public void mapDeviceToUser(int devX,
int devY,
double[] userRT)
mapDeviceToUser in class AxisdevX - an int, the device x-coordinatedevY - an int, the device y-coordinateuserRT - a double[2] array in which the user coordinates, (radius,theta),
are returned.public AxisR getAxisR()
AxisR radius axis nodepublic AxisTheta getAxisTheta()
AxisTheta axis nodepublic GridPolar getGridPolar()
GridPolar object
|
JMSLTM Numerical Library 3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||