Package com.jogamp.newt.event.awt
Class AWTMouseAdapter
- java.lang.Object
-
- com.jogamp.newt.event.awt.AWTAdapter
-
- com.jogamp.newt.event.awt.AWTMouseAdapter
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,MouseWheelListener,EventListener
public class AWTMouseAdapter extends AWTAdapter implements MouseListener, MouseMotionListener, MouseWheelListener
-
-
Field Summary
-
Fields inherited from class com.jogamp.newt.event.awt.AWTAdapter
DEBUG_IMPLEMENTATION
-
-
Constructor Summary
Constructors Constructor Description AWTMouseAdapter()AWTMouseAdapter(MouseListener newtListener, NativeSurfaceHolder nsProxy)AWTMouseAdapter(MouseListener newtListener, Window newtProxy)AWTMouseAdapter(Window downstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AWTAdapteraddTo(Component awtComponent)Due to the fact that some NEWTNEWTEventListenerare mapped to more than oneEventListener, this method is for your convenience to use this Adapter as a listener for all types.
E.g.voidmouseClicked(MouseEvent e)voidmouseDragged(MouseEvent e)voidmouseEntered(MouseEvent e)voidmouseExited(MouseEvent e)voidmouseMoved(MouseEvent e)voidmousePressed(MouseEvent e)voidmouseReleased(MouseEvent e)voidmouseWheelMoved(MouseWheelEvent e)AWTAdapterremoveFrom(Component awtComponent)-
Methods inherited from class com.jogamp.newt.event.awt.AWTAdapter
clear, getNativeSurfaceHolder, getNewtEventListener, getNewtWindow, setConsumeAWTEvent, setDownstream
-
-
-
-
Constructor Detail
-
AWTMouseAdapter
public AWTMouseAdapter(MouseListener newtListener, NativeSurfaceHolder nsProxy)
-
AWTMouseAdapter
public AWTMouseAdapter(MouseListener newtListener, Window newtProxy)
-
AWTMouseAdapter
public AWTMouseAdapter(Window downstream)
-
AWTMouseAdapter
public AWTMouseAdapter()
-
-
Method Detail
-
addTo
public AWTAdapter addTo(Component awtComponent)
Description copied from class:AWTAdapterDue to the fact that some NEWTNEWTEventListenerare mapped to more than oneEventListener, this method is for your convenience to use this Adapter as a listener for all types.
E.g.MouseListeneris mapped toMouseListenerandMouseMotionListener.- Specified by:
addToin classAWTAdapter
-
removeFrom
public AWTAdapter removeFrom(Component awtComponent)
- Specified by:
removeFromin classAWTAdapter- See Also:
AWTAdapter.addTo(java.awt.Component)
-
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExitedin interfaceMouseListener
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressedin interfaceMouseListener
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mouseWheelMoved
public void mouseWheelMoved(MouseWheelEvent e)
- Specified by:
mouseWheelMovedin interfaceMouseWheelListener
-
-