public class ChartControl
extends org.eclipse.swt.widgets.Canvas
Chart
and hooking it to the SWT framework.Constructor and Description |
---|
ChartControl(org.eclipse.swt.widgets.Composite parent,
int style)
Constructs a new instance of this class given its parentand a style value
describing its behavior and appearance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
Chart |
getModel()
Returns the
Chart that gets displayed by this control. |
ChartControl |
model(Chart newModel)
Sets the
Chart that gets displayed by this control. |
void |
setModel(Chart model)
Sets the
Chart that gets displayed by this control. |
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME
changed, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, 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, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
public ChartControl(org.eclipse.swt.widgets.Composite parent, int style)
parent
- a composite control which will be the parent of the new instance
(cannot be null)style
- the style of control to constructpublic Chart getModel()
Chart
that gets displayed by this control.public ChartControl model(Chart newModel)
Chart
that gets displayed by this control.newModel
- the chartpublic void setModel(Chart model)
Chart
that gets displayed by this control.model
- the chartpublic void dispose()
dispose
in class org.eclipse.swt.widgets.Widget
Copyright © 2020. All rights reserved.