|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Canvas
com.jogamp.newt.awt.NewtCanvasAWT
public class NewtCanvasAWT
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary | |
---|---|
static boolean |
DEBUG
|
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.media.nativewindow.WindowClosingProtocol |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
NewtCanvasAWT()
Instantiates a NewtCanvas without a NEWT child. |
|
NewtCanvasAWT(GraphicsConfiguration gc)
Instantiates a NewtCanvas without a NEWT child. |
|
NewtCanvasAWT(GraphicsConfiguration gc,
Window child)
Instantiates a NewtCanvas with a NEWT child. |
|
NewtCanvasAWT(Window child)
Instantiates a NewtCanvas with a NEWT child. |
Method Summary | |
---|---|
void |
addNotify()
|
void |
destroy()
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
Remove this Canvas from it's parent.
|
int |
getDefaultCloseOperation()
|
NativeWindow |
getNativeWindow()
|
Window |
getNEWTChild()
|
boolean |
isApplet()
Returns true if the AWT component is parented to an Applet ,
otherwise false. |
boolean |
isOffscreenLayerSurface()
Returns true if the underlying JAWT uses offscreen layering, otherwise false. |
void |
paint(Graphics g)
|
void |
removeNotify()
|
void |
requestFocus()
|
boolean |
requestFocus(boolean temporary)
|
boolean |
requestFocusInWindow()
|
boolean |
requestFocusInWindow(boolean temporary)
|
int |
setDefaultCloseOperation(int op)
|
void |
setShallUseOffscreenLayer(boolean v)
Request an JAWT offscreen layer if supported it. |
void |
update(Graphics g)
|
Methods inherited from class java.awt.Canvas |
---|
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean DEBUG
Constructor Detail |
---|
public NewtCanvasAWT()
public NewtCanvasAWT(GraphicsConfiguration gc)
public NewtCanvasAWT(Window child)
public NewtCanvasAWT(GraphicsConfiguration gc, Window child)
Method Detail |
---|
public void setShallUseOffscreenLayer(boolean v)
addNotify()
is issued,
ie. before adding the component to the AWT tree and make it visible.
isOffscreenLayerSurface()
public boolean isOffscreenLayerSurface()
addNotify()
is issued,
ie. before adding the component to the AWT tree and make it visible.
setShallUseOffscreenLayer(boolean)
public boolean isApplet()
Applet
,
otherwise false. This information is valid only after addNotify()
is issued,
ie. before adding the component to the AWT tree and make it visible.
public Window getNEWTChild()
public NativeWindow getNativeWindow()
removeNotify()
has been called,
or addNotify()
hasn't been called yet.public int getDefaultCloseOperation()
getDefaultCloseOperation
in interface WindowClosingProtocol
WindowClosingProtocol.DISPOSE_ON_CLOSE
,
WindowClosingProtocol.DO_NOTHING_ON_CLOSE
public int setDefaultCloseOperation(int op)
setDefaultCloseOperation
in interface WindowClosingProtocol
op
- the new close operation value
WindowClosingProtocol.DISPOSE_ON_CLOSE
,
WindowClosingProtocol.DO_NOTHING_ON_CLOSE
public void addNotify()
addNotify
in class Canvas
public void removeNotify()
removeNotify
in class Component
public final void destroy()
destroy()
on the NEWT Child
Window.destroy()
public void paint(Graphics g)
paint
in class Canvas
public void update(Graphics g)
update
in class Canvas
public void requestFocus()
requestFocus
in class Component
public boolean requestFocus(boolean temporary)
requestFocus
in class Component
public boolean requestFocusInWindow()
requestFocusInWindow
in class Component
public boolean requestFocusInWindow(boolean temporary)
requestFocusInWindow
in class Component
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |