Line series. More...
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. |
Line series.
Definition at line 14 of file ILineSeries.java.
A plot symbol type.
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.
void org.swtchart.ILineSeries.enableArea | ( | boolean | enabled | ) |
Enables the area chart.
enabled | true if enabling area chart |
Implemented in org.swtchart.internal.series.LineSeries.
Referenced by org.swtchart.examples.AreaChartExample.createChart().
void org.swtchart.ILineSeries.enableStep | ( | boolean | enabled | ) |
Enables the step chart.
enabled | true if enabling step chart |
Implemented in org.swtchart.internal.series.LineSeries.
Referenced by org.swtchart.examples.StepChartExample.createChart().
int org.swtchart.ILineSeries.getAntialias | ( | ) |
Gets the anti-aliasing value for drawing line.
The default value is SWT.DEFAULT<tt>.
SWT.DEFAULT
, SWT.ON
or SWT.OFF
. Implemented in org.swtchart.internal.series.LineSeries.
Color org.swtchart.ILineSeries.getLineColor | ( | ) |
LineStyle org.swtchart.ILineSeries.getLineStyle | ( | ) |
int org.swtchart.ILineSeries.getLineWidth | ( | ) |
Color org.swtchart.ILineSeries.getSymbolColor | ( | ) |
Gets the symbol color.
Implemented in org.swtchart.internal.series.LineSeries.
Color [] org.swtchart.ILineSeries.getSymbolColors | ( | ) |
Gets the symbol colors.
Implemented in org.swtchart.internal.series.LineSeries.
int org.swtchart.ILineSeries.getSymbolSize | ( | ) |
Gets the symbol size in pixels.
Implemented in org.swtchart.internal.series.LineSeries.
PlotSymbolType org.swtchart.ILineSeries.getSymbolType | ( | ) |
Gets the symbol type.
Implemented in org.swtchart.internal.series.LineSeries.
boolean org.swtchart.ILineSeries.isAreaEnabled | ( | ) |
Gets the state indicating 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.
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.
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 | ) |
Sets line color.
If null is given, default color will be set.
color | the line color |
Implemented in org.swtchart.internal.series.LineSeries.
Referenced by org.swtchart.examples.MultipleAxesExample.createChart(), org.swtchart.examples.AreaChartExample.createChart(), org.swtchart.examples.advanced.SymbolBoundsExample.createChart(), org.swtchart.examples.ext.InteractiveChartExample.createPartControl(), test.swtchart.main.TestChart.main(), and org.swtchart.examples.ext.TestChart.main().
void org.swtchart.ILineSeries.setLineStyle | ( | LineStyle | style | ) |
Sets line style.
If null is given, default line style will be set.
style | line style |
Referenced by org.swtchart.examples.ScatterChartExample.createChart().
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.
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.
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)
.
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.
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.
type | the symbol type |
Referenced by org.swtchart.examples.StepChartExample.createChart(), and org.swtchart.examples.LargeSeriesExample.createChart().