org.swtchart.internal
Class PlotArea

java.lang.Object
  extended by Composite
      extended by org.swtchart.internal.PlotArea
All Implemented Interfaces:
IPlotArea

public class PlotArea
extends Composite
implements IPlotArea

Plot area to draw series and grids.


Field Summary
protected  Chart chart
          the chart
protected  SeriesSet seriesSet
          the set of plots
 
Constructor Summary
PlotArea(Chart chart, int style)
          Constructor.
 
Method Summary
 void addCustomPaintListener(ICustomPaintListener listener)
          Adds the custom paint listener.
 void dispose()
           
 ISeriesSet getSeriesSet()
          Gets the set of series.
 void paintControl(PaintEvent e)
           
 void redraw()
           
 void removeCustomPaintListener(ICustomPaintListener listener)
          Removes the custom paint listener
 void setBackground(Color color)
           
 void setBounds(int x, int y, int width, int height)
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chart

protected Chart chart
the chart


seriesSet

protected SeriesSet seriesSet
the set of plots

Constructor Detail

PlotArea

public PlotArea(Chart chart,
                int style)
Constructor.

Parameters:
chart - the chart
style - the style
Method Detail

getSeriesSet

public ISeriesSet getSeriesSet()
Gets the set of series.

Returns:
the set of series

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)

setBackground

public void setBackground(Color color)

addCustomPaintListener

public void addCustomPaintListener(ICustomPaintListener listener)
Description copied from interface: IPlotArea
Adds the custom paint listener.

Specified by:
addCustomPaintListener in interface IPlotArea
Parameters:
listener - the custom paint listener

removeCustomPaintListener

public void removeCustomPaintListener(ICustomPaintListener listener)
Description copied from interface: IPlotArea
Removes the custom paint listener

Specified by:
removeCustomPaintListener in interface IPlotArea
Parameters:
listener - the custom paint listener

paintControl

public void paintControl(PaintEvent e)

update

public void update()

redraw

public void redraw()

dispose

public void dispose()