|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.app.actions.MouseResponder
This class is an abstract class that is used to provide a base level functionality for objects that respond to Mouse events.
A responder responds to a mouse event based on three conditions being met.
A responder in turn has a target for many mouse events (click, press, drag, release). In these event types the responder is only activated if the controller finds a target where the mouse was pressed. A mouseRelease event may NOT have occured when the mouse was over the selected target, whereas a mouseClick event indicates that the mouse was pressed and released over a particular target within the system mouse click time.
Mouse move, enter and exit events do not have a target - they relate to the space within which the controller has a declared interest.
QTMouseController
Field Summary | |
static int |
kAnyModifiers
Deprecated. |
static int |
kAnyModifiersMask
Deprecated. |
static int |
kAnyMouseEvent
Deprecated. |
static int |
kAnyOneOfModifiers
Deprecated. |
static int |
kClickEvents
Deprecated. |
static int |
kDragEvents
Deprecated. |
static int |
kEnterEvents
Deprecated. |
static int |
kExitEvents
Deprecated. |
static int |
kModifiersDisregarded
Deprecated. |
static int |
kModifiersExactMatch
Deprecated. |
static int |
kMouseEvents
Deprecated. |
static int |
kMouseMotionEvents
Deprecated. |
static int |
kMouseOrMouseMotionEvents
Deprecated. |
static int |
kMoveEvents
Deprecated. |
static int |
kNoModifiers
Deprecated. |
static int |
kNoModifiersMask
Deprecated. |
static int |
kPressReleaseEvents
Deprecated. |
static int |
kQTMouseMotionEvents
Deprecated. |
static int |
kRolloverEvents
Deprecated. |
static int |
kSpecifiedModifiersOrNone
Deprecated. |
static int |
kTargetMoveEvents
Deprecated. |
int |
modifierKeyMask
Deprecated. The mask that is used to test which modifier keys will be regarded as valid |
int |
modifierTestConditions
Deprecated. The conditions of the modifier keys that will invoke an event |
Constructor Summary | |
protected |
MouseResponder(int modifierKeyMask,
int modifierTestConditions,
int eventTypes)
Deprecated. You pass in to this constructor the modifier keys and the conditions of the modifier test that will trigger the activation of the responder object. |
Method Summary | |
int |
activationEventType()
Deprecated. Returns the event which activated the responder. |
protected void |
deactivate()
Deprecated. A subclass can call this method to deactivate a responder. |
MouseController |
getMouseController()
Deprecated. Returns the MouseController that the responder is attached to. |
boolean |
isActive()
Deprecated. Returns true if the responder is currently active. |
abstract boolean |
isAppropriate(java.lang.Object object)
Deprecated. The MouseController delegates the appropriateness of objects that it can control to the MouseResponder. |
boolean |
isInterested(int eventType)
Deprecated. Returns true if the repsonder is interested in the specified event. |
boolean |
isInterested(int eventType,
int eventModifiers)
Deprecated. Returns true if the repsonder is interested in the specified event. |
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. |
protected abstract 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 abstract 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 abstract 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int kNoModifiersMask
public static final int kAnyModifiersMask
public static final int kNoModifiers
public static final int kAnyModifiers
public static final int kAnyOneOfModifiers
public static final int kModifiersDisregarded
public static final int kModifiersExactMatch
public static final int kSpecifiedModifiersOrNone
public static final int kClickEvents
public static final int kPressReleaseEvents
public static final int kDragEvents
public static final int kMoveEvents
public static final int kEnterEvents
public static final int kExitEvents
public static final int kTargetMoveEvents
public static final int kMouseEvents
public static final int kMouseMotionEvents
public static final int kQTMouseMotionEvents
public static final int kRolloverEvents
public static final int kMouseOrMouseMotionEvents
public static final int kAnyMouseEvent
public int modifierKeyMask
public int modifierTestConditions
Constructor Detail |
protected MouseResponder(int modifierKeyMask, int modifierTestConditions, int eventTypes)
modifierKeyMask
- the modifier key's maskmodifierTestConditions
- the test conditions under which the modifier mask is testedeventTypes
- the mouse events the responder will respond to. This is a read-only
property of the responder and determines the kinds of mouse events the responder responds to.Method Detail |
protected abstract void setTargetSpace(java.lang.Object s)
s
- the Space to which the responder's controller has been added.public MouseController getMouseController()
public boolean isInterested(int eventType)
eventType
- to test interestpublic boolean isInterested(int eventType, int eventModifiers)
eventType
- to test interesteventModifiers
- modifier keys of mouse eventprotected abstract void setTarget(java.lang.Object target)
target
- the object that is the selected target of the MouseEventprotected abstract void removeTarget()
public abstract boolean isAppropriate(java.lang.Object object)
object
- the object to testpublic int activationEventType()
public boolean isActive()
protected void deactivate()
public void mouseClicked(java.awt.event.MouseEvent e)
e
- the MouseEvent that triggered this eventpublic void mouseEntered(java.awt.event.MouseEvent e)
e
- the MouseEvent that triggered this eventpublic void mouseExited(java.awt.event.MouseEvent e)
e
- the MouseEvent that triggered this eventpublic void mouseEnteredTarget(java.awt.event.MouseEvent e)
e
- the MouseEvent that triggered this eventpublic void mouseExitedTarget(java.awt.event.MouseEvent e)
e
- the MouseEvent that triggered this eventpublic void mouseMoved(java.awt.event.MouseEvent e)
e
- the MouseEvent that triggered this eventpublic void mousePressed(java.awt.event.MouseEvent e)
e
- the MouseEvent that triggered this eventpublic void mouseDragged(java.awt.event.MouseEvent e)
e
- the MouseEvent that triggered this eventpublic void mouseReleased(java.awt.event.MouseEvent e)
e
- the MouseEvent that triggered this event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |