|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--quicktime.app.actions.MouseController
|
+--quicktime.app.anim.SWController
The SWController deals with SpriteWorldHitTest calls on the SpriteWorld that is contained by the SWCompositor's sub classes. By default it will do hit testing on the actual sprite image itself. However, an application can set the hit-test flags to support any mode of hit testing appropriate.
QTMouseController| Field Summary |
| Fields inherited from class quicktime.app.actions.MouseController |
xLocationOffset, yLocationOffset |
| Constructor Summary | |
SWController(MouseResponder mr,
boolean wholeSpace)
Deprecated. since QTJava 6.1 |
|
SWController(MouseResponder mr,
boolean wholeSpace,
int flags)
Deprecated. since QTJava 6.1 |
|
| Method Summary | |
protected void |
deactivateResponder()
Deprecated. since QTJava 6.1 |
int |
getFlags()
Deprecated. Returns the flags that control the hit test parameters on the SpriteWorld. |
protected java.lang.Object |
getSelected(java.awt.event.MouseEvent event)
Deprecated. since QTJava 6.1 |
Space |
getSpace()
Deprecated. since QTJava 6.1 |
protected void |
responderActivated()
Deprecated. since QTJava 6.1 |
void |
setFlags(int flags)
Deprecated. Set the flags for controlling the hit test behaviour of the SpriteWorld.* @deprecated since QTJava 6.1 |
protected void |
setTargetSpace(Space target)
Deprecated. since QTJava 6.1 |
protected void |
setTranslation()
Deprecated. since QTJava 6.1 |
| Methods inherited from class quicktime.app.actions.MouseController |
addedTo, addedToSpace, addMember, doDragTarget, getResponder, hasMember, isAppropriate, isEmpty, isWholespace, members, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, removedFrom, removedFromSpace, removeMember, setWholespace, size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SWController(MouseResponder mr,
boolean wholeSpace)
mr - the Responder that will respond to mouse events when a sprite is hit.wholeSpace - if true all object that are in the space will be dragged. If false
then you must explicitly add the object to the controller.
public SWController(MouseResponder mr,
boolean wholeSpace,
int flags)
mr - the Responder that will respond to mouse events when a sprite is hit.wholeSpace - if true all object that are in the space will be dragged. If false
then you must explicitly add the object to the controller.flags - that will control the hit test parameters of the SpriteWorld| Method Detail |
public Space getSpace()
getSpace in class MouseControllerprotected void setTargetSpace(Space target)
setTargetSpace in class MouseControllertarget - the potential target space for the SWController.public int getFlags()
public void setFlags(int flags)
protected void deactivateResponder()
deactivateResponder in class MouseControllerprotected void responderActivated()
responderActivated in class MouseControllerprotected void setTranslation()
The method sets the value of the protected instance variables xLocationOffset and yLocation offset.
setTranslation in class MouseController
protected java.lang.Object getSelected(java.awt.event.MouseEvent event)
throws QTException
getSelected in class MouseControllerevent - a mouse down event
QTException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||