|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.swtchart.internal.series.Series
org.swtchart.internal.series.BarSeries
public class BarSeries
Bar series.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.swtchart.ISeries |
|---|
ISeries.SeriesType |
| Field Summary | |
|---|---|
static int |
INITIAL_PADDING
the initial bar padding in percentage |
| Fields inherited from class org.swtchart.internal.series.Series |
|---|
chart, compressor, DEFAULT_SERIES_TYPE, id, isXMonotoneIncreasing, maxX, maxY, minX, minY, seriesLabel, stackEnabled, stackSeries, type, visible, xAxisId, xErrorBar, xSeries, yAxisId, yErrorBar, ySeries |
| Constructor Summary | |
|---|---|
protected |
BarSeries(Chart chart,
java.lang.String id)
Constructor. |
| Method Summary | |
|---|---|
protected void |
draw(GC gc,
int width,
int height,
Axis xAxis,
Axis yAxis)
Draws series. |
Range |
getAdjustedRange(Axis axis,
int length)
Gets the adjusted range to show all series in screen. |
Color |
getBarColor()
Gets the bar color. |
int |
getBarPadding()
Gets the bar padding in percentage. |
Rectangle[] |
getBounds()
Gets the array of bar rectangles. |
void |
setBarColor(Color color)
Sets the bar color. |
void |
setBarPadding(int padding)
Sets the bar padding in percentage. |
protected void |
setCompressor()
Sets the compressor. |
protected void |
setRiserIndex(int riserIndex)
Sets the index of riser in a category. |
| Methods inherited from class org.swtchart.internal.series.Series |
|---|
addDisposeListener, dispose, draw, enableStack, getCompressor, getId, getLabel, getPixelCoordinates, getRangeWithMargin, getType, getXAxisId, getXDateSeries, getXErrorBar, getXRange, getXSeries, getYAxisId, getYErrorBar, getYRange, getYSeries, isDateSeries, isStackEnabled, isValidStackSeries, isVisible, isVisibleInLegend, setStackSeries, setVisible, setVisibleInLegend, setXAxisId, setXDateSeries, setXSeries, setYAxisId, setYSeries |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.swtchart.ISeries |
|---|
addDisposeListener, enableStack, getId, getLabel, getPixelCoordinates, getType, getXAxisId, getXDateSeries, getXErrorBar, getXSeries, getYAxisId, getYErrorBar, getYSeries, isStackEnabled, isVisible, isVisibleInLegend, setVisible, setVisibleInLegend, setXAxisId, setXDateSeries, setXSeries, setYAxisId, setYSeries |
| Field Detail |
|---|
public static final int INITIAL_PADDING
| Constructor Detail |
|---|
protected BarSeries(Chart chart,
java.lang.String id)
chart - the chartid - the series id| Method Detail |
|---|
public int getBarPadding()
IBarSeries
getBarPadding in interface IBarSeriespublic void setBarPadding(int padding)
IBarSeries
setBarPadding in interface IBarSeriespadding - the bar padding in percentagepublic Color getBarColor()
IBarSeries
getBarColor in interface IBarSeriespublic void setBarColor(Color color)
IBarSeries
setBarColor in interface IBarSeriescolor - the bar colorpublic Rectangle[] getBounds()
IBarSeriesThe returned array has the same size as data points. Depending on X axis range, some bars can be out of screen. In this case, the rectangles for invisible bars will be null in the returned array.
getBounds in interface IBarSeriesprotected void setRiserIndex(int riserIndex)
riserIndex - the index of riser in a categoryprotected void setCompressor()
Series
setCompressor in class Series
public Range getAdjustedRange(Axis axis,
int length)
Series
getAdjustedRange in class Seriesaxis - the axislength - the axis length in pixels
protected void draw(GC gc,
int width,
int height,
Axis xAxis,
Axis yAxis)
Series
draw in class Seriesgc - the graphics contextwidth - the width to draw seriesheight - the height to draw seriesxAxis - the x axisyAxis - the y axis
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||