JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.graph.ui.Shape.ForwardKeyListener Class Reference

Forward KeyListener, to be attached to a key event source forwarded to the receiver set at constructor. More...

Inheritance diagram for com.jogamp.graph.ui.Shape.ForwardKeyListener:
Collaboration diagram for com.jogamp.graph.ui.Shape.ForwardKeyListener:

Public Member Functions

 ForwardKeyListener (final Shape receiver)
 ForwardKeyListener Constructor More...
 
void keyPressed (final KeyEvent e)
 A key has been pressed, excluding auto-repeat modifier keys. More...
 
void keyReleased (final KeyEvent e)
 A key has been released, excluding auto-repeat modifier keys. More...
 
void keyPressed (KeyEvent e)
 A key has been pressed, excluding auto-repeat modifier keys. More...
 
void keyReleased (KeyEvent e)
 A key has been released, excluding auto-repeat modifier keys. More...
 

Public Attributes

final Shape receiver
 

Detailed Description

Forward KeyListener, to be attached to a key event source forwarded to the receiver set at constructor.

This given receiver Shape must be setInteractive(boolean) to have the events forwarded.

See also
Shape::receiveKeyEvents(Shape)

Definition at line 172 of file Shape.java.

Constructor & Destructor Documentation

◆ ForwardKeyListener()

com.jogamp.graph.ui.Shape.ForwardKeyListener.ForwardKeyListener ( final Shape  receiver)

ForwardKeyListener Constructor

Parameters
receiverthe KeyListener receiver

Definition at line 178 of file Shape.java.

Member Function Documentation

◆ keyPressed()

void com.jogamp.graph.ui.Shape.ForwardKeyListener.keyPressed ( final KeyEvent  e)

A key has been pressed, excluding auto-repeat modifier keys.

See KeyEvent.

Implements com.jogamp.newt.event.KeyListener.

Definition at line 188 of file Shape.java.

◆ keyReleased()

void com.jogamp.graph.ui.Shape.ForwardKeyListener.keyReleased ( final KeyEvent  e)

A key has been released, excluding auto-repeat modifier keys.

See KeyEvent.

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;
 }

Implements com.jogamp.newt.event.KeyListener.

Definition at line 190 of file Shape.java.

Member Data Documentation

◆ receiver

final Shape com.jogamp.graph.ui.Shape.ForwardKeyListener.receiver

Definition at line 173 of file Shape.java.


The documentation for this class was generated from the following file: