Package com.ardor3d.input.awt
Class AwtMouseWrapper
java.lang.Object
com.ardor3d.input.awt.AwtMouseWrapper
- All Implemented Interfaces:
MouseWrapper
,MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
public class AwtMouseWrapper
extends Object
implements MouseWrapper, MouseListener, MouseWheelListener, MouseMotionListener
Mouse wrapper class for use with AWT.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ardor3d.input.MouseWrapper
MouseWrapper.MouseIterator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final EnumSet
<MouseButton> protected final EnumMap
<MouseButton, Integer> protected final Component
protected boolean
protected MouseWrapper.MouseIterator
protected final Frame
protected int
protected int
protected final EnumMap
<MouseButton, Long> protected MouseState
protected final MouseManager
Fields inherited from interface com.ardor3d.input.MouseWrapper
_upcomingEvents
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a peeking iterator that allows the client to loop through all mouse events that have not yet been handled.void
init()
Allows the mouse wrapper implementation to initialize itself.boolean
void
void
void
void
void
void
void
void
void
setConsumeEvents
(boolean consumeEvents)
-
Field Details
-
_currentIterator
-
_lastState
-
_consumeEvents
protected boolean _consumeEvents -
_component
-
_frame
-
_manager
-
_clicks
-
_lastClickTime
-
_clickArmed
-
_ignoreX
protected int _ignoreX -
_ignoreY
protected int _ignoreY
-
-
Constructor Details
-
AwtMouseWrapper
-
-
Method Details
-
init
public void init()Description copied from interface:MouseWrapper
Allows the mouse wrapper implementation to initialize itself.- Specified by:
init
in interfaceMouseWrapper
-
getEvents
Description copied from interface:MouseWrapper
Returns a peeking iterator that allows the client to loop through all mouse events that have not yet been handled.- Specified by:
getEvents
in interfaceMouseWrapper
- Returns:
- an iterator that allows the client to check which events have still not been handled
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseWheelMoved
- Specified by:
mouseWheelMoved
in interfaceMouseWheelListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
isConsumeEvents
public boolean isConsumeEvents() -
setConsumeEvents
public void setConsumeEvents(boolean consumeEvents)
-