org.swtchart.IErrorBar Interface Reference

An error bar. More...

Inheritance diagram for org.swtchart.IErrorBar:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

An error bar.

Definition at line 14 of file IErrorBar.java.


Member Enumeration Documentation

The error bar type.

Enumerator:
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.


Member Function Documentation

Color org.swtchart.IErrorBar.getColor (  ) 

Gets the error bar color.

The default color is dark gray.

Returns:
the error bar color

Implemented in org.swtchart.internal.series.ErrorBar.

double org.swtchart.IErrorBar.getError (  ) 

Gets the error.

Returns:
the error

Implemented in org.swtchart.internal.series.ErrorBar.

int org.swtchart.IErrorBar.getLineWidth (  ) 

Gets the line width to draw error bar.

Returns:
the line width to draw error bar

Implemented in org.swtchart.internal.series.ErrorBar.

double [] org.swtchart.IErrorBar.getMinusErrors (  ) 

Gets the minus errors.

Returns:
the minus errors, or empty array if errors are not set.

Implemented in org.swtchart.internal.series.ErrorBar.

double [] org.swtchart.IErrorBar.getPlusErrors (  ) 

Gets the plus errors.

Returns:
the plus errors, or empty array if errors are not set.

Implemented in org.swtchart.internal.series.ErrorBar.

ErrorBarType org.swtchart.IErrorBar.getType (  ) 

Gets the error type.

Returns:
the error type

Implemented in org.swtchart.internal.series.ErrorBar.

boolean org.swtchart.IErrorBar.isVisible (  ) 

Gets the visibility state.

Returns:
true if error bar is visible

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.

Parameters:
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.

Parameters:
error the error

Implemented in org.swtchart.internal.series.ErrorBar.

Referenced by org.swtchart.examples.ErrorBarsExample.createChart().

Here is the caller graph for this function:

void org.swtchart.IErrorBar.setLineWidth ( int  width  ) 

Sets the line width to draw error bar.

The default line width is 1.

Parameters:
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.

Parameters:
errors the minus errors

Implemented in org.swtchart.internal.series.ErrorBar.

void org.swtchart.IErrorBar.setPlusErrors ( double[]  errors  ) 

Sets the plus errors.

Parameters:
errors the plus errors

Implemented in org.swtchart.internal.series.ErrorBar.

void org.swtchart.IErrorBar.setType ( ErrorBarType  type  ) 

Sets the error type.

Parameters:
type the error type
void org.swtchart.IErrorBar.setVisible ( boolean  visible  ) 

Sets the visibility state.

Parameters:
visible the visibility state

Implemented in org.swtchart.internal.series.ErrorBar.

Referenced by org.swtchart.examples.ErrorBarsExample.createChart().

Here is the caller graph for this function:


The documentation for this interface was generated from the following file:

Generated on 26 Oct 2015 for SWTChart.org by  doxygen 1.6.1