org.swtchart
Interface IBarSeries

All Superinterfaces:
ISeries
All Known Implementing Classes:
BarSeries

public interface IBarSeries
extends ISeries

Bar series.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.swtchart.ISeries
ISeries.SeriesType
 
Method Summary
 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.
 
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
 

Method Detail

getBarPadding

int getBarPadding()
Gets the bar padding in percentage.

Returns:
the bar padding in percentage

setBarPadding

void setBarPadding(int padding)
Sets the bar padding in percentage.

Parameters:
padding - the bar padding in percentage

getBarColor

Color getBarColor()
Gets the bar color.

Returns:
the bar color

setBarColor

void setBarColor(Color color)
Sets the bar color. If null is given, default color will be set.

Parameters:
color - the bar color

getBounds

Rectangle[] getBounds()
Gets the array of bar rectangles. This method is typically used for mouse listener to check whether mouse cursor is on bar.

The 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.

Returns:
the array of bar rectangles in pixels.