|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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 |
protected java.lang.Object |
target
Deprecated. This is the Transformable target of the Dragger action |
Constructor Summary | |
GenericResponder(int modifierKeyMask,
int modifierTestConditions,
int eventTypes)
Deprecated. Set some parameters that will create a GenericResponder that will respond to all mouse events (including mouseMoveTarget events). |
Method Summary | |
void |
addMouseListener(java.awt.event.MouseListener ml)
Deprecated. Registers a MouseListener to this responder. |
void |
addMouseMotionListener(java.awt.event.MouseMotionListener ml)
Deprecated. Registers a MouseListener to this responder. |
void |
addQTMouseMotionListener(QTMouseMotionListener ql)
Deprecated. Registers a QTMouseMotionListener to this responder. |
static GenericResponder |
asAnyMouseListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. Creates a GenericResponder that is interested in mouse events that are covered by the MouseListener, MouseMotionListener or QTMouseMotionListener interfaces. |
static GenericResponder |
asMouseListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. Creates a GenericResponder that is interested in mouse events that are covered by the MouseListener interface. |
static GenericResponder |
asMouseMotionListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. Creates a GenericResponder that is interested in mouse events that are covered by the MouseMotionListener interface. |
static GenericResponder |
asMouseOrMouseMotionListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. Creates a GenericResponder that is interested in mouse events that are covered by the MouseListener or MouseMotionListener interfaces. |
static GenericResponder |
asQTMouseMotionListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. Creates a GenericResponder that is interested in mouse events that are covered by the QTMouseMotionListener interface. |
static GenericResponder |
asRolloverListener(int modifierKeyMask,
int modifierTestConditions)
Deprecated. Creates a GenericResponder that is interested in mouse events that are covered by the QTMouseMotionListener interface. |
java.lang.Object |
getSpace()
Deprecated. Returns the Space that the controller has been attached too. |
java.lang.Object |
getTarget()
Deprecated. Returns the Target that the controller is currently controlling. |
boolean |
isAppropriate(java.lang.Object object)
Deprecated. The MouseController delegates the appropriateness of objects that it can control to the MouseResponder. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Deprecated. Invoked when the mouse has been clicked on a found and valid target within the enclosing space. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Deprecated. Invoked when the mouse has been dragged on a found and valid target within the enclosing space. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Deprecated. Invoked when the mouse enters a QTDrawable space. |
void |
mouseEnteredTarget(java.awt.event.MouseEvent e)
Deprecated. Invoked when a mouseMoved event enters a Target within an enclosing space. |
void |
mouseExited(java.awt.event.MouseEvent e)
Deprecated. Invoked when the mouse exits a QTDrawable space. |
void |
mouseExitedTarget(java.awt.event.MouseEvent e)
Deprecated. Invoked when a mouseMoved event exits a Target within an enclosing space. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Deprecated. Invoked when the mouse button has been moved over a space. |
void |
mousePressed(java.awt.event.MouseEvent e)
Deprecated. Invoked when the mouse has been pressed on a found and valid target within the enclosing space. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Deprecated. Invoked when the mouse has been released after being pressed on a found and valid target within the enclosing space. |
void |
removeMouseListener(java.awt.event.MouseListener ml)
Deprecated. Removes the specified MouseListener from the GenericResponder. |
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener ml)
Deprecated. Removes the specified MouseListener from the GenericResponder. |
void |
removeQTMouseMotionListener(QTMouseMotionListener ql)
Deprecated. Removes the specified QTMouseMotionListener from the GenericResponder. |
protected void |
removeTarget()
Deprecated. When the Responder is deactivated from the MouseController the controller uses this method to tell the Responder that it no longer has a target to act upon |
protected void |
setTarget(java.lang.Object target)
Deprecated. This method is called by the MouseController when it has returned a target (say from a mousePressed event) and the Controller sets the target that the MouseResponder will then respond to. |
protected void |
setTargetSpace(java.lang.Object s)
Deprecated. The MouseController asks its MouseResponder if the space it has been added to is an appropriate Space for the MouseResponder to deal with. |
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 keysMouseResponder.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 keysMouseResponder.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 keysMouseResponder.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 keysMouseResponder.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 keysMouseResponder.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 keysMouseResponder.kAnyMouseEvent
protected void setTargetSpace(java.lang.Object s)
setTargetSpace
in class MouseResponder
s
- the Space to which the responder's controller has been added.protected void setTarget(java.lang.Object target)
setTarget
in class MouseResponder
target
- the object that is the selected target of the MouseEventprotected void removeTarget()
removeTarget
in class MouseResponder
public java.lang.Object getSpace()
public java.lang.Object getTarget()
public boolean isAppropriate(java.lang.Object object)
isAppropriate
in class MouseResponder
object
- the object to testpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in class MouseResponder
e
- the MouseEvent that triggered this eventpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in class MouseResponder
e
- the MouseEvent that triggered this eventpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in class MouseResponder
e
- the MouseEvent that triggered this eventpublic void mouseEnteredTarget(java.awt.event.MouseEvent e)
mouseEnteredTarget
in class MouseResponder
e
- the MouseEvent that triggered this eventpublic void mouseExitedTarget(java.awt.event.MouseEvent e)
mouseExitedTarget
in class MouseResponder
e
- the MouseEvent that triggered this eventpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in class MouseResponder
e
- the MouseEvent that triggered this eventpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in class MouseResponder
e
- the MouseEvent that triggered this eventpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in class MouseResponder
e
- the MouseEvent that triggered this eventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in class MouseResponder
e
- 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |