Package com.jogamp.newt.event.awt
Class AWTKeyAdapter
- java.lang.Object
-
- com.jogamp.newt.event.awt.AWTAdapter
-
- com.jogamp.newt.event.awt.AWTKeyAdapter
-
- All Implemented Interfaces:
KeyListener,EventListener
public class AWTKeyAdapter extends AWTAdapter implements KeyListener
AWT: printable: PRESSED (t0), TYPED (t0), RELEASED (t1) non-printable: PRESSED (t0), RELEASED (t1)
-
-
Field Summary
-
Fields inherited from class com.jogamp.newt.event.awt.AWTAdapter
DEBUG_IMPLEMENTATION
-
-
Constructor Summary
Constructors Constructor Description AWTKeyAdapter()AWTKeyAdapter(KeyListener newtListener, NativeSurfaceHolder nsProxy)AWTKeyAdapter(KeyListener newtListener, Window newtProxy)AWTKeyAdapter(Window downstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AWTAdapteraddTo(Component awtComponent)Due to the fact that some NEWTNEWTEventListenerare mapped to more than oneEventListener, this method is for your convenience to use this Adapter as a listener for all types.
E.g.voidkeyPressed(KeyEvent e)voidkeyReleased(KeyEvent e)voidkeyTyped(KeyEvent e)AWTAdapterremoveFrom(Component awtComponent)-
Methods inherited from class com.jogamp.newt.event.awt.AWTAdapter
clear, getNativeSurfaceHolder, getNewtEventListener, getNewtWindow, setConsumeAWTEvent, setDownstream
-
-
-
-
Constructor Detail
-
AWTKeyAdapter
public AWTKeyAdapter(KeyListener newtListener, NativeSurfaceHolder nsProxy)
-
AWTKeyAdapter
public AWTKeyAdapter(KeyListener newtListener, Window newtProxy)
-
AWTKeyAdapter
public AWTKeyAdapter(Window downstream)
-
AWTKeyAdapter
public AWTKeyAdapter()
-
-
Method Detail
-
addTo
public AWTAdapter addTo(Component awtComponent)
Description copied from class:AWTAdapterDue to the fact that some NEWTNEWTEventListenerare mapped to more than oneEventListener, this method is for your convenience to use this Adapter as a listener for all types.
E.g.MouseListeneris mapped toMouseListenerandMouseMotionListener.- Specified by:
addToin classAWTAdapter
-
removeFrom
public AWTAdapter removeFrom(Component awtComponent)
- Specified by:
removeFromin classAWTAdapter- See Also:
AWTAdapter.addTo(java.awt.Component)
-
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressedin interfaceKeyListener
-
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleasedin interfaceKeyListener
-
keyTyped
public void keyTyped(KeyEvent e)
- Specified by:
keyTypedin interfaceKeyListener
-
-