org.swtchart.IBarSeries Interface Reference

Bar series. More...

Inheritance diagram for org.swtchart.IBarSeries:
Inheritance graph
[legend]
Collaboration diagram for org.swtchart.IBarSeries:
Collaboration graph
[legend]

List of all members.

Public Types

enum  BarWidthStyle { STRETCHED, FIXED }
 

Bar width style.

More...

Public Member Functions

BarWidthStyle getBarWidthStyle (BarWidthStyle style)
 Gets the bar width style.
void setBarWidthStyle (BarWidthStyle style)
 Sets the bar width style.
int getBarWidth ()
 Gets the bar width in pixels.
void setBarWidth (int width)
 Sets the bar width in pixels.
int getBarPadding ()
 Gets the bar padding in percentage.
void setBarPadding (int padding)
 Sets the bar padding in percentage.
Color getBarColor ()
 Gets the bar color.
void setBarColor (Color color)
 Sets the bar color.
Rectangle[] getBounds ()
 Gets the array of bar rectangles.

Detailed Description

Bar series.

Definition at line 15 of file IBarSeries.java.


Member Enumeration Documentation

Bar width style.

Enumerator:
STRETCHED 

the style stretching the bar width depending on interval of bars.

FIXED 

the style fixing the bar width regardless of interval of bars.

Definition at line 20 of file IBarSeries.java.


Member Function Documentation

Color org.swtchart.IBarSeries.getBarColor (  ) 

Gets the bar color.

Returns:
the bar color

Implemented in org.swtchart.internal.series.BarSeries.

int org.swtchart.IBarSeries.getBarPadding (  ) 

Gets the bar padding in percentage.

Returns:
the bar padding in percentage

Implemented in org.swtchart.internal.series.BarSeries.

int org.swtchart.IBarSeries.getBarWidth (  ) 

Gets the bar width in pixels.

Returns:
the bar width in pixels

Implemented in org.swtchart.internal.series.BarSeries.

BarWidthStyle org.swtchart.IBarSeries.getBarWidthStyle ( BarWidthStyle  style  ) 

Gets the bar width style.

Parameters:
style the bar width style
Returns:
the bar width style
Rectangle [] org.swtchart.IBarSeries.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.

Implemented in org.swtchart.internal.series.BarSeries.

void org.swtchart.IBarSeries.setBarColor ( Color  color  ) 
void org.swtchart.IBarSeries.setBarPadding ( int  padding  ) 

Sets the bar padding in percentage.

The specified padding is active only when the bar width style is set to BarWidthStyle.STRETCHED.

Parameters:
padding the bar padding in percentage

Implemented in org.swtchart.internal.series.BarSeries.

void org.swtchart.IBarSeries.setBarWidth ( int  width  ) 

Sets the bar width in pixels.

The specified bar width is active only when the bar width style is set to BarWidthStyle.FIXED.

Parameters:
width the bar width in pixels

Implemented in org.swtchart.internal.series.BarSeries.

void org.swtchart.IBarSeries.setBarWidthStyle ( BarWidthStyle  style  ) 

Sets the bar width style.

The default is BarWidthStyle.STRETCHED

Parameters:
style the bar width style

The documentation for this interface was generated from the following file:

Generated on 26 Oct 2015 for SWTChart.org by  doxygen 1.6.1