|
JMSLTM Numerical Library 5.0.1 | |||||||
| 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
com.imsl.chart.ErrorBar
public class ErrorBar
Data points with error bars.
| Field Summary | |
|---|---|
static int |
DATA_TYPE_ERROR_X
Value for attribute "DataType" indicating that this is a horizontal error bar. |
static int |
DATA_TYPE_ERROR_Y
Value for attribute "DataType" indicating that this is a vertical error bar. |
| 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 | |
|---|---|
ErrorBar(AxisXY axis,
double[] x,
double[] y,
double[] low,
double[] high)
Creates a set of error bars centered at (x[k],y[k]) and with extents low[k],high[k]. |
|
| Method Summary | |
|---|---|
void |
dataRange(double[] range)
Update the data range, range = {xmin,xmax,ymin,ymax}. |
double[] |
getHigh()
Convenience routine to get the "High" attribute. |
double[] |
getLow()
Convenience routine to get the "Low" attribute. |
void |
paint(Draw draw)
Paints this node and all of its children. |
void |
setHigh(double[] value)
Convenience routine to set the "High" attribute. |
void |
setLow(double[] value)
Convenience routine to set the "Low" attribute. |
| Methods inherited from class com.imsl.chart.Data |
|---|
formatLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DATA_TYPE_ERROR_X
public static final int DATA_TYPE_ERROR_Y
| Constructor Detail |
|---|
public ErrorBar(AxisXY axis,
double[] x,
double[] y,
double[] low,
double[] high)
A Data node with the same x and y values can be used to put markers at the center of each error bar.
axis - an Axis objectx - a double array which contains the x coordinates of
the points at which the error bars will be centered.
This is used to set the "X" attribute.y - a double array which contains the y coordinates of
the points at which the error bars will be centered.
This is used to set the "Y" attribute.low - a double array which contains the values which define
the minimum extent of the error bars.
This is used to set the "Low" attribute.high - a double array which contains the values which define
the maximum extent of the error bars.
This is used to set the "High" attribute.| 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.
The argument 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.
dataRange in class Datarange - a double array which contains the updated
range, {xmin,xmax,ymin,ymax}public double[] getHigh()
double array which contains
the value of the "High" attributepublic double[] getLow()
double array which contains
the value of the "Low" attributepublic void paint(Draw draw)
paint in class Datadraw - the Draw object to be paintedpublic void setHigh(double[] value)
value - an double array which contains
the "High" values.public void setLow(double[] value)
value - an double array which contains
the "Low" values.
|
JMSLTM Numerical Library 5.0.1 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||