|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.swtchart.internal.series.ErrorBar
public class ErrorBar
The error bar.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.swtchart.IErrorBar |
|---|
IErrorBar.ErrorBarType |
| Constructor Summary | |
|---|---|
ErrorBar()
The constructor. |
|
| Method Summary | |
|---|---|
protected void |
draw(GC gc,
int h,
int v,
Axis axis,
int seriesIndex)
Draws error bar. |
Color |
getColor()
Gets the error bar color. |
double |
getError()
Gets the error. |
int |
getLineWidth()
Gets the line width to draw error bar. |
double[] |
getMinusErrors()
Gets the minus errors. |
double[] |
getPlusErrors()
Gets the plus errors. |
IErrorBar.ErrorBarType |
getType()
Gets the error type. |
boolean |
isVisible()
Gets the visibility state. |
void |
setColor(Color color)
Sets the error bar color. |
void |
setError(double error)
Sets the error. |
void |
setLineWidth(int width)
Sets the line width to draw error bar. |
void |
setMinusErrors(double[] errors)
Sets the minus errors. |
void |
setPlusErrors(double[] errors)
Sets the plus errors. |
void |
setType(IErrorBar.ErrorBarType type)
Sets the error type. |
void |
setVisible(boolean visible)
Sets the visibility state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorBar()
| Method Detail |
|---|
public IErrorBar.ErrorBarType getType()
IErrorBar
getType in interface IErrorBarpublic void setType(IErrorBar.ErrorBarType type)
IErrorBar
setType in interface IErrorBartype - the error typepublic Color getColor()
IErrorBar
getColor in interface IErrorBarpublic void setColor(Color color)
IErrorBar
setColor in interface IErrorBarcolor - the error bar colorpublic int getLineWidth()
IErrorBar
getLineWidth in interface IErrorBarpublic void setLineWidth(int width)
IErrorBar
setLineWidth in interface IErrorBarwidth - line width to draw error barpublic double getError()
IErrorBar
getError in interface IErrorBarpublic void setError(double error)
IErrorBar
If errors have been set with IErrorBar.getPlusErrors() or
IErrorBar.getMinusErrors(), the value set with this method won't be used.
setError in interface IErrorBarerror - the errorpublic double[] getPlusErrors()
IErrorBar
getPlusErrors in interface IErrorBarpublic void setPlusErrors(double[] errors)
IErrorBar
setPlusErrors in interface IErrorBarerrors - the plus errorspublic double[] getMinusErrors()
IErrorBar
getMinusErrors in interface IErrorBarpublic void setMinusErrors(double[] errors)
IErrorBar
setMinusErrors in interface IErrorBarerrors - the minus errorspublic boolean isVisible()
IErrorBar
isVisible in interface IErrorBarpublic void setVisible(boolean visible)
IErrorBar
setVisible in interface IErrorBarvisible - the visibility state
protected void draw(GC gc,
int h,
int v,
Axis axis,
int seriesIndex)
gc - the graphics contexth - the horizontal coordinate to draw error barv - the vertical coordinate to draw error baraxis - the x axisseriesIndex - the series index
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||