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 TypeMethodDescriptionvoid
static Display.PointerIcon[]
createPointerIcons
(Display disp) void
doQuit()
void
void
void
void
void
Only generated forMouseEvent.PointerType.Mouse
void
Only generated forMouseEvent.PointerType.Mouse
void
void
void
void
Traditional event name originally produced by amouse
pointer type.void
quitAdapterEnable
(boolean v) void
setConfinedFixedCenter
(boolean v) void
setTitle()
static void
boolean
void
Window 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:
keyPressed
in interfaceKeyListener
-
keyReleased
Description copied from interface:KeyListener
A key has beenreleased
, excludingauto-repeat
modifier
keys. 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:
keyReleased
in interfaceKeyListener
-
setConfinedFixedCenter
public void setConfinedFixedCenter(boolean v) -
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
Description copied from interface:MouseListener
Only generated forMouseEvent.PointerType.Mouse
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
Description copied from interface:MouseListener
Only generated forMouseEvent.PointerType.Mouse
- Specified by:
mouseExited
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseWheelMoved
Description copied from interface:MouseListener
Traditional event name originally produced by amouse
pointer type.Triggered for any rotational pointer events, see
MouseEvent.getRotation()
andMouseEvent.getRotationScale()
.- Specified by:
mouseWheelMoved
in interfaceMouseListener
-
quitAdapterEnable
public void quitAdapterEnable(boolean v) -
clearQuitAdapter
public void clearQuitAdapter() -
shouldQuit
public boolean shouldQuit() -
doQuit
public void doQuit() -
windowDestroyNotify
Description copied from interface:WindowListener
Window 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:
windowDestroyNotify
in interfaceWindowListener
- Overrides:
windowDestroyNotify
in classWindowAdapter
-
setTitle
public void setTitle() -
setTitle
-
createPointerIcons
-