ISeries
LineSeries
public interface ILineSeries extends ISeries
Modifier and Type | Interface | Description |
---|---|---|
static class |
ILineSeries.PlotSymbolType |
A plot symbol type.
|
ISeries.SeriesType
Modifier and Type | Method | Description |
---|---|---|
void |
enableArea(boolean enabled) |
Enables the area chart.
|
void |
enableStep(boolean enabled) |
Enables the step chart.
|
int |
getAntialias() |
Gets the anti-aliasing value for drawing line.
|
org.eclipse.swt.graphics.Color |
getLineColor() |
Gets the line color.
|
LineStyle |
getLineStyle() |
Gets line style.
|
int |
getLineWidth() |
Gets the line width.
|
org.eclipse.swt.graphics.Color |
getSymbolColor() |
Gets the symbol color.
|
org.eclipse.swt.graphics.Color[] |
getSymbolColors() |
Gets the symbol colors.
|
int |
getSymbolSize() |
Gets the symbol size in pixels.
|
ILineSeries.PlotSymbolType |
getSymbolType() |
Gets the symbol type.
|
boolean |
isAreaEnabled() |
Gets the state indicating if area chart is enabled.
|
boolean |
isStepEnabled() |
Gets the state indicating if step chart is enabled.
|
void |
setAntialias(int antialias) |
Sets the anti-aliasing value for drawing line.
|
void |
setLineColor(org.eclipse.swt.graphics.Color color) |
Sets line color.
|
void |
setLineStyle(LineStyle style) |
Sets line style.
|
void |
setLineWidth(int width) |
Sets the width of line connecting data points and also line drawing
symbol if applicable (i.e.
|
void |
setSymbolColor(org.eclipse.swt.graphics.Color color) |
Sets the symbol color.
|
void |
setSymbolColors(org.eclipse.swt.graphics.Color[] colors) |
Sets the symbol colors.
|
void |
setSymbolSize(int size) |
Sets the symbol size in pixels.
|
void |
setSymbolType(ILineSeries.PlotSymbolType type) |
Sets the symbol type.
|
addDisposeListener, enableStack, getDescription, getId, getLabel, getPixelCoordinates, getType, getXAxisId, getXDateSeries, getXErrorBar, getXSeries, getYAxisId, getYErrorBar, getYSeries, isStackEnabled, isVisible, isVisibleInLegend, setDescription, setVisible, setVisibleInLegend, setXAxisId, setXDateSeries, setXSeries, setYAxisId, setYSeries
ILineSeries.PlotSymbolType getSymbolType()
void setSymbolType(ILineSeries.PlotSymbolType type)
type
- the symbol typeint getSymbolSize()
void setSymbolSize(int size)
size
- the symbol sizeorg.eclipse.swt.graphics.Color getSymbolColor()
void setSymbolColor(org.eclipse.swt.graphics.Color color)
color
- the symbol colororg.eclipse.swt.graphics.Color[] getSymbolColors()
void setSymbolColors(org.eclipse.swt.graphics.Color[] colors)
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.LineStyle getLineStyle()
void setLineStyle(LineStyle style)
style
- line styleorg.eclipse.swt.graphics.Color getLineColor()
void setLineColor(org.eclipse.swt.graphics.Color color)
color
- the line colorint getLineWidth()
void setLineWidth(int width)
width
- the line widthvoid enableArea(boolean enabled)
enabled
- true if enabling area chartboolean isAreaEnabled()
void enableStep(boolean enabled)
enabled
- true if enabling step chartboolean isStepEnabled()
int getAntialias()
void setAntialias(int antialias)
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.