|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
com.jogamp.newt.swt.NewtCanvasSWT
public class NewtCanvasSWT
SWT Canvas
containing a NEWT Window
using native parenting.
Implementation allows use of custom GLCapabilities
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.media.nativewindow.WindowClosingProtocol |
---|
WindowClosingProtocol.WindowClosingMode |
Field Summary |
---|
Fields inherited from class org.eclipse.swt.widgets.Composite |
---|
embeddedHandle |
Fields inherited from class org.eclipse.swt.widgets.Widget |
---|
handle |
Constructor Summary | |
---|---|
NewtCanvasSWT(org.eclipse.swt.widgets.Composite parent,
int style,
Window child)
Instantiates a NewtCanvas with a NEWT child. |
Method Summary | |
---|---|
static NewtCanvasSWT |
create(org.eclipse.swt.widgets.Composite parent,
int style,
Window child)
Creates an instance using NewtCanvasSWT(Composite, int, Window)
on the SWT thread. |
void |
dispose()
Destroys this resource: Make the NEWT Child invisible Disconnects the NEWT Child from this Canvas NativeWindow, reparent to NULL Issues destroy() on the NEWT Child
Remove reference to the NEWT Child
|
boolean |
forceFocus()
|
WindowClosingProtocol.WindowClosingMode |
getDefaultCloseOperation()
|
NativeWindow |
getNativeWindow()
|
Window |
getNEWTChild()
|
WindowClosingProtocol.WindowClosingMode |
setDefaultCloseOperation(WindowClosingProtocol.WindowClosingMode op)
|
Window |
setNEWTChild(Window newChild)
Sets a new NEWT child, provoking reparenting. |
boolean |
setParent(org.eclipse.swt.widgets.Composite parent)
|
void |
update()
|
Methods inherited from class org.eclipse.swt.widgets.Canvas |
---|
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getBorderWidth, getHorizontalBar, getScrollbarsMode, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Control |
---|
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, getAccessible, getBackground, getBackgroundImage, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, 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, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, reskin, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NewtCanvasSWT(org.eclipse.swt.widgets.Composite parent, int style, Window child)
Note: The NEWT child Display
's EDTUtil
is being set to an SWT conform implementation
via Display.setEDTUtil(EDTUtil)
.
parent
- the SWT compositestyle
- additional styles to SWT#NO_BACKGROUNDchild
- optional preassigned #Window
, maybe nullMethod Detail |
---|
public static NewtCanvasSWT create(org.eclipse.swt.widgets.Composite parent, int style, Window child)
NewtCanvasSWT(Composite, int, Window)
on the SWT thread.
Note: The NEWT child Display
's EDTUtil
is being set to an SWT conform implementation
via Display.setEDTUtil(EDTUtil)
.
parent
- the SWT compositestyle
- additional styles to SWT#NO_BACKGROUNDchild
- optional preassigned #Window
, maybe null
public void update()
update
in class org.eclipse.swt.widgets.Control
public void dispose()
destroy()
on the NEWT Child
dispose
in class org.eclipse.swt.widgets.Widget
Window.destroy()
public NativeWindow getNativeWindow()
public WindowClosingProtocol.WindowClosingMode getDefaultCloseOperation()
getDefaultCloseOperation
in interface WindowClosingProtocol
WindowClosingProtocol.WindowClosingMode.DISPOSE_ON_CLOSE
,
WindowClosingProtocol.WindowClosingMode.DO_NOTHING_ON_CLOSE
public WindowClosingProtocol.WindowClosingMode setDefaultCloseOperation(WindowClosingProtocol.WindowClosingMode op)
setDefaultCloseOperation
in interface WindowClosingProtocol
op
- the new close operation value
WindowClosingProtocol.WindowClosingMode.DISPOSE_ON_CLOSE
,
WindowClosingProtocol.WindowClosingMode.DO_NOTHING_ON_CLOSE
public Window setNEWTChild(Window newChild)
A previously detached newChild
will be released to top-level status
and made invisible.
Note: When switching NEWT child's, detaching the previous first via setNEWTChild(null)
produced much cleaner visual results.
Note: The NEWT child Display
's EDTUtil
is being set to an SWT conform implementation
via Display.setEDTUtil(EDTUtil)
.
public Window getNEWTChild()
public boolean setParent(org.eclipse.swt.widgets.Composite parent)
setParent
in class org.eclipse.swt.widgets.Control
public boolean forceFocus()
forceFocus
in class org.eclipse.swt.widgets.Control
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |