Package com.jogamp.newt.opengl.util
Class NEWTDemoListener
java.lang.Object
com.jogamp.newt.event.WindowAdapter
com.jogamp.newt.opengl.util.NEWTDemoListener
- All Implemented Interfaces:
KeyListener,MouseListener,NEWTEventListener,WindowListener,EventListener
-
Constructor Summary
ConstructorsConstructorDescriptionNEWTDemoListener(GLWindow glWin) NEWTDemoListener(GLWindow glWin, Display.PointerIcon[] pointerIcons) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic Display.PointerIcon[]createPointerIcons(Display disp) voiddoQuit()voidvoidvoidvoidvoidOnly generated forMouseEvent.PointerType.MousevoidOnly generated forMouseEvent.PointerType.MousevoidvoidvoidvoidTraditional event name originally produced by amousepointer type.voidquitAdapterEnable(boolean v) voidsetConfinedFixedCenter(boolean v) voidsetTitle()static voidbooleanvoidWindow destruction has been requested.Methods inherited from class com.jogamp.newt.event.WindowAdapter
windowDestroyed, windowGainedFocus, windowLostFocus, windowMoved, windowRepaint, windowResized
-
Constructor Details
-
NEWTDemoListener
-
NEWTDemoListener
-
-
Method Details
-
keyPressed
Description copied from interface:KeyListener- Specified by:
keyPressedin interfaceKeyListener
-
keyReleased
Description copied from interface:KeyListenerA key has beenreleased, excludingauto-repeatmodifierkeys. SeeKeyEvent.To simulated the removed
keyTyped(KeyEvent e)semantics, simply apply the following constraints upfront and bail out if not matched, i.e.:if( !e.isPrintableKey() || e.isAutoRepeat() ) { return; }- Specified by:
keyReleasedin interfaceKeyListener
-
setConfinedFixedCenter
public void setConfinedFixedCenter(boolean v) -
mouseMoved
- Specified by:
mouseMovedin interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseEntered
Description copied from interface:MouseListenerOnly generated forMouseEvent.PointerType.Mouse- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
Description copied from interface:MouseListenerOnly generated forMouseEvent.PointerType.Mouse- Specified by:
mouseExitedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseWheelMoved
Description copied from interface:MouseListenerTraditional event name originally produced by amousepointer type.Triggered for any rotational pointer events, see
MouseEvent.getRotation()andMouseEvent.getRotationScale().- Specified by:
mouseWheelMovedin interfaceMouseListener
-
quitAdapterEnable
public void quitAdapterEnable(boolean v) -
clearQuitAdapter
public void clearQuitAdapter() -
shouldQuit
public boolean shouldQuit() -
doQuit
public void doQuit() -
windowDestroyNotify
Description copied from interface:WindowListenerWindow destruction has been requested.Depending on the
In case the window will be destroyed (see above), release of resources is recommended.default close operation, the window maybe destroyed or not.- Specified by:
windowDestroyNotifyin interfaceWindowListener- Overrides:
windowDestroyNotifyin classWindowAdapter
-
setTitle
public void setTitle() -
setTitle
-
createPointerIcons
-