public class ErrorBars extends Object
| Constructor and Description |
|---|
ErrorBars(double[] xerrors,
double[] yerrors) |
ErrorBars(double[] errors,
int axis)
For applying Error bars along a single, x or y, axis.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawErrorAt(int i,
Point2D pt,
GraphPainter painter)
This will draw a set of error bars using the supplied painter at the location
provided.
|
double[] |
getErrorData(int axis) |
boolean |
hasXData() |
boolean |
hasYData() |
static void |
main(String[] args)
Method for testing.
|
void |
setScale(double scale_x,
double scale_y)
For correctly scaling the error bars on the graph.
|
void |
setSize(double size)
Sets the size, for the current drawing method the size is the size of the end
caps.
|
void |
setWeight(double v)
sets the line weight
|
public static final int XAXIS
public static final int YAXIS
public ErrorBars(double[] errors,
int axis)
errors - values that are applied at each point.axis - use the static fields to determine which axis.public ErrorBars(double[] xerrors,
double[] yerrors)
public void setScale(double scale_x,
double scale_y)
scale_x - scale_y - public void drawErrorAt(int i,
Point2D pt,
GraphPainter painter)
i - index of the correspoonding point.pt - scaled position that the point will be drawn.painter - object used to draw the error bars.public void setWeight(double v)
v - public void setSize(double size)
size - public static void main(String[] args)
args - public boolean hasXData()
public boolean hasYData()
public double[] getErrorData(int axis)
Copyright © 2017. All rights reserved.