|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.app.spaces.SimpleSpace
SimpleSpace provides a default reference implementation of the Space interface. The following actions are taken by the SimpleSpace class when members or controllers are added to the Space.
The SimpleSpace has no knowledge or implementation of the type of collection that is used to hold the collection of members. It is a delegated responsibility of the subclass to implement the Collection methods. There are two protected methods that the subclass should call after they have successfully added or removed a member - memberAdded and memberRemoved respectively. These methods ensure the behaviour of members as outlined.
quicktime.app.display.SWCompositor,
GroupDrawable| Field Summary | |
protected java.util.Vector |
containedSpaces
Deprecated. This vector is used to collect any Spaces that are added as members to this Space* @deprecated since QTJava 6.1 |
protected java.util.Vector |
controllersVec
Deprecated. This vector is used to collect the Controllers that are added to the Space* @deprecated since QTJava 6.1 |
protected TickleList |
ticklers
Deprecated. This TickleList is used to collect any ticklish controllers that are added to the Space* @deprecated since QTJava 6.1 |
protected Timer |
timer
Deprecated. This is the Timer that both provides a TimeBase for the Space and tickles the Space based on the scale and period of the Timer* @deprecated since QTJava 6.1 |
| Fields inherited from interface quicktime.app.time.Ticklish |
kScale |
| Constructor Summary | |
protected |
SimpleSpace(Protocol protocols)
Deprecated. since QTJava 6.1 |
protected |
SimpleSpace(Protocol protocols,
int scale,
int period)
Deprecated. since QTJava 6.1 |
| Method Summary | |
void |
addController(Controller c)
Deprecated. since QTJava 6.1 |
void |
addedTo(java.lang.Object interest)
Deprecated. since QTJava 6.1 |
abstract boolean |
addMember(java.lang.Object member)
Deprecated. since QTJava 6.1 |
java.util.Enumeration |
controllers()
Deprecated. since QTJava 6.1 |
protected void |
finalize()
Deprecated. |
Protocol |
getProtocol()
Deprecated. since QTJava 6.1 |
java.lang.Object |
getSource()
Deprecated. since QTJava 6.1 |
Timer |
getTimer()
Deprecated. since QTJava 6.1 |
boolean |
hasMember(java.lang.Object object)
Deprecated. since QTJava 6.1 |
boolean |
isAppropriate(java.lang.Object object)
Deprecated. since QTJava 6.1 |
protected void |
memberAdded(java.lang.Object member)
Deprecated. since QTJava 6.1 |
protected void |
memberRemoved(java.lang.Object member)
Deprecated. since QTJava 6.1 |
void |
removeAllControllers()
Deprecated. since QTJava 6.1 |
void |
removeAllMembers()
Deprecated. since QTJava 6.1 |
void |
removeController(Controller c)
Deprecated. since QTJava 6.1 |
void |
removedFrom(java.lang.Object interest)
Deprecated. since QTJava 6.1 |
abstract void |
removeMember(java.lang.Object member)
Deprecated. since QTJava 6.1 |
boolean |
tickle(float er,
int time)
Deprecated. since QTJava 6.1 |
java.util.Enumeration |
tickleList()
Deprecated. since QTJava 6.1 |
void |
timeChanged(int newTime)
Deprecated. since QTJava 6.1 |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface quicktime.app.spaces.Collection |
isEmpty, members, size |
| Field Detail |
protected java.util.Vector controllersVec
protected java.util.Vector containedSpaces
protected TickleList ticklers
protected Timer timer
| Constructor Detail |
protected SimpleSpace(Protocol protocols)
throws QTException
This constructor does not create a Timer, the subclass must create a Timer in its constructor. This is provided so that subclasses can customise the Timer.
protocols - the Protocol that is enforced on candidate member objects of this space.Protocol,
Timer
protected SimpleSpace(Protocol protocols,
int scale,
int period)
throws QTException
protocols - the Protocol that is enforced on candidate member objects of this space.scale - the scale of the Space's Timer - this may NOT be zero.period - the period of the Space's Timer.Protocol,
Timer| Method Detail |
public void timeChanged(int newTime)
throws QTException
timeChanged in interface TicklishQTException
public boolean tickle(float er,
int time)
throws QTException
tickle in interface Ticklisher - the effective rate of the Timer when the time condition matchestime - the time that the Timer invoked the tickle method.
QTExceptionpublic java.util.Enumeration tickleList()
tickleList in interface Spacepublic java.lang.Object getSource()
getSource in interface Spacepublic Protocol getProtocol()
getProtocol in interface DynamicCollectionpublic boolean isAppropriate(java.lang.Object object)
isAppropriate in interface Collectionobject - the Object to test
DynamicCollection,
Protocolpublic boolean hasMember(java.lang.Object object)
hasMember in interface Collectionobject - the object to test for membership
public void addedTo(java.lang.Object interest)
addedTo in interface Listenerinterest - the object that is to be the source of interest for the
the Listener object.public void removedFrom(java.lang.Object interest)
removedFrom in interface Listenerinterest - the object that is to be the source of interest for the
the Listener object.
public void addController(Controller c)
throws QTException
addController in interface Spacec - the Controller to add to the Space.
QTException
public void removeController(Controller c)
throws QTException
removeController in interface Spacec - the Controller to remove from the Space.
QTExceptionpublic java.util.Enumeration controllers()
controllers in interface Spacepublic Timer getTimer()
getTimer in interface Space
public abstract boolean addMember(java.lang.Object member)
throws QTException
addMember in interface Collectionmember - the object that should be added as a member to the collection
QTException
public abstract void removeMember(java.lang.Object member)
throws QTException
removeMember in interface Collectionmember - the object to remove from the collection
QTException
protected void memberAdded(java.lang.Object member)
throws QTException
member - the object that has been added to the Space.
QTException
protected void memberRemoved(java.lang.Object member)
throws QTException
member - the object that has been added to the Space.
QTException
public void removeAllControllers()
throws QTException
QTException
public void removeAllMembers()
throws QTException
QTException
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||