|
JMSLTM Numerical Library 4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.imsl.chart.AbstractChartNode
com.imsl.chart.ChartNode
com.imsl.chart.Data
Draws a data node.
Drawing of a Data node is determined by the setting of the "DataType"
attribute. Multiple bits can be set in "DataType".
If the ChartNode.DATA_TYPE_LINE bit is set, the
line attributes
are active.
If the ChartNode.DATA_TYPE_MARKER bit is set, the
marker attributes
are active.
If the ChartNode.DATA_TYPE_FILL bit is set, the
fill attributes
are active.
If the attribute "LabelType" is set to other than the default, then the data points are labeled. The contents of the labels are determined by the value of the "LabelType" attribute. See Chart Programmer's Guide: Labels for details. The drawing of the labels is controlled by the text attributes.
| 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 | |
Data(ChartNode parent)
Creates a data node. |
|
Data(ChartNode parent,
ChartFunction cf,
double a,
double b)
Creates a data node with y values. |
|
Data(ChartNode parent,
double[] y)
Creates a data node with y values. |
|
Data(ChartNode parent,
double[] x,
double[] y)
Creates a data node with x and y values. |
|
| Method Summary | |
void |
dataRange(double[] range)
Update the data range. |
protected Text |
formatLabel(double x,
double y)
|
void |
paint(Draw draw)
Paints this node and all of its children. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Data(ChartNode parent)
parent - the ChartNode parent of this data node
public Data(ChartNode parent,
ChartFunction cf,
double a,
double b)
parent - the ChartNode parent of this data nodecf - a ChartFunction object that defines the function to be plotteda - a double, the left endpointb - a double, the right endpoint
public Data(ChartNode parent,
double[] y)
parent - the ChartNode parent of this data nodey - a double array containing the "Y" attribute in this node
public Data(ChartNode parent,
double[] x,
double[] y)
parent - the ChartNode parent of this data nodex - a double array which contains the value for
the attribute "X" in this nodey - a double array which contains the value for
the attribute "Y" in this node| Method Detail |
public void dataRange(double[] range)
range = {xmin,xmax,ymin,ymax}
The entries in range are updated to reflect the extent of
the data in this node.
Range is an input/output variable. Its value should be
updated only if the data in this node is outside the range
already in the array.
range - a double array which contains the updated
range, {xmin,xmax,ymin,ymax}
protected Text formatLabel(double x,
double y)
public void paint(Draw draw)
paint in class ChartNodedraw - the Draw object to be painted
|
JMSLTM Numerical Library 4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||