|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--quicktime.app.actions.MouseResponder
|
+--quicktime.app.actions.GenericResponder
This is a generic responder for MouseEvents. It places no conditions on the the containing space or target. An application can also register QTMouseListeners and MouseListeners with this responder in which case the GenericResponder will invoke the appropriate method on the registered listeners.
QTMouseController| Field Summary | |
protected java.lang.Object |
space
Deprecated. This is the QTDrawable space within which the Dragger's target is enclosed and contained* @deprecated since QTJava 6.1 |
protected java.lang.Object |
target
Deprecated. This is the Transformable target of the Dragger action * @deprecated since QTJava 6.1 |
| Constructor Summary | |
GenericResponder(int modifierKeyMask,
int modifierTestConditions,
int eventTypes)
Deprecated. since QTJava 6.1 |
|
| Method Summary | |
void |
addMouseListener(java.awt.event.MouseListener ml)
Deprecated. since QTJava 6.1 |
void |
addMouseMotionListener(java.awt.event.MouseMotionListener ml)
Deprecated. since QTJava 6.1 |
void |
addQTMouseMotionListener(QTMouseMotionListener ql)
Deprecated. since QTJava 6.1 |
static GenericResponder |
asAnyMouseListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. since QTJava 6.1 |
static GenericResponder |
asMouseListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. since QTJava 6.1 |
static GenericResponder |
asMouseMotionListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. since QTJava 6.1 |
static GenericResponder |
asMouseOrMouseMotionListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. since QTJava 6.1 |
static GenericResponder |
asQTMouseMotionListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. since QTJava 6.1 |
static GenericResponder |
asRolloverListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. since QTJava 6.1 |
java.lang.Object |
getSpace()
Deprecated. since QTJava 6.1 |
java.lang.Object |
getTarget()
Deprecated. since QTJava 6.1 |
boolean |
isAppropriate(java.lang.Object object)
Deprecated. since QTJava 6.1 |
void |
mouseClicked(java.awt.event.MouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseDragged(java.awt.event.MouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseEntered(java.awt.event.MouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseEnteredTarget(java.awt.event.MouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseExited(java.awt.event.MouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseExitedTarget(java.awt.event.MouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseMoved(java.awt.event.MouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mousePressed(java.awt.event.MouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseReleased(java.awt.event.MouseEvent e)
Deprecated. since QTJava 6.1 |
void |
removeMouseListener(java.awt.event.MouseListener ml)
Deprecated. since QTJava 6.1 |
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener ml)
Deprecated. since QTJava 6.1 |
void |
removeQTMouseMotionListener(QTMouseMotionListener ql)
Deprecated. since QTJava 6.1 |
protected void |
removeTarget()
Deprecated. since QTJava 6.1 |
protected void |
setTarget(java.lang.Object target)
Deprecated. since QTJava 6.1 |
protected void |
setTargetSpace(java.lang.Object s)
Deprecated. since QTJava 6.1 |
| Methods inherited from class quicktime.app.actions.MouseResponder |
activationEventType, deactivate, getMouseController, isActive, isInterested, isInterested |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.Object target
protected java.lang.Object space
| Constructor Detail |
public GenericResponder(int modifierKeyMask,
int modifierTestConditions,
int eventTypes)
modifierKeyMask - determines which modifier keys (or none) which must
be depressed for the action to be invoked.modifierTestConditions - determines the conditions under which the responder is
activated when the specified modifierKeyMask conditions are met.eventTypes - specifies the mouse event types that the responder is interested in.| Method Detail |
public static GenericResponder asMouseListener(int modifierKeyMask,
int modifierTestConditions)
modifierKeyMask - the state of the modifier keys to activate this respondermodifierTestConditions - the match criteria that are applied to the modifier keys
MouseResponder.kMouseEvents
public static GenericResponder asMouseMotionListener(int modifierKeyMask,
int modifierTestConditions)
modifierKeyMask - the state of the modifier keys to activate this respondermodifierTestConditions - the match criteria that are applied to the modifier keys
MouseResponder.kMouseMotionEvents
public static GenericResponder asMouseOrMouseMotionListener(int modifierKeyMask,
int modifierTestConditions)
modifierKeyMask - the state of the modifier keys to activate this respondermodifierTestConditions - the match criteria that are applied to the modifier keys
MouseResponder.kMouseOrMouseMotionEvents
public static GenericResponder asQTMouseMotionListener(int modifierKeyMask,
int modifierTestConditions)
modifierKeyMask - the state of the modifier keys to activate this respondermodifierTestConditions - the match criteria that are applied to the modifier keys
MouseResponder.kQTMouseMotionEvents
public static GenericResponder asRolloverListener(int modifierKeyMask,
int modifierTestConditions)
modifierKeyMask - the state of the modifier keys to activate this respondermodifierTestConditions - the match criteria that are applied to the modifier keys
MouseResponder.kRolloverEvents
public static GenericResponder asAnyMouseListener(int modifierKeyMask,
int modifierTestConditions)
modifierKeyMask - the state of the modifier keys to activate this respondermodifierTestConditions - the match criteria that are applied to the modifier keys
MouseResponder.kAnyMouseEventprotected void setTargetSpace(java.lang.Object s)
setTargetSpace in class MouseResponders - the Space to which the responder's controller has been added.protected void setTarget(java.lang.Object target)
setTarget in class MouseRespondertarget - the object that is the selected target of the MouseEventprotected void removeTarget()
removeTarget in class MouseResponderpublic java.lang.Object getSpace()
public java.lang.Object getTarget()
public boolean isAppropriate(java.lang.Object object)
isAppropriate in class MouseResponderobject - the object to test
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in class MouseRespondere - the MouseEvent that triggered this eventpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in class MouseRespondere - the MouseEvent that triggered this eventpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in class MouseRespondere - the MouseEvent that triggered this eventpublic void mouseEnteredTarget(java.awt.event.MouseEvent e)
mouseEnteredTarget in class MouseRespondere - the MouseEvent that triggered this eventpublic void mouseExitedTarget(java.awt.event.MouseEvent e)
mouseExitedTarget in class MouseRespondere - the MouseEvent that triggered this eventpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in class MouseRespondere - the MouseEvent that triggered this eventpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in class MouseRespondere - the MouseEvent that triggered this eventpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in class MouseRespondere - the MouseEvent that triggered this eventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in class MouseRespondere - the MouseEvent that triggered this eventpublic void addQTMouseMotionListener(QTMouseMotionListener ql)
myGenericResponder.isInterested (MouseResponder.kQTMouseMotionEvents)The intereste in mouseMotionEvents is a contained interest of QTMouseMotion events, and is thus the minimal requirement to register this kind of listener.
ql - the new QTMouseMotionListenerpublic void removeQTMouseMotionListener(QTMouseMotionListener ql)
ql - the QTMouseMotionListener to removepublic void addMouseListener(java.awt.event.MouseListener ml)
myGenericResponder.isInterested (MouseResponder.kMouseEvents)
ml - the new MouseListenerpublic void removeMouseListener(java.awt.event.MouseListener ml)
ml - the MouseListener to removepublic void addMouseMotionListener(java.awt.event.MouseMotionListener ml)
myGenericResponder.isInterested (MouseResponder.kMouseMotionEvents)
ml - the new MouseListenerpublic void removeMouseMotionListener(java.awt.event.MouseMotionListener ml)
ml - the MouseListener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||