org.swtchart.ILineSeries Interface Reference

Line series. More...

Inheritance diagram for org.swtchart.ILineSeries:
Inheritance graph
[legend]
Collaboration diagram for org.swtchart.ILineSeries:
Collaboration graph
[legend]

List of all members.

Public Types

enum  PlotSymbolType {
  NONE = ("None"), CIRCLE = ("Circle"), SQUARE = ("Square"), DIAMOND = ("Diamond"),
  TRIANGLE = ("Triangle"), INVERTED_TRIANGLE = ("Inverted Triangle"), CROSS = ("Cross"), PLUS = ("Plus")
}
 

A plot symbol type.

More...

Public Member Functions

PlotSymbolType getSymbolType ()
 Gets the symbol type.
void setSymbolType (PlotSymbolType type)
 Sets the symbol type.
int getSymbolSize ()
 Gets the symbol size in pixels.
void setSymbolSize (int size)
 Sets the symbol size in pixels.
Color getSymbolColor ()
 Gets the symbol color.
void setSymbolColor (Color color)
 Sets the symbol color.
Color[] getSymbolColors ()
 Gets the symbol colors.
void setSymbolColors (Color[] colors)
 Sets the symbol colors.
LineStyle getLineStyle ()
 Gets line style.
void setLineStyle (LineStyle style)
 Sets line style.
Color getLineColor ()
 Gets the line color.
void setLineColor (Color color)
 Sets line color.
int getLineWidth ()
 Gets the line width.
void setLineWidth (int width)
 Sets the width of line connecting data points and also line drawing symbol if applicable (i.e.
void enableArea (boolean enabled)
 Enables the area chart.
boolean isAreaEnabled ()
 Gets the state indicating if area chart is enabled.
void enableStep (boolean enabled)
 Enables the step chart.
boolean isStepEnabled ()
 Gets the state indicating if step chart is enabled.
int getAntialias ()
 Gets the anti-aliasing value for drawing line.
void setAntialias (int antialias)
 Sets the anti-aliasing value for drawing line.

Detailed Description

Line series.

Definition at line 14 of file ILineSeries.java.


Member Enumeration Documentation

A plot symbol type.

Enumerator:
NONE 

none

CIRCLE 

circle

SQUARE 

square

DIAMOND 

diamond

TRIANGLE 

triangle

INVERTED_TRIANGLE 

inverted triangle

CROSS 

cross

PLUS 

plus

Definition at line 19 of file ILineSeries.java.


Member Function Documentation

void org.swtchart.ILineSeries.enableArea ( boolean  enabled  ) 

Enables the area chart.

Parameters:
enabled true if enabling area chart

Implemented in org.swtchart.internal.series.LineSeries.

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

Here is the caller graph for this function:

void org.swtchart.ILineSeries.enableStep ( boolean  enabled  ) 

Enables the step chart.

Parameters:
enabled true if enabling step chart

Implemented in org.swtchart.internal.series.LineSeries.

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

Here is the caller graph for this function:

int org.swtchart.ILineSeries.getAntialias (  ) 

Gets the anti-aliasing value for drawing line.

The default value is SWT.DEFAULT<tt>.

Returns:
the anti-aliasing value which can be SWT.DEFAULT, SWT.ON or SWT.OFF.

Implemented in org.swtchart.internal.series.LineSeries.

Color org.swtchart.ILineSeries.getLineColor (  ) 

Gets the line color.

Returns:
the line color

Implemented in org.swtchart.internal.series.LineSeries.

LineStyle org.swtchart.ILineSeries.getLineStyle (  ) 

Gets line style.

Returns:
line style.

Implemented in org.swtchart.internal.series.LineSeries.

int org.swtchart.ILineSeries.getLineWidth (  ) 

Gets the line width.

Returns:
the line width

Implemented in org.swtchart.internal.series.LineSeries.

Color org.swtchart.ILineSeries.getSymbolColor (  ) 

Gets the symbol color.

Returns:
the symbol color

Implemented in org.swtchart.internal.series.LineSeries.

Color [] org.swtchart.ILineSeries.getSymbolColors (  ) 

Gets the symbol colors.

Returns:
the symbol colors, or empty array if no symbol colors are set.

Implemented in org.swtchart.internal.series.LineSeries.

int org.swtchart.ILineSeries.getSymbolSize (  ) 

Gets the symbol size in pixels.

Returns:
the symbol size

Implemented in org.swtchart.internal.series.LineSeries.

PlotSymbolType org.swtchart.ILineSeries.getSymbolType (  ) 

Gets the symbol type.

Returns:
the symbol type

Implemented in org.swtchart.internal.series.LineSeries.

boolean org.swtchart.ILineSeries.isAreaEnabled (  ) 

Gets the state indicating if area chart is enabled.

Returns:
true if area chart is enabled

Implemented in org.swtchart.internal.series.LineSeries.

boolean org.swtchart.ILineSeries.isStepEnabled (  ) 

Gets the state indicating if step chart is enabled.

Returns:
true if step chart is enabled

Implemented in org.swtchart.internal.series.LineSeries.

void org.swtchart.ILineSeries.setAntialias ( int  antialias  ) 

Sets the anti-aliasing value for drawing line.

If number of data points is too large, the series is drawn as a collection of dots rather than lines. In this case, the anti-alias doesn't really make effect, and just causes performance degradation. Therefore, client code may automatically enable/disable the anti-alias for each series depending on the number of data points, or alternatively may let end-user configure it.

Parameters:
antialias the anti-aliasing value which can be SWT.DEFAULT, SWT.ON or SWT.OFF.

Implemented in org.swtchart.internal.series.LineSeries.

void org.swtchart.ILineSeries.setLineColor ( Color  color  ) 
void org.swtchart.ILineSeries.setLineStyle ( LineStyle  style  ) 

Sets line style.

If null is given, default line style will be set.

Parameters:
style line style

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

Here is the caller graph for this function:

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

Sets the width of line connecting data points and also line drawing symbol if applicable (i.e.

PlotSymbolType.CROSS or PlotSymbolType.PLUS). The default width is 1.

Parameters:
width the line width

Implemented in org.swtchart.internal.series.LineSeries.

void org.swtchart.ILineSeries.setSymbolColor ( Color  color  ) 

Sets the symbol color.

If null is given, default color will be set.

Parameters:
color the symbol color

Implemented in org.swtchart.internal.series.LineSeries.

void org.swtchart.ILineSeries.setSymbolColors ( Color[]  colors  ) 

Sets the symbol colors.

Typically, the number of symbol colors is the same as the number of plots. If the number of symbol colors is less than the number of plots, the rest of plots will have the common color which is set with setSymbolColor(Color).

Parameters:
colors the symbol colors. If null or empty array is given, the color which is set with setSymbolColor(Color) will be commonly used for all plots.

Implemented in org.swtchart.internal.series.LineSeries.

void org.swtchart.ILineSeries.setSymbolSize ( int  size  ) 

Sets the symbol size in pixels.

The default size is 4.

Parameters:
size the symbol size

Implemented in org.swtchart.internal.series.LineSeries.

void org.swtchart.ILineSeries.setSymbolType ( PlotSymbolType  type  ) 

Sets the symbol type.

If null is given, default type PlotSymbolType.CIRCLE will be set.

Parameters:
type the symbol type

Referenced by org.swtchart.examples.StepChartExample.createChart(), and org.swtchart.examples.LargeSeriesExample.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