Top Description Fields Constructors Methods
jogamp.newt.driver.x11

public Class X11UnderlayTracker

extends Object
implements WindowListener, KeyListener, MouseListener, MouseTracker, KeyTracker
Class Inheritance
All Implemented Interfaces
jogamp.newt.driver.KeyTracker, com.jogamp.newt.event.WindowListener, com.jogamp.newt.event.NEWTEventListener, java.util.EventListener, jogamp.newt.driver.MouseTracker, com.jogamp.newt.event.MouseListener, com.jogamp.newt.event.KeyListener
Imports
jogamp.nativewindow.x11.X11Util, jogamp.newt.WindowImpl, jogamp.newt.driver.MouseTracker, .KeyTracker, com.jogamp.common.util.ArrayHashMap, .ReflectionUtil, com.jogamp.nativewindow.Capabilities, .GraphicsConfigurationFactory, .NativeWindowFactory, com.jogamp.nativewindow.util.Point, com.jogamp.newt.Display, .NewtFactory, .Screen, .Window, com.jogamp.newt.event.KeyEvent, .KeyListener, .MouseEvent, .MouseListener, .WindowEvent, .WindowListener, .WindowUpdateEvent

UnderlayTracker can be used as input for WM that only provide undecorated overlays. The UnderlayTracker enable move and resize manipulation of the overlays. A NEWT window may use the UnderlayTracker by calling addWindowListener(X11UnderlayTracker.getSingleton())

Field Summary

Modifier and TypeField and Description
private final Display
private volatile WindowImpl
private volatile MouseEvent
private static volatile ArrayHashMap<WindowImpl, WindowImpl>
private final Screen
private static final X11UnderlayTracker
private static volatile ArrayHashMap<WindowImpl, WindowImpl>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
public int
public static X11UnderlayTracker
public void
public void
public static void
main(String[] args)

public void
public void
public void
public void
public void
public void
public void
public void
mouseWheelMoved(MouseEvent e)

Implements com.jogamp.newt.event.MouseListener.mouseWheelMoved.

Traditional event name originally produced by a mouse pointer type.
public void
public void
windowDestroyNotify(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowDestroyNotify.

Window destruction has been requested.
public void
public void
public void
public void
windowRepaint(final WindowUpdateEvent e)

Implements com.jogamp.newt.event.WindowListener.windowRepaint.

Window area shall be repainted.
public void
windowResized(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowResized.

Window is resized, your application shall respect the new window dimension.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

displayback to summary
private final Display display
focusedWindowback to summary
private volatile WindowImpl focusedWindow
lastMouseback to summary
private volatile MouseEvent lastMouse
overlayWindowMapback to summary
private static volatile ArrayHashMap<WindowImpl, WindowImpl> overlayWindowMap
screenback to summary
private final Screen screen
trackerback to summary
private static final X11UnderlayTracker tracker
underlayWindowMapback to summary
private static volatile ArrayHashMap<WindowImpl, WindowImpl> underlayWindowMap

Constructor Detail

X11UnderlayTrackerback to summary
private X11UnderlayTracker()

Method Detail

getLastXback to summary
public int getLastX()

Implements jogamp.newt.driver.MouseTracker.getLastX.

Annotations
@Override
getLastYback to summary
public int getLastY()

Implements jogamp.newt.driver.MouseTracker.getLastY.

Annotations
@Override
getSingletonback to summary
public static X11UnderlayTracker getSingleton()
keyPressedback to summary
public void keyPressed(KeyEvent e)

Implements com.jogamp.newt.event.KeyListener.keyPressed.

Doc from com.jogamp.newt.event.KeyListener.keyPressed.

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

Annotations
@Override
keyReleasedback to summary
public void keyReleased(KeyEvent e)

Implements com.jogamp.newt.event.KeyListener.keyReleased.

Doc from com.jogamp.newt.event.KeyListener.keyReleased.

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

Annotations
@Override
mainback to summary
public static void main(String[] args) throws InterruptedException
mouseClickedback to summary
public void mouseClicked(MouseEvent e)

Implements com.jogamp.newt.event.MouseListener.mouseClicked.

Annotations
@Override
mouseDraggedback to summary
public void mouseDragged(MouseEvent e)

Implements com.jogamp.newt.event.MouseListener.mouseDragged.

Annotations
@Override
mouseEnteredback to summary
public void mouseEntered(MouseEvent e)

Implements com.jogamp.newt.event.MouseListener.mouseEntered.

Doc from com.jogamp.newt.event.MouseListener.mouseEntered.

Only generated for PointerType#Mouse

Annotations
@Override
mouseExitedback to summary
public void mouseExited(MouseEvent e)

Implements com.jogamp.newt.event.MouseListener.mouseExited.

Doc from com.jogamp.newt.event.MouseListener.mouseExited.

Only generated for PointerType#Mouse

Annotations
@Override
mouseMovedback to summary
public void mouseMoved(MouseEvent e)

Implements com.jogamp.newt.event.MouseListener.mouseMoved.

Annotations
@Override
mousePressedback to summary
public void mousePressed(MouseEvent e)

Implements com.jogamp.newt.event.MouseListener.mousePressed.

Annotations
@Override
mouseReleasedback to summary
public void mouseReleased(MouseEvent e)

Implements com.jogamp.newt.event.MouseListener.mouseReleased.

Annotations
@Override
mouseWheelMovedback to summary
public void mouseWheelMoved(MouseEvent e)

Implements com.jogamp.newt.event.MouseListener.mouseWheelMoved.

Doc from com.jogamp.newt.event.MouseListener.mouseWheelMoved.

Traditional event name originally produced by a mouse pointer type.

Triggered for any rotational pointer events, see MouseEvent#getRotation() and MouseEvent#getRotationScale().

Annotations
@Override
windowDestroyedback to summary
public void windowDestroyed(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowDestroyed.

Doc from com.jogamp.newt.event.WindowListener.windowDestroyed.

Window has been destroyed.

Annotations
@Override
windowDestroyNotifyback to summary
public void windowDestroyNotify(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowDestroyNotify.

Doc from com.jogamp.newt.event.WindowListener.windowDestroyNotify.

Window destruction has been requested.

Depending on the default close operation, the window maybe destroyed or not.

In case the window will be destroyed (see above), release of resources is recommended.
Annotations
@Override
windowGainedFocusback to summary
public void windowGainedFocus(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowGainedFocus.

Doc from com.jogamp.newt.event.WindowListener.windowGainedFocus.

Window gained focus.

Annotations
@Override
windowLostFocusback to summary
public void windowLostFocus(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowLostFocus.

Doc from com.jogamp.newt.event.WindowListener.windowLostFocus.

Window lost focus.

Annotations
@Override
windowMovedback to summary
public void windowMoved(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowMoved.

Doc from com.jogamp.newt.event.WindowListener.windowMoved.

Window has been moved.

Annotations
@Override
windowRepaintback to summary
public void windowRepaint(final WindowUpdateEvent e)

Implements com.jogamp.newt.event.WindowListener.windowRepaint.

Doc from com.jogamp.newt.event.WindowListener.windowRepaint.

Window area shall be repainted.

Annotations
@Override
windowResizedback to summary
public void windowResized(final WindowEvent e)

Implements com.jogamp.newt.event.WindowListener.windowResized.

Doc from com.jogamp.newt.event.WindowListener.windowResized.

Window is resized, your application shall respect the new window dimension. A repaint is recommended.

Annotations
@Override