public class PlotArea extends org.eclipse.swt.widgets.Composite implements org.eclipse.swt.events.PaintListener, IPlotArea
Modifier and Type | Field and Description |
---|---|
protected Chart |
chart
the chart
|
protected SeriesSet |
seriesSet
the set of plots
|
Constructor and Description |
---|
PlotArea(Chart chart,
int style)
Constructor.
|
Modifier and Type | Method and 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 |
redraw() |
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) |
void |
update() |
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getBorderWidth, getHorizontalBar, getScrollbarsMode, getVerticalBar
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, 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
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 update()
update
in class org.eclipse.swt.widgets.Control
public void redraw()
redraw
in class org.eclipse.swt.widgets.Control
public void dispose()
dispose
in class org.eclipse.swt.widgets.Widget