|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--quicktime.app.spaces.SimpleSpace
|
+--quicktime.app.anim.SWCompositor
|
+--quicktime.app.anim.Compositor
The Compositor uses the SpriteWorld compositing services of the SWCompositor to composit an image out of its member objects. The member object of a Compositor is required to at least implement the ImageSpec interface. In which case the Compositor will create the TwoDSprite that presents that image data in its display space. If a TwoDSprite itself is added to the Compositor it is added directly as a member (as TwoDSprite implements the ImageSpec interface.
| Field Summary | |
protected java.util.Hashtable |
membersTable
Deprecated. since QTJava 6.1 |
protected java.util.Hashtable |
spritesTable
Deprecated. since QTJava 6.1 |
| Fields inherited from class quicktime.app.anim.SWCompositor |
hitTestFlag, taskFlag |
| Fields inherited from class quicktime.app.spaces.SimpleSpace |
containedSpaces, controllersVec, ticklers, timer |
| Fields inherited from interface quicktime.app.time.Ticklish |
kScale |
| Constructor Summary | |
|
Compositor(QDGraphics spriteGWorld,
QDColor backgroundColor)
Deprecated. since QTJava 6.1 |
|
Compositor(QDGraphics spriteGWorld,
QDColor backgroundColor,
int scale,
int period)
Deprecated. since QTJava 6.1 |
|
Compositor(QDGraphics spriteGWorld,
QDColor backgroundColor,
QDGraphics background)
Deprecated. since QTJava 6.1 |
|
Compositor(QDGraphics spriteGWorld,
QDColor backgroundColor,
QDGraphics background,
int scale,
int period)
Deprecated. since QTJava 6.1 |
protected |
Compositor(QDGraphics spriteGWorld,
QDColor backgroundColor,
QDGraphics background,
int scale,
int period,
Protocol defaultProtocol)
Deprecated. since QTJava 6.1 |
| Method Summary | |
boolean |
addMember(java.lang.Object member)
Deprecated. since QTJava 6.1 |
boolean |
addMember(java.lang.Object member,
int layer)
Deprecated. since QTJava 6.1 |
boolean |
addMember(java.lang.Object member,
int layer,
boolean initiallyVisible)
Deprecated. since QTJava 6.1 |
int |
getBackLayer()
Deprecated. since QTJava 6.1 |
int |
getFrontLayer()
Deprecated. since QTJava 6.1 |
TwoDSprite |
getMemberSprite(java.lang.Object member)
Deprecated. since QTJava 6.1 |
java.lang.Object |
getSpriteMember(TwoDSprite sprite)
Deprecated. since QTJava 6.1 |
boolean |
isEmpty()
Deprecated. since QTJava 6.1 |
java.util.Enumeration |
members()
Deprecated. since QTJava 6.1 |
void |
removeMember(java.lang.Object member)
Deprecated. since QTJava 6.1 |
int |
size()
Deprecated. since QTJava 6.1 |
java.util.Enumeration |
sprites()
Deprecated. since QTJava 6.1 |
| Methods inherited from class quicktime.app.spaces.SimpleSpace |
addController, addedTo, controllers, finalize, getProtocol, getSource, getTimer, hasMember, isAppropriate, memberAdded, memberRemoved, removeAllControllers, removeAllMembers, removeController, removedFrom, tickleList, timeChanged |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface quicktime.app.spaces.Listener |
addedTo, removedFrom |
| Methods inherited from interface quicktime.app.spaces.Space |
addController, controllers, getSource, getTimer, removeController, tickleList |
| Methods inherited from interface quicktime.app.spaces.DynamicCollection |
getProtocol |
| Methods inherited from interface quicktime.app.spaces.Collection |
hasMember, isAppropriate |
| Methods inherited from interface quicktime.app.time.Ticklish |
timeChanged |
| Field Detail |
protected java.util.Hashtable membersTable
protected java.util.Hashtable spritesTable
| Constructor Detail |
public Compositor(QDGraphics spriteGWorld,
QDColor backgroundColor)
throws QTException
spriteGWorld - Specifies the sprites offscreen QDGraphics. The size of this QDGraphics
determines the corresponding display size when the SpriteWorld is added to its display surface.backgroundColor - Specifies the background color.
public Compositor(QDGraphics spriteGWorld,
QDColor backgroundColor,
QDGraphics background)
throws QTException
spriteGWorld - Specifies the sprites offscreen QDGraphics. The size of this QDGraphics
determines the corresponding display size when the SpriteWorld is added to its display surface.backgroundColor - Specifies the background color.background - Specifies the background QDGraphics to be used to composit background sprites into.
This will give better performance if the sprites in front of the background are changing.
public Compositor(QDGraphics spriteGWorld,
QDColor backgroundColor,
int scale,
int period)
throws QTException
spriteGWorld - Specifies the sprites offscreen QDGraphics. The size of this QDGraphics
determines the corresponding display size when the SpriteWorld is added to its display surface.backgroundColor - Specifies the background color.scale - the amount with which a second is divided into at a rate of oneperiod - the number of scale ticks that elapse between invocations of the action.
public Compositor(QDGraphics spriteGWorld,
QDColor backgroundColor,
QDGraphics background,
int scale,
int period)
throws QTException
spriteGWorld - Specifies the sprites offscreen QDGraphics. The size of this QDGraphics
determines the corresponding display size when the SpriteWorld is added to its display surface.backgroundColor - Specifies the background color.background - Specifies the background QDGraphics to be used to composit background sprites into.
This will give better performance if the sprites in front of the background are changing.scale - the amount with which a second is divided into at a rate of oneperiod - the number of scale ticks that elapse between invocations of the action.
protected Compositor(QDGraphics spriteGWorld,
QDColor backgroundColor,
QDGraphics background,
int scale,
int period,
Protocol defaultProtocol)
throws QTException
spriteGWorld - this the buffer which the internal SpriteWorld uses to composit its image into.background - Specifies the background QDGraphics to be used to composit background sprites into.
This will give better performance if the sprites in front of the background are changing.backgroundColor - this is background color that can be supplied to the SpriteWorldscale - the initial scale of the Space's timerperiod - the initial period of the Space's timerdefaultProtocol - the minimal Protocol that members of the SWCompositor must meet| Method Detail |
public java.util.Enumeration members()
public java.util.Enumeration sprites()
sprites in class SWCompositorpublic boolean isEmpty()
public TwoDSprite getMemberSprite(java.lang.Object member)
getMemberSprite in class SWCompositormember - the member object
public java.lang.Object getSpriteMember(TwoDSprite sprite)
getSpriteMember in class SWCompositorsprite - the TwoDSprite presenter
public boolean addMember(java.lang.Object member)
throws QTException
addMember in interface CollectionaddMember in class SimpleSpacemember - the object to add.
QTException
public boolean addMember(java.lang.Object member,
int layer)
throws QTException
member - the object to add.layer - the layer within the Compositor that the member will be presented at.
QTException
public boolean addMember(java.lang.Object member,
int layer,
boolean initiallyVisible)
throws QTException
member - the object to add.layer - the layer within the Compositor that the member will be presented at.initiallyVisible - if true the member is intially visible.
QTExceptionpublic int size()
public int getFrontLayer()
throws QTException
QTException
public int getBackLayer()
throws QTException
QTException
public void removeMember(java.lang.Object member)
throws QTException
removeMember in interface CollectionremoveMember in class SimpleSpacemember - the member to remove
QTException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||