|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
A GestureHandler.GestureEvent denominating zoom.
More...
Public Member Functions | |
| ZoomEvent (final Object source, final long when, final int modifiers, final GestureHandler handler, final MouseEvent pe, final float zoom, final float delta, final float scale) | |
| final float | getZoom () |
| Zoom value lies within [0..2], with 1 as 1:1. More... | |
| final float | getDelta () |
| Delta to last zoom value lies within [-1..1]. More... | |
| final float | getScale () |
Returns the scale used to determine the zoom and hence it's delta value, which semantics depends on the pointer type's PointerClass. More... | |
| final String | toString () |
Public Member Functions inherited from com.jogamp.newt.event.GestureHandler.GestureEvent | |
| GestureEvent (final Object source, final long when, final int modifiers, final GestureHandler handler, final InputEvent trigger) | |
Creates a gesture event with default type EVENT_GESTURE_DETECTED. More... | |
| GestureEvent (final short event_type, final Object source, final long when, final int modifiers, final GestureHandler handler, final InputEvent trigger) | |
| Creates a gesture event with custom event_type ! More... | |
| final GestureHandler | getHandler () |
Return the GestureHandler, which produced the event. More... | |
| final InputEvent | getTrigger () |
Triggering InputEvent. More... | |
| String | toString () |
Public Member Functions inherited from com.jogamp.newt.event.InputEvent | |
| final int | getModifiers () |
| Return the modifier bits of this event, e.g. More... | |
| final boolean | isAltDown () |
getModifiers() contains ALT_MASK. More... | |
| final boolean | isAltGraphDown () |
getModifiers() contains ALT_GRAPH_MASK. More... | |
| final boolean | isControlDown () |
getModifiers() contains CTRL_MASK. More... | |
| final boolean | isMetaDown () |
getModifiers() contains META_MASK. More... | |
| final boolean | isShiftDown () |
getModifiers() contains SHIFT_MASK. More... | |
| final boolean | isAutoRepeat () |
getModifiers() contains AUTOREPEAT_MASK. More... | |
| final boolean | isConfined () |
getModifiers() contains CONFINED_MASK. More... | |
| final boolean | isInvisible () |
getModifiers() contains INVISIBLE_MASK. More... | |
| final StringBuilder | getModifiersString (StringBuilder sb) |
| final short[] | getButtonsDown () |
See also MouseEvent's section about Multiple-Pointer Events. More... | |
| final boolean | isButtonDown (final int button) |
See also MouseEvent's section about Multiple-Pointer Events. More... | |
| final int | getButtonDownCount () |
| Returns the number of pressed buttons by counting the set bits: More... | |
| final boolean | isAnyButtonDown () |
| Returns true if at least one button is pressed, otherwise false: More... | |
| String | toString () |
| StringBuilder | toString (StringBuilder sb) |
Public Member Functions inherited from com.jogamp.newt.event.NEWTEvent | |
| final short | getEventType () |
| Returns the event type of this event. More... | |
| final long | getWhen () |
| Returns the timestamp, in milliseconds, of this event. More... | |
| final void | setAttachment (final Object attachment) |
| Attach the passed object to this event. More... | |
| final Object | getAttachment () |
| final boolean | isConsumed () |
Returns true if this events has been consumed, otherwise false. More... | |
| final void | setConsumed (final boolean consumed) |
If consumed is true, this event is marked as consumed, ie. More... | |
| String | toString () |
| StringBuilder | toString (StringBuilder sb) |
Additional Inherited Members | |
Static Public Member Functions inherited from com.jogamp.newt.event.InputEvent | |
| static final int | getButtonMask (final int button) |
| Returns the corresponding button mask for the given button. More... | |
Static Public Member Functions inherited from com.jogamp.newt.event.NEWTEvent | |
| static String | toHexString (final short hex) |
Static Public Attributes inherited from com.jogamp.newt.event.GestureHandler.GestureEvent | |
| static final short | EVENT_GESTURE_DETECTED = 400 |
| A gesture has been detected. More... | |
Static Public Attributes inherited from com.jogamp.newt.event.InputEvent | |
| static final int | SHIFT_MASK = 1 << 0 |
| static final int | CTRL_MASK = 1 << 1 |
| static final int | META_MASK = 1 << 2 |
| static final int | ALT_MASK = 1 << 3 |
| static final int | ALT_GRAPH_MASK = 1 << 4 |
| static final int | BUTTON1_MASK = 1 << 5 |
| static final int | BUTTON2_MASK = 1 << 6 |
| static final int | BUTTON3_MASK = 1 << 7 |
| static final int | BUTTON4_MASK = 1 << 8 |
| static final int | BUTTON5_MASK = 1 << 9 |
| static final int | BUTTON6_MASK = 1 << 10 |
| static final int | BUTTON7_MASK = 1 << 11 |
| static final int | BUTTON8_MASK = 1 << 12 |
| static final int | BUTTON9_MASK = 1 << 13 |
| static final int | BUTTONLAST_MASK = 1 << 20 |
| static final int | BUTTONALL_MASK = 0xffff << 5 |
| static final int | AUTOREPEAT_MASK = 1 << 29 |
| Event is caused by auto-repeat. More... | |
| static final int | CONFINED_MASK = 1 << 30 |
Pointer is confined, see Window#confinePointer(boolean). More... | |
| static final int | INVISIBLE_MASK = 1 << 31 |
Pointer is invisible, see Window#setPointerVisible(boolean). More... | |
Static Public Attributes inherited from com.jogamp.newt.event.NEWTEvent | |
| static final Object | consumedTag = new Object() |
See setConsumed(boolean) for description. More... | |
Protected Member Functions inherited from com.jogamp.newt.event.InputEvent | |
| InputEvent (final short eventType, final Object source, final long when, final int modifiers) | |
Protected Member Functions inherited from com.jogamp.newt.event.NEWTEvent | |
| NEWTEvent (final short eventType, final Object source, final long when) | |
A GestureHandler.GestureEvent denominating zoom.
Definition at line 52 of file PinchToZoomGesture.java.
| com.jogamp.newt.event.PinchToZoomGesture.ZoomEvent.ZoomEvent | ( | final Object | source, |
| final long | when, | ||
| final int | modifiers, | ||
| final GestureHandler | handler, | ||
| final MouseEvent | pe, | ||
| final float | zoom, | ||
| final float | delta, | ||
| final float | scale | ||
| ) |
Definition at line 56 of file PinchToZoomGesture.java.
| final float com.jogamp.newt.event.PinchToZoomGesture.ZoomEvent.getDelta | ( | ) |
Delta to last zoom value lies within [-1..1].
Definition at line 66 of file PinchToZoomGesture.java.
| final float com.jogamp.newt.event.PinchToZoomGesture.ZoomEvent.getScale | ( | ) |
Returns the scale used to determine the zoom and hence it's delta value, which semantics depends on the pointer type's PointerClass.
For PointerClass#Offscreen, the scale is usually 1.0f and denominates an abstract value without association to a physical value.
For PointerClass#Onscreen, the scale varies and denominates the divisor of the distance the finger[s] have moved on the screen. Hence scale * delta reproduces the screen distance in pixels the finger[s] have moved.
Definition at line 81 of file PinchToZoomGesture.java.
| final float com.jogamp.newt.event.PinchToZoomGesture.ZoomEvent.getZoom | ( | ) |
Zoom value lies within [0..2], with 1 as 1:1.
Definition at line 64 of file PinchToZoomGesture.java.
| final String com.jogamp.newt.event.PinchToZoomGesture.ZoomEvent.toString | ( | ) |
Reimplemented from com.jogamp.newt.event.GestureHandler.GestureEvent.
Definition at line 83 of file PinchToZoomGesture.java.