IErrorBar.ErrorBarType
Modifier and Type | Field and Description |
---|---|
private org.eclipse.swt.graphics.Color |
color
the color
|
private static int |
DEFAULT_COLOR
the default color
|
private static double |
DEFAULT_ERROR
the default error
|
private static int |
DEFAULT_LINE_WIDTH
the default line width
|
private static IErrorBar.ErrorBarType |
DEFAULT_TYPE
the default error bar type
|
private double |
error
the error
|
private boolean |
isVisible
the visibility state
|
private int |
lineWidth
the line width
|
private double[] |
minusErrors
the minus errors
|
private double[] |
plusErrors
the plus errors
|
private IErrorBar.ErrorBarType |
type
the error bar type
|
Constructor and Description |
---|
ErrorBar()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
draw(org.eclipse.swt.graphics.GC gc,
int h,
int v,
Axis axis,
double plusError,
double minusError)
Draws the error bar.
|
protected void |
draw(org.eclipse.swt.graphics.GC gc,
int h,
int v,
Axis axis,
int seriesIndex)
Draws error bar.
|
org.eclipse.swt.graphics.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(org.eclipse.swt.graphics.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.
|
private static final int DEFAULT_LINE_WIDTH
private static final double DEFAULT_ERROR
private static final int DEFAULT_COLOR
private static final IErrorBar.ErrorBarType DEFAULT_TYPE
private org.eclipse.swt.graphics.Color color
private int lineWidth
private double error
private double[] plusErrors
private double[] minusErrors
private IErrorBar.ErrorBarType type
private boolean isVisible
public IErrorBar.ErrorBarType getType()
IErrorBar
public void setType(IErrorBar.ErrorBarType type)
IErrorBar
public org.eclipse.swt.graphics.Color getColor()
IErrorBar
public void setColor(org.eclipse.swt.graphics.Color color)
IErrorBar
public int getLineWidth()
IErrorBar
getLineWidth
in interface IErrorBar
public void setLineWidth(int width)
IErrorBar
setLineWidth
in interface IErrorBar
width
- line width to draw error barpublic double getError()
IErrorBar
public 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.
public double[] getPlusErrors()
IErrorBar
getPlusErrors
in interface IErrorBar
public void setPlusErrors(double[] errors)
IErrorBar
setPlusErrors
in interface IErrorBar
errors
- the plus errorspublic double[] getMinusErrors()
IErrorBar
getMinusErrors
in interface IErrorBar
public void setMinusErrors(double[] errors)
IErrorBar
setMinusErrors
in interface IErrorBar
errors
- the minus errorspublic boolean isVisible()
IErrorBar
public void setVisible(boolean visible)
IErrorBar
setVisible
in interface IErrorBar
visible
- the visibility stateprotected void draw(org.eclipse.swt.graphics.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 indexprivate void draw(org.eclipse.swt.graphics.GC gc, int h, int v, Axis axis, double plusError, double minusError)
gc
- the graphics contexth
- the horizontal coordinate to draw error barv
- the vertical coordinate to draw error baraxis
- the axisplusError
- the plus errorminusError
- the minus error