public class FXCanvasEx
extends javafx.embed.swt.FXCanvas
FXCanvas
that fixes the following issues:
Constructor and Description |
---|
FXCanvasEx(org.eclipse.swt.widgets.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(org.eclipse.swt.events.KeyListener listener) |
void |
addListener(int eventType,
org.eclipse.swt.widgets.Listener listener) |
void |
addMouseWheelListener(org.eclipse.swt.events.MouseWheelListener listener) |
static javafx.embed.swt.FXCanvas |
getFXCanvas(javafx.scene.Scene scene)
Returns the
FXCanvas which contains the given Scene . |
javafx.stage.Window |
getStage()
Returns the stage
Window hold by this FXCanvas . |
void |
removeKeyListener(org.eclipse.swt.events.KeyListener listener) |
void |
removeListener(int eventType,
org.eclipse.swt.widgets.Listener listener) |
void |
removeMouseWheelListener(org.eclipse.swt.events.MouseWheelListener listener) |
void |
setScene(javafx.scene.Scene newScene) |
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, 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
addDisposeListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setData, setData, toString
public FXCanvasEx(org.eclipse.swt.widgets.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 static javafx.embed.swt.FXCanvas getFXCanvas(javafx.scene.Scene scene)
FXCanvas
which contains the given Scene
.
Therefore, it is only valid to call this method for a Scene
which
is embedded into an SWT application via FXCanvas
.scene
- The Scene
for which to determine the surrounding
FXCanvas
.FXCanvas
which contains the given Scene
.public void addKeyListener(org.eclipse.swt.events.KeyListener listener)
addKeyListener
in class org.eclipse.swt.widgets.Control
public void addListener(int eventType, org.eclipse.swt.widgets.Listener listener)
addListener
in class org.eclipse.swt.widgets.Widget
public void addMouseWheelListener(org.eclipse.swt.events.MouseWheelListener listener)
addMouseWheelListener
in class org.eclipse.swt.widgets.Control
public javafx.stage.Window getStage()
Window
hold by this FXCanvas
.Window
.public void removeKeyListener(org.eclipse.swt.events.KeyListener listener)
removeKeyListener
in class org.eclipse.swt.widgets.Control
public void removeListener(int eventType, org.eclipse.swt.widgets.Listener listener)
removeListener
in class org.eclipse.swt.widgets.Widget
public void removeMouseWheelListener(org.eclipse.swt.events.MouseWheelListener listener)
removeMouseWheelListener
in class org.eclipse.swt.widgets.Control
public void setScene(javafx.scene.Scene newScene)
setScene
in class javafx.embed.swt.FXCanvas
Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.