Top Fields Constructors Methods
com.jogamp.newt.event.awt

public Class AWTMouseAdapter

extends AWTAdapter
implements MouseListener, MouseMotionListener, MouseWheelListener
Class Inheritance
All Implemented Interfaces
java.awt.event.MouseWheelListener, java.util.EventListener, java.awt.event.MouseMotionListener, java.awt.event.MouseListener
Imports
com.jogamp.nativewindow.NativeSurfaceHolder, jogamp.newt.awt.event.AWTNewtEventFactory

Field Summary

Inherited from com.jogamp.newt.event.awt.AWTAdapter:
consumeAWTEventDEBUG_IMPLEMENTATIONisSetupnewtListenernewtWindownsHolder

Constructor Summary

AccessConstructor and Description
public
AWTMouseAdapter(final MouseListener newtListener, final NativeSurfaceHolder nsProxy)

public
AWTMouseAdapter(final MouseListener newtListener, final Window newtProxy)

public
AWTMouseAdapter(final Window downstream)

public

Method Summary

Modifier and TypeMethod and Description
public synchronized AWTAdapter
addTo(final Component awtComponent)

Implements abstract com.jogamp.newt.event.awt.AWTAdapter.addTo.

Due to the fact that some NEWT com.jogamp.newt.event.NEWTEventListener are mapped to more than one java.util.EventListener, this method is for your convenience to use this Adapter as a listener for all types.
public synchronized void
mouseClicked(final MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseClicked.

Invoked when the mouse button has been clicked (pressed and released) on a component.
public synchronized void
mouseDragged(final MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseMotionListener.mouseDragged.

Invoked when a mouse button is pressed on a component and then dragged.
public synchronized void
mouseEntered(final MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseEntered.

Invoked when the mouse enters a component.
public synchronized void
mouseExited(final MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseExited.

Invoked when the mouse exits a component.
public synchronized void
mouseMoved(final MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseMotionListener.mouseMoved.

Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
public synchronized void
mousePressed(final MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mousePressed.

Invoked when a mouse button has been pressed on a component.
public synchronized void
mouseReleased(final MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseReleased.

Invoked when a mouse button has been released on a component.
public synchronized void
mouseWheelMoved(final MouseWheelEvent
the event to be processed
e
)

Implements java.awt.event.MouseWheelListener.mouseWheelMoved.

Invoked when the mouse wheel is rotated.
public synchronized AWTAdapter
Inherited from com.jogamp.newt.event.awt.AWTAdapter:
cleargetNativeSurfaceHoldergetNewtEventListenergetNewtWindowprocessEventsetConsumeAWTEventsetDownstream

Constructor Detail

AWTMouseAdapterback to summary
public AWTMouseAdapter(final MouseListener newtListener, final NativeSurfaceHolder nsProxy)
AWTMouseAdapterback to summary
public AWTMouseAdapter(final MouseListener newtListener, final Window newtProxy)
AWTMouseAdapterback to summary
public AWTMouseAdapter(final Window downstream)
AWTMouseAdapterback to summary
public AWTMouseAdapter()

Method Detail

addToback to summary
public synchronized AWTAdapter addTo(final Component awtComponent)

Implements abstract com.jogamp.newt.event.awt.AWTAdapter.addTo.

Doc from com.jogamp.newt.event.awt.AWTAdapter.addTo.

Due to the fact that some NEWT com.jogamp.newt.event.NEWTEventListener are mapped to more than one java.util.EventListener, this method is for your convenience to use this Adapter as a listener for all types.
E.g. com.jogamp.newt.event.MouseListener is mapped to java.awt.event.MouseListener and java.awt.event.MouseMotionListener.

Annotations
@Override
mouseClickedback to summary
public synchronized void mouseClicked(final MouseEvent e)

Implements java.awt.event.MouseListener.mouseClicked.

Doc from java.awt.event.MouseListener.mouseClicked.

Invoked when the mouse button has been clicked (pressed and released) on a component.

Parameters
e:MouseEvent

the event to be processed

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

Implements java.awt.event.MouseMotionListener.mouseDragged.

Doc from java.awt.event.MouseMotionListener.mouseDragged.

Invoked when a mouse button is pressed on a component and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.

Parameters
e:MouseEvent

the event to be processed

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

Implements java.awt.event.MouseListener.mouseEntered.

Doc from java.awt.event.MouseListener.mouseEntered.

Invoked when the mouse enters a component.

Parameters
e:MouseEvent

the event to be processed

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

Implements java.awt.event.MouseListener.mouseExited.

Doc from java.awt.event.MouseListener.mouseExited.

Invoked when the mouse exits a component.

Parameters
e:MouseEvent

the event to be processed

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

Implements java.awt.event.MouseMotionListener.mouseMoved.

Doc from java.awt.event.MouseMotionListener.mouseMoved.

Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.

Parameters
e:MouseEvent

the event to be processed

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

Implements java.awt.event.MouseListener.mousePressed.

Doc from java.awt.event.MouseListener.mousePressed.

Invoked when a mouse button has been pressed on a component.

Parameters
e:MouseEvent

the event to be processed

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

Implements java.awt.event.MouseListener.mouseReleased.

Doc from java.awt.event.MouseListener.mouseReleased.

Invoked when a mouse button has been released on a component.

Parameters
e:MouseEvent

the event to be processed

Annotations
@Override
mouseWheelMovedback to summary
public synchronized void mouseWheelMoved(final MouseWheelEvent e)

Implements java.awt.event.MouseWheelListener.mouseWheelMoved.

Doc from java.awt.event.MouseWheelListener.mouseWheelMoved.

Invoked when the mouse wheel is rotated.

Parameters
e:MouseWheelEvent

the event to be processed

Annotations
@Override
removeFromback to summary
public synchronized AWTAdapter removeFrom(final Component awtComponent)

Implements abstract com.jogamp.newt.event.awt.AWTAdapter.removeFrom.

Annotations
@Override