public interface ISeries
Modifier and Type | Interface and Description |
---|---|
static class |
ISeries.SeriesType
A Series type.
|
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(IDisposeListener listener)
Adds the dispose listener.
|
void |
enableStack(boolean enabled)
Enables the stack series.
|
String |
getDescription()
Gets the series description
|
String |
getId()
Gets the series id.
|
ISeriesLabel |
getLabel()
Gets the series label.
|
org.eclipse.swt.graphics.Point |
getPixelCoordinates(int index)
Gets the pixel coordinates corresponding to the given series index.
|
ISeries.SeriesType |
getType()
Gets the series type.
|
int |
getXAxisId()
Gets the X axis id.
|
Date[] |
getXDateSeries()
Gets the X date series.
|
IErrorBar |
getXErrorBar()
Gets the X error bar.
|
double[] |
getXSeries()
Gets the X series.
|
int |
getYAxisId()
Gets the Y axis id.
|
IErrorBar |
getYErrorBar()
Gets the Y error bar.
|
double[] |
getYSeries()
Gets the Y series.
|
boolean |
isStackEnabled()
Gets the state indicating if stack is enabled.
|
boolean |
isVisible()
Gets the visibility state.
|
boolean |
isVisibleInLegend()
Gets the visibility state in legend.
|
void |
setDescription(String description)
Sets the series description.
|
void |
setVisible(boolean visible)
Sets the visibility state.
|
void |
setVisibleInLegend(boolean visible)
Sets the visibility state in legend.
|
void |
setXAxisId(int id)
Sets the X axis id.
|
void |
setXDateSeries(Date[] series)
Sets the X date series.
|
void |
setXSeries(double[] series)
Sets the X series.
|
void |
setYAxisId(int id)
Sets the Y axis id.
|
void |
setYSeries(double[] series)
Sets the Y series.
|
String getId()
void setVisible(boolean visible)
visible
- the visibility stateboolean isVisible()
ISeries.SeriesType getType()
void enableStack(boolean enabled)
enabled
- true if enabling stack seriesIllegalStateException
- if series contains negative values.boolean isStackEnabled()
void setXSeries(double[] series)
series
- the X seriesvoid setYSeries(double[] series)
series
- the Y seriesdouble[] getXSeries()
double[] getYSeries()
void setXDateSeries(Date[] series)
X series and X date series are exclusive. X date series will be cleared by setting X series, and vice versa.
series
- the X date seriesDate[] getXDateSeries()
int getXAxisId()
void setXAxisId(int id)
id
- the X axis id.int getYAxisId()
void setYAxisId(int id)
id
- the Y axis id.IErrorBar getXErrorBar()
IErrorBar getYErrorBar()
ISeriesLabel getLabel()
void setVisibleInLegend(boolean visible)
visible
- the visibility state in legendboolean isVisibleInLegend()
void setDescription(String description)
For example, you may store the description explaining what this series is, and display it on tool tip with mouse hover on the series.
By default, legend displays the description, when it is set.
description
- the series description, or null to clear itString getDescription()
org.eclipse.swt.graphics.Point getPixelCoordinates(int index)
index
- the series indexvoid addDisposeListener(IDisposeListener listener)
listener
- the dispose listenerCopyright © 2014. All Rights Reserved.