Top Description Fields Constructors Methods
jogamp.newt.swt.event

public Class SWTNewtEventFactory

extends Object
Class Inheritance
Imports
com.jogamp.nativewindow.NativeSurface, .NativeSurfaceHolder, org.eclipse.swt.SWT, org.eclipse.swt.widgets.Event, .Listener, com.jogamp.newt.event.InputEvent, .MouseEvent

SWT event translator to NEWT, inclusive dispatch listener.

Disclaimer

This code is merely tested and subject to change.

Field Summary

Modifier and TypeField and Description
pack-priv short

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final void
attachDispatchListener(final Control ctrl, final NativeSurfaceHolder sourceHolder, final MouseListener ml, final KeyListener kl)

public static final InputEvent
createInputEvent(final Event event, final NativeSurfaceHolder sourceHolder)

public static final KeyEvent
createKeyEvent(final Event event, final NativeSurfaceHolder sourceHolder)

public static final MouseEvent
createMouseEvent(final Event event, final NativeSurfaceHolder sourceHolder)

public final boolean
dispatchKeyEvent(final Event event, final NativeSurfaceHolder sourceHolder, final KeyListener l)

public final boolean
dispatchMouseEvent(final Event event, final NativeSurfaceHolder sourceHolder, final MouseListener l)

public static final short
eventTypeSWT2NEWT(final int swtType)

public static int
newtKeyCode2SWTKeyCode(final short newtKeyCode)

pack-priv final void
public static short
swtKeyCode2NewtKeyCode(final int swtKeyCode)

public static final int
swtModifiers2Newt(final int awtMods, final boolean mouseHint)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dragButtonDownback to summary
pack-priv short dragButtonDown

Constructor Detail

SWTNewtEventFactoryback to summary
public SWTNewtEventFactory()

Method Detail

attachDispatchListenerback to summary
public final void attachDispatchListener(final Control ctrl, final NativeSurfaceHolder sourceHolder, final MouseListener ml, final KeyListener kl)
createInputEventback to summary
public static final InputEvent createInputEvent(final Event event, final NativeSurfaceHolder sourceHolder)
createKeyEventback to summary
public static final KeyEvent createKeyEvent(final Event event, final NativeSurfaceHolder sourceHolder)
createMouseEventback to summary
public static final MouseEvent createMouseEvent(final Event event, final NativeSurfaceHolder sourceHolder)
dispatchKeyEventback to summary
public final boolean dispatchKeyEvent(final Event event, final NativeSurfaceHolder sourceHolder, final KeyListener l)
dispatchMouseEventback to summary
public final boolean dispatchMouseEvent(final Event event, final NativeSurfaceHolder sourceHolder, final MouseListener l)
eventTypeSWT2NEWTback to summary
public static final short eventTypeSWT2NEWT(final int swtType)
newtKeyCode2SWTKeyCodeback to summary
public static int newtKeyCode2SWTKeyCode(final short newtKeyCode)
resetButtonsDownback to summary
pack-priv final void resetButtonsDown()
swtKeyCode2NewtKeyCodeback to summary
public static short swtKeyCode2NewtKeyCode(final int swtKeyCode)
swtModifiers2Newtback to summary
public static final int swtModifiers2Newt(final int awtMods, final boolean mouseHint)