public class FXCanvasEx extends FXCanvas
FXCanvas that fixes the following issues:
| Constructor and Description |
|---|
FXCanvasEx(Composite parent,
int style)
Creates a new
FXCanvasEx for the given parent and with the given
style. |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyListener(KeyListener listener) |
void |
addListener(int eventType,
Listener listener) |
void |
addMouseWheelListener(MouseWheelListener listener) |
static FXCanvas |
getFXCanvas(Scene scene)
|
Window |
getStage()
|
void |
removeKeyListener(KeyListener listener) |
void |
removeListener(int eventType,
Listener listener) |
void |
removeMouseWheelListener(MouseWheelListener listener) |
void |
setScene(Scene newScene) |
computeSize, getScenedrawBackground, getCaret, getIME, scroll, setCaret, setFont, setIMEchanged, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBaraddControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTouchListener, addTraverseListener, 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, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTouchListener, removeTraverseListener, 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, updateaddDisposeListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setData, setData, toStringpublic FXCanvasEx(Composite parent, int style)
FXCanvasEx for the given parent and with the given
style.parent - The Composite to use as parent.style - A combination of SWT styles to be applied. Note that the
FXCanvas constructor will set the
SWT.NO_BACKGROUND style before passing it to the
Canvas constructor.public void addKeyListener(KeyListener listener)
addKeyListener in class Controlpublic void addListener(int eventType,
Listener listener)
addListener in class Widgetpublic void addMouseWheelListener(MouseWheelListener listener)
addMouseWheelListener in class Controlpublic void removeKeyListener(KeyListener listener)
removeKeyListener in class Controlpublic void removeListener(int eventType,
Listener listener)
removeListener in class Widgetpublic void removeMouseWheelListener(MouseWheelListener listener)
removeMouseWheelListener in class ControlCopyright (c) 2014, 2016 itemis AG and others. All rights reserved.