|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.app.event.QTMouseController
A QTMouseController is attached to a Space. When the space is added to its container (for instance a QTCanvas in the case of QTDisplaySpaces) it will create an event dispatcher that will translate these container events to the QTMouseEvents that this controller distributes to its registered listeners.
Once created and attached to a space the program registers listeners with the controller based on the type of mouse events a particular task requires. The type of the registered listeners will determine the type of mouse events that the controller will handle.
for mouse events that
target a member of the source space.| Field Summary | |
protected Space |
space
Deprecated. since QTJava 6.1 |
| Constructor Summary | |
QTMouseController()
Deprecated. since QTJava 6.1 |
|
| Method Summary | |
void |
addedTo(java.lang.Object interest)
Deprecated. since QTJava 6.1 |
void |
addedToSpace(Space s)
Deprecated. since QTJava 6.1 |
protected void |
addHandler()
Deprecated. since QTJava 6.1 |
void |
addQTMouseListener(QTMouseListener l)
Deprecated. since QTJava 6.1 |
protected void |
doMouseClicked(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
protected void |
doMouseDragged(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
protected void |
doMouseEntered(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
protected void |
doMouseExited(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
protected void |
doMouseMoved(QTMouseEvent e,
boolean isWithinItsSpace)
Deprecated. since QTJava 6.1 |
protected void |
doMousePressed(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
protected void |
doMouseReleased(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
Space |
getSpace()
Deprecated. since QTJava 6.1 |
void |
mouseClicked(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseDragged(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseEntered(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseExited(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseMoved(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mousePressed(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
void |
mouseReleased(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
protected void |
removeActiveHandler()
Deprecated. since QTJava 6.1 |
void |
removedFrom(java.lang.Object interest)
Deprecated. since QTJava 6.1 |
void |
removedFromSpace()
Deprecated. since QTJava 6.1 |
void |
removeQTMouseListener(QTMouseListener l)
Deprecated. since QTJava 6.1 |
protected boolean |
translateAndIsWithin(QTMouseEvent e)
Deprecated. since QTJava 6.1 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Space space
| Constructor Detail |
public QTMouseController()
| Method Detail |
public Space getSpace()
public void addedToSpace(Space s)
addedToSpace in interface Controllers - the Space being added tosetTargetSpace()public void removedFromSpace()
removedFromSpace in interface Controllerpublic void addedTo(java.lang.Object interest)
addedTo in interface Listenerinterest - the object that is to be the source of interest for the
the object that implements this interface.public void removedFrom(java.lang.Object interest)
removedFrom in interface Listenerinterest - the object that was the source of interest for the
the object that implements this interface.protected void addHandler()
protected void removeActiveHandler()
protected boolean translateAndIsWithin(QTMouseEvent e)
If the event is located within the space the coordinates of the event will be translated into the local coordinates of the space, with the top, left point of the space being 0,0. Returning true will also indicate that this translation has been done on the event coordinates.
e - the mouse event
public void addQTMouseListener(QTMouseListener l)
l - a new QTMouseListenerpublic void removeQTMouseListener(QTMouseListener l)
l - a new QTMouseListenerpublic void mouseClicked(QTMouseEvent e)
e - the QTMouseEvent of this type.protected void doMouseClicked(QTMouseEvent e)
e - the mouse eventpublic void mousePressed(QTMouseEvent e)
e - the QTMouseEvent of this type.protected void doMousePressed(QTMouseEvent e)
e - the translated mouse eventpublic void mouseReleased(QTMouseEvent e)
e - the QTMouseEvent of this type.protected void doMouseReleased(QTMouseEvent e)
e - the translated mouse eventpublic void mouseDragged(QTMouseEvent e)
e - the QTMouseEvent of this type.protected void doMouseDragged(QTMouseEvent e)
e - the translated mouse eventpublic void mouseMoved(QTMouseEvent e)
e - the QTMouseEvent of this type.
protected void doMouseMoved(QTMouseEvent e,
boolean isWithinItsSpace)
e - the translated mouse eventisWithinItsSpace - if true the mouse moved event is within the enclosing space. If false
it isn't.public void mouseEntered(QTMouseEvent e)
e - the QTMouseEvent of this type.protected void doMouseEntered(QTMouseEvent e)
e - the translated mouse eventpublic void mouseExited(QTMouseEvent e)
e - the QTMouseEvent of this type.protected void doMouseExited(QTMouseEvent e)
e - the translated mouse event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||