java.util.EventListener
, org.eclipse.swt.events.PaintListener
, org.eclipse.swt.graphics.Drawable
, org.eclipse.swt.internal.SWTEventListener
, IPlotArea
public class PlotArea extends org.eclipse.swt.widgets.Composite implements org.eclipse.swt.events.PaintListener, IPlotArea
Modifier and Type | Field | Description |
---|---|---|
protected Chart |
chart |
the chart
|
protected SeriesSet |
seriesSet |
the set of plots
|
Constructor | Description |
---|---|
PlotArea(Chart chart,
int style) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addCustomPaintListener(ICustomPaintListener listener) |
Adds the custom paint listener.
|
void |
dispose() |
|
ISeriesSet |
getSeriesSet() |
Gets the set of series.
|
void |
paintControl(org.eclipse.swt.events.PaintEvent e) |
|
void |
removeCustomPaintListener(ICustomPaintListener listener) |
Removes the custom paint listener
|
void |
setBackground(org.eclipse.swt.graphics.Color color) |
|
void |
setBounds(int x,
int y,
int width,
int height) |
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackgroundImage, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected Chart chart
protected SeriesSet seriesSet
public PlotArea(Chart chart, int style)
chart
- the chartstyle
- the stylepublic ISeriesSet getSeriesSet()
public void setBounds(int x, int y, int width, int height)
setBounds
in class org.eclipse.swt.widgets.Control
public void setBackground(org.eclipse.swt.graphics.Color color)
setBackground
in class org.eclipse.swt.widgets.Control
public void addCustomPaintListener(ICustomPaintListener listener)
IPlotArea
addCustomPaintListener
in interface IPlotArea
listener
- the custom paint listenerpublic void removeCustomPaintListener(ICustomPaintListener listener)
IPlotArea
removeCustomPaintListener
in interface IPlotArea
listener
- the custom paint listenerpublic void paintControl(org.eclipse.swt.events.PaintEvent e)
paintControl
in interface org.eclipse.swt.events.PaintListener
public void dispose()
dispose
in class org.eclipse.swt.widgets.Widget