| Modifier and Type | Field and Description |
|---|---|
Color |
COLOR |
ErrorBars |
ERRORS |
String |
label |
GraphLine |
LINE |
GraphPoints |
POINTS |
| Constructor and Description |
|---|
DataSet(double[] x,
double[] y) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(double x,
double y) |
void |
addXErrorBars(double[] errors)
For adding error bars along the x-axis.
|
void |
addXYErrorBars(double[] xerr,
double[] yerr)
For adding error bars on both axis.
|
void |
addYErrorBars(double[] errors)
Add error bars in the y direction.
|
ErrorBars |
getErrorBars() |
double |
getLineWidth() |
double |
getPointSize() |
double |
getPointWeight() |
Iterator<Point2D> |
iterator() |
void |
removeErrorBars()
remove the error bars.
|
void |
setColor(Color c) |
void |
setData(double[] x,
double[] y) |
void |
setLabel(String l)
Sets the label, if there is a label on an active data set then
the key will be drawn.
|
void |
setLine(GraphLine l) |
void |
setLineWidth(double d) |
void |
setPoints(GraphPoints p) |
void |
setPointSize(double d) |
void |
setPointWeight(double d) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Color COLOR
public GraphPoints POINTS
public GraphLine LINE
public ErrorBars ERRORS
public String label
public void addYErrorBars(double[] errors)
errors - public void addXErrorBars(double[] errors)
errors - public void addXYErrorBars(double[] xerr,
double[] yerr)
xerr - yerr - public void removeErrorBars()
public void setColor(Color c)
public void setLine(GraphLine l)
public void setPoints(GraphPoints p)
public void addPoint(double x,
double y)
public void setData(double[] x,
double[] y)
public void setLabel(String l)
l - @nullable data set label. null will make this line be skipped.public double getLineWidth()
public void setLineWidth(double d)
public double getPointSize()
public void setPointSize(double d)
public double getPointWeight()
public void setPointWeight(double d)
public ErrorBars getErrorBars()
Copyright © 2017. All rights reserved.