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, getScene
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME
changed, checkSubclass, 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, 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, update
addDisposeListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setData, setData, toString
public 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 Control
public void addListener(int eventType, Listener listener)
addListener
in class Widget
public void addMouseWheelListener(MouseWheelListener listener)
addMouseWheelListener
in class Control
public void removeKeyListener(KeyListener listener)
removeKeyListener
in class Control
public void removeListener(int eventType, Listener listener)
removeListener
in class Widget
public void removeMouseWheelListener(MouseWheelListener listener)
removeMouseWheelListener
in class Control
Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.