Class PlotArea

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

public class PlotArea extends Composite implements IPlotArea
Plot area to draw series and grids.
  • Field Details

    • chart

      protected Chart chart
      the chart
    • seriesSet

      protected SeriesSet seriesSet
      the set of plots
  • Constructor Details

    • PlotArea

      public PlotArea(Chart chart, int style)
      Constructor.
      Parameters:
      chart - the chart
      style - the style
  • Method Details

    • 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)
    • dispose

      public void dispose()