An error bar. More...
Public Types | |
enum | ErrorBarType { BOTH = ("Both"), PLUS = ("Plus"), MINUS = ("Minus") } |
The error bar type. More... | |
Public Member Functions | |
ErrorBarType | getType () |
Gets the error type. | |
void | setType (ErrorBarType type) |
Sets the error type. | |
Color | getColor () |
Gets the error bar color. | |
void | setColor (Color color) |
Sets the error bar color. | |
int | getLineWidth () |
Gets the line width to draw error bar. | |
void | setLineWidth (int width) |
Sets the line width to draw error bar. | |
double | getError () |
Gets the error. | |
void | setError (double error) |
Sets the error. | |
double[] | getPlusErrors () |
Gets the plus errors. | |
void | setPlusErrors (double[] errors) |
Sets the plus errors. | |
double[] | getMinusErrors () |
Gets the minus errors. | |
void | setMinusErrors (double[] errors) |
Sets the minus errors. | |
void | setVisible (boolean visible) |
Sets the visibility state. | |
boolean | isVisible () |
Gets the visibility state. |
An error bar.
Definition at line 14 of file IErrorBar.java.
The error bar type.
BOTH |
the error bar in both positive and negative directions |
PLUS |
the error bar in positive direction |
MINUS |
the error bar in negative direction |
Definition at line 19 of file IErrorBar.java.
Color org.swtchart.IErrorBar.getColor | ( | ) |
Gets the error bar color.
The default color is dark gray.
Implemented in org.swtchart.internal.series.ErrorBar.
double org.swtchart.IErrorBar.getError | ( | ) |
int org.swtchart.IErrorBar.getLineWidth | ( | ) |
Gets the line width to draw error bar.
Implemented in org.swtchart.internal.series.ErrorBar.
double [] org.swtchart.IErrorBar.getMinusErrors | ( | ) |
Gets the minus errors.
Implemented in org.swtchart.internal.series.ErrorBar.
double [] org.swtchart.IErrorBar.getPlusErrors | ( | ) |
Gets the plus errors.
Implemented in org.swtchart.internal.series.ErrorBar.
ErrorBarType org.swtchart.IErrorBar.getType | ( | ) |
boolean org.swtchart.IErrorBar.isVisible | ( | ) |
Gets the visibility state.
Implemented in org.swtchart.internal.series.ErrorBar.
void org.swtchart.IErrorBar.setColor | ( | Color | color | ) |
Sets the error bar color.
If null
is given, default color will be set.
color | the error bar color |
Implemented in org.swtchart.internal.series.ErrorBar.
void org.swtchart.IErrorBar.setError | ( | double | error | ) |
Sets the error.
If errors have been set with getPlusErrors() or getMinusErrors(), the value set with this method won't be used.
error | the error |
Implemented in org.swtchart.internal.series.ErrorBar.
Referenced by org.swtchart.examples.ErrorBarsExample.createChart().
void org.swtchart.IErrorBar.setLineWidth | ( | int | width | ) |
Sets the line width to draw error bar.
The default line width is 1.
width | line width to draw error bar |
Implemented in org.swtchart.internal.series.ErrorBar.
void org.swtchart.IErrorBar.setMinusErrors | ( | double[] | errors | ) |
Sets the minus errors.
errors | the minus errors |
Implemented in org.swtchart.internal.series.ErrorBar.
void org.swtchart.IErrorBar.setPlusErrors | ( | double[] | errors | ) |
Sets the plus errors.
errors | the plus errors |
Implemented in org.swtchart.internal.series.ErrorBar.
void org.swtchart.IErrorBar.setType | ( | ErrorBarType | type | ) |
Sets the error type.
type | the error type |
void org.swtchart.IErrorBar.setVisible | ( | boolean | visible | ) |
Sets the visibility state.
visible | the visibility state |
Implemented in org.swtchart.internal.series.ErrorBar.
Referenced by org.swtchart.examples.ErrorBarsExample.createChart().