Top Description Fields Constructors Methods
com.jogamp.newt.event.awt

public Class AWTKeyAdapter

extends AWTAdapter
implements KeyListener
Class Inheritance
All Implemented Interfaces
java.awt.event.KeyListener, java.util.EventListener
Imports
com.jogamp.nativewindow.NativeSurfaceHolder, jogamp.newt.awt.event.AWTNewtEventFactory

AWT: printable: PRESSED (t0), TYPED (t0), RELEASED (t1) non-printable: PRESSED (t0), RELEASED (t1)

Field Summary

Inherited from com.jogamp.newt.event.awt.AWTAdapter:
consumeAWTEventDEBUG_IMPLEMENTATIONisSetupnewtListenernewtWindownsHolder

Constructor Summary

AccessConstructor and Description
public
AWTKeyAdapter(final KeyListener newtListener, final NativeSurfaceHolder nsProxy)

public
AWTKeyAdapter(final KeyListener newtListener, final Window newtProxy)

public
AWTKeyAdapter(final Window downstream)

public

Method Summary

Modifier and TypeMethod and Description
public synchronized AWTAdapter
addTo(final Component awtComponent)

Implements abstract com.jogamp.newt.event.awt.AWTAdapter.addTo.

Due to the fact that some NEWT com.jogamp.newt.event.NEWTEventListener are mapped to more than one java.util.EventListener, this method is for your convenience to use this Adapter as a listener for all types.
public synchronized void
keyPressed(final KeyEvent
the event to be processed
e
)

Implements java.awt.event.KeyListener.keyPressed.

Invoked when a key has been pressed.
public synchronized void
keyReleased(final KeyEvent
the event to be processed
e
)

Implements java.awt.event.KeyListener.keyReleased.

Invoked when a key has been released.
public synchronized void
keyTyped(final KeyEvent
the event to be processed
e
)

Implements java.awt.event.KeyListener.keyTyped.

Invoked when a key has been typed.
public synchronized AWTAdapter
Inherited from com.jogamp.newt.event.awt.AWTAdapter:
cleargetNativeSurfaceHoldergetNewtEventListenergetNewtWindowprocessEventsetConsumeAWTEventsetDownstream

Constructor Detail

AWTKeyAdapterback to summary
public AWTKeyAdapter(final KeyListener newtListener, final NativeSurfaceHolder nsProxy)
AWTKeyAdapterback to summary
public AWTKeyAdapter(final KeyListener newtListener, final Window newtProxy)
AWTKeyAdapterback to summary
public AWTKeyAdapter(final Window downstream)
AWTKeyAdapterback to summary
public AWTKeyAdapter()

Method Detail

addToback to summary
public synchronized AWTAdapter addTo(final Component awtComponent)

Implements abstract com.jogamp.newt.event.awt.AWTAdapter.addTo.

Doc from com.jogamp.newt.event.awt.AWTAdapter.addTo.

Due to the fact that some NEWT com.jogamp.newt.event.NEWTEventListener are mapped to more than one java.util.EventListener, this method is for your convenience to use this Adapter as a listener for all types.
E.g. com.jogamp.newt.event.MouseListener is mapped to java.awt.event.MouseListener and java.awt.event.MouseMotionListener.

Annotations
@Override
keyPressedback to summary
public synchronized void keyPressed(final KeyEvent e)

Implements java.awt.event.KeyListener.keyPressed.

Doc from java.awt.event.KeyListener.keyPressed.

Invoked when a key has been pressed. See the class description for KeyEvent for a definition of a key pressed event.

Parameters
e:KeyEvent

the event to be processed

Annotations
@Override
keyReleasedback to summary
public synchronized void keyReleased(final KeyEvent e)

Implements java.awt.event.KeyListener.keyReleased.

Doc from java.awt.event.KeyListener.keyReleased.

Invoked when a key has been released. See the class description for KeyEvent for a definition of a key released event.

Parameters
e:KeyEvent

the event to be processed

Annotations
@Override
keyTypedback to summary
public synchronized void keyTyped(final KeyEvent e)

Implements java.awt.event.KeyListener.keyTyped.

Doc from java.awt.event.KeyListener.keyTyped.

Invoked when a key has been typed. See the class description for KeyEvent for a definition of a key typed event.

Parameters
e:KeyEvent

the event to be processed

Annotations
@Override
removeFromback to summary
public synchronized AWTAdapter removeFrom(final Component awtComponent)

Implements abstract com.jogamp.newt.event.awt.AWTAdapter.removeFrom.

Annotations
@Override