com.jogamp.newt.event
Class MouseEvent
java.lang.Object
java.util.EventObject
com.jogamp.newt.event.NEWTEvent
com.jogamp.newt.event.InputEvent
com.jogamp.newt.event.MouseEvent
- All Implemented Interfaces:
- Serializable
public class MouseEvent
- extends InputEvent
- See Also:
- Serialized Form
Constructor Summary |
MouseEvent(int eventType,
Object source,
long when,
int modifiers,
int[] x,
int[] y,
float[] pressure,
int[] pointerids,
int clickCount,
int button,
int rotation)
|
MouseEvent(int eventType,
Object source,
long when,
int modifiers,
int x,
int y,
int clickCount,
int button,
int rotation)
|
BUTTON1
public static final int BUTTON1
- See Also:
- Constant Field Values
BUTTON2
public static final int BUTTON2
- See Also:
- Constant Field Values
BUTTON3
public static final int BUTTON3
- See Also:
- Constant Field Values
BUTTON4
public static final int BUTTON4
- See Also:
- Constant Field Values
BUTTON5
public static final int BUTTON5
- See Also:
- Constant Field Values
BUTTON6
public static final int BUTTON6
- See Also:
- Constant Field Values
BUTTON_NUMBER
public static final int BUTTON_NUMBER
- See Also:
- Constant Field Values
EVENT_MOUSE_CLICKED
public static final int EVENT_MOUSE_CLICKED
- See Also:
- Constant Field Values
EVENT_MOUSE_ENTERED
public static final int EVENT_MOUSE_ENTERED
- See Also:
- Constant Field Values
EVENT_MOUSE_EXITED
public static final int EVENT_MOUSE_EXITED
- See Also:
- Constant Field Values
EVENT_MOUSE_PRESSED
public static final int EVENT_MOUSE_PRESSED
- See Also:
- Constant Field Values
EVENT_MOUSE_RELEASED
public static final int EVENT_MOUSE_RELEASED
- See Also:
- Constant Field Values
EVENT_MOUSE_MOVED
public static final int EVENT_MOUSE_MOVED
- See Also:
- Constant Field Values
EVENT_MOUSE_DRAGGED
public static final int EVENT_MOUSE_DRAGGED
- See Also:
- Constant Field Values
EVENT_MOUSE_WHEEL_MOVED
public static final int EVENT_MOUSE_WHEEL_MOVED
- See Also:
- Constant Field Values
MouseEvent
public MouseEvent(int eventType,
Object source,
long when,
int modifiers,
int x,
int y,
int clickCount,
int button,
int rotation)
MouseEvent
public MouseEvent(int eventType,
Object source,
long when,
int modifiers,
int[] x,
int[] y,
float[] pressure,
int[] pointerids,
int clickCount,
int button,
int rotation)
getClickTimeout
public static final int getClickTimeout()
getPointerCount
public int getPointerCount()
- Returns:
- the count of pointers involved in this event
getPointerId
public int getPointerId(int index)
- Returns:
- the pointer id for the data at index.
return -1 if index not available.
getButton
public int getButton()
getClickCount
public int getClickCount()
getX
public int getX()
getY
public int getY()
getX
public int getX(int index)
- Returns:
- x-coord at index where index refers to the
data coming from a pointer.
- See Also:
getPointerId(index)
getY
public int getY(int index)
getPressure
public float getPressure()
getPressure
public float getPressure(int index)
- Returns:
- the pressure associated with the pointer at index.
the value of zero is return if not available.
getWheelRotation
public int getWheelRotation()
toString
public String toString()
- Overrides:
toString
in class InputEvent
getEventTypeString
public static String getEventTypeString(int type)
Copyright 2010 JogAmp Community.