|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--quicktime.app.event.QTMouseEvent
This class is used by QuickTime objects that have an action associated with them. When those object's actions are fired they will generate an action event, with those objects as the source of the event, to any registered listeners
A QTMouseEvent's source is the space within which the event occured. Some controllers that broadcast a QTMouseEvent may also have targetted the mouse event to a particular member object in the space.
Field Summary | |
static int |
kMouseClick
The mouse clicked event type. |
static int |
kMouseDragged
The mouse dragged event type. |
static int |
kMouseEntered
The mouse entered event type. |
static int |
kMouseExited
The mouse exited event type. |
static int |
kMouseMoved
The mouse moved event type. |
static int |
kMousePressed
The mouse pressed event type. |
static int |
kMouseReleased
The mouse released event type. |
static int |
kMouseTargetEnter
The mouse entered a target |
static int |
kMouseTargetExit
The mouse exited a target |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
QTMouseEvent(java.lang.Object source)
Constructs an QTMouseEvent object with the specified source object. |
|
QTMouseEvent(java.lang.Object source,
int eventType,
int x,
int y,
long when,
int modifiers,
int clickCount)
Constructs an QTMouseEvent object with the specified source object. |
Method Summary | |
void |
consume()
QTMouseEvents can be consumed by any of their listeners. |
int |
getClickCount()
|
int |
getEventType()
|
QDPoint |
getLocation()
|
int |
getModifiers()
|
java.lang.Object |
getTarget()
|
long |
getWhen()
|
int |
getX()
|
int |
getY()
|
void |
initialiseEventProfile(int eventType,
int x,
int y,
long when,
int modifiers,
int clickCount)
Sets the characteristics of the MouseEvent. |
boolean |
isConsumed()
|
void |
setTarget(java.lang.Object target)
|
java.lang.String |
toString()
|
void |
translate(int x,
int y)
Translates the location of the event. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int kMouseClick
public static final int kMousePressed
public static final int kMouseReleased
public static final int kMouseMoved
public static final int kMouseEntered
public static final int kMouseExited
public static final int kMouseDragged
public static final int kMouseTargetEnter
public static final int kMouseTargetExit
Constructor Detail |
public QTMouseEvent(java.lang.Object source)
source
- the object where the event originatedpublic QTMouseEvent(java.lang.Object source, int eventType, int x, int y, long when, int modifiers, int clickCount)
source
- the object where the event originatedeventType
- the type of mouse eventx
- the x location of the eventy
- the y location of the eventwhen
- when the event occuredmodifiers
- the modifiers held down during this actionclickCount
- the number of clicks within the system click time that occured.Method Detail |
public QDPoint getLocation()
public int getModifiers()
public java.lang.Object getTarget()
public void setTarget(java.lang.Object target)
target
- the target of the eventpublic int getX()
public int getY()
public long getWhen()
public int getClickCount()
public int getEventType()
public void translate(int x, int y)
x
- the offset to the x coordinate positiony
- the offset to the y coordinate positionpublic void initialiseEventProfile(int eventType, int x, int y, long when, int modifiers, int clickCount)
eventType
- the type of mouse eventx
- the x location of the eventy
- the y location of the eventwhen
- when the event occuredmodifiers
- the modifiers held down during this actionclickCount
- the number of clicks within the system click time that occured.public void consume()
public boolean isConsumed()
public java.lang.String toString()
toString
in class java.util.EventObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |