📄 ticklelist.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Mon Jul 15 11:49:45 PDT 2002 -->
<TITLE>
: Class TickleList
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TickleList.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../quicktime/app/actions/SimpleActionList.html"><B>PREV CLASS</B></A>
<A HREF="../../../quicktime/app/actions/TickleNode.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="TickleList.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
quicktime.app.actions</FONT>
<BR>
Class TickleList</H2>
<PRE>
java.lang.Object
|
+--<B>quicktime.app.actions.TickleList</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A>, <A HREF="../../../quicktime/app/spaces/CollectionController.html">CollectionController</A>, <A HREF="../../../quicktime/app/spaces/Controller.html">Controller</A>, <A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A>, <A HREF="../../../quicktime/app/spaces/TicklishController.html">TicklishController</A></DD>
</DL>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../quicktime/app/actions/SimpleActionList.html">SimpleActionList</A></DD>
</DL>
<HR>
<DL>
<DT>public class <B>TickleList</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../quicktime/app/spaces/TicklishController.html">TicklishController</A>, <A HREF="../../../quicktime/app/spaces/CollectionController.html">CollectionController</A></DL>
<P>
An TickleList is a list that contains Ticklish members. Each time the TickleList
is tickled (it itself implements the Ticklish interface and can be a member of a
TickleList) it will tickle all of its members. If the member's tickle method returns
true the Ticklish member is kept active. If the tickle method returns false the
member must be re-enabled for it to be tickled. A TickleList's tickle method will
return false if the list is empty.
<P>
Members of a TickleList are kept in a TickleNode object which is where the active
state of the node is kept. This information is only relevant for the list itself.
When a Ticklish member is added to a TickleList the addMember method calls the
makeTickleNode method. A subclass can define this method to make a subclass of
TickleNode to store extra information about Ticklish members in a TickleList.
<P>
A singly-linked list is used to implement the TickleList. A list is used
for fast iteration through the list whenever the tickle method is called.
Insertion and Removal of members is of course a more expensive operation.
<P>
The TickleList also implements the TicklishController interface thus
enabling it to be added to a Space as a controller for objects in that
space. It implements the Collection interface to indicate that it
contains a collection of objects. The TicklishController aspect of
the TickleList is generally used to schedule PeriodicActions that control
required aspects of the Space's members.
<P>
<HR>
<P>
<!-- ======== INNER CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../../../quicktime/app/actions/TickleNode.html">TickleNode</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#list">list</A></B></CODE>
<BR>
This TickleNode is the head of the singly-linked list.</TD>
</TR>
</TABLE>
<A NAME="fields_inherited_from_class_quicktime.app.time.Ticklish"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Fields inherited from interface quicktime.app.time.<A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../quicktime/app/time/Ticklish.html#kScale">kScale</A></CODE></TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#TickleList()">TickleList</A></B>()</CODE>
<BR>
Construct an empty TickleList.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#addedToSpace(quicktime.app.spaces.Space)">addedToSpace</A></B>(<A HREF="../../../quicktime/app/spaces/Space.html">Space</A> s)</CODE>
<BR>
This method is called by the Space when a Controller is being addedTo the Space s.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#addMember(java.lang.Object)">addMember</A></B>(java.lang.Object member)</CODE>
<BR>
Adds an object to the collection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../quicktime/app/actions/TickleNode.html">TickleNode</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#findNode(java.lang.Object)">findNode</A></B>(java.lang.Object object)</CODE>
<BR>
This method returns the TickleNode that corresponds to the member object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#hasMember(java.lang.Object)">hasMember</A></B>(java.lang.Object object)</CODE>
<BR>
Returns true if the provided object is a member of the collection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#isAppropriate(java.lang.Object)">isAppropriate</A></B>(java.lang.Object object)</CODE>
<BR>
Returns true if the provided object is an appropriate candidate for
membership in a collection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#isEmpty()">isEmpty</A></B>()</CODE>
<BR>
Returns true if the collection contains no members, or false if
it has one or more members.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#isMemberActive(quicktime.app.time.Ticklish)">isMemberActive</A></B>(<A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A> member)</CODE>
<BR>
Returns the current active state of the supplied member.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#isWholespace()">isWholespace</A></B>()</CODE>
<BR>
Returns the current setting of the wholespace flag.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../../../quicktime/app/actions/TickleNode.html">TickleNode</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#makeTickleNode(quicktime.app.time.Ticklish)">makeTickleNode</A></B>(<A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A> t)</CODE>
<BR>
Used by the addMember method to make a TickleNode that holds the
supplied Ticklish object in the TickleList.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#members()">members</A></B>()</CODE>
<BR>
Return an Enumeration that is capable of enumerating through
the actions that have been added to the action list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#nodes()">nodes</A></B>()</CODE>
<BR>
Returns an Enumeration that is capable of enumerating over the nodes of
a list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#removedFromSpace()">removedFromSpace</A></B>()</CODE>
<BR>
Called by the Space when a Controller is being removed
from a Space.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#removeMember(java.lang.Object)">removeMember</A></B>(java.lang.Object member)</CODE>
<BR>
If the object is a member of the collection it is removed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#setMemberActive(quicktime.app.time.Ticklish, boolean)">setMemberActive</A></B>(<A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A> member,
boolean flag)</CODE>
<BR>
Sets the active state of a member of the Ticklish list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#setWholespace(boolean)">setWholespace</A></B>(boolean flag)</CODE>
<BR>
This sets the wholespace characteristic.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#size()">size</A></B>()</CODE>
<BR>
Returns the number of members in the collection, ie.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#tickle(float, int)">tickle</A></B>(float effectiveRate,
int currentTime)</CODE>
<BR>
The Timer invokes the tickle method when the invocation constraints of
the Timer are reached.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#timeChanged(int)">timeChanged</A></B>(int newTime)</CODE>
<BR>
Invoked by the timer when a time condition of its time base has changed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../quicktime/app/actions/TickleList.html#toString()">toString</A></B>()</CODE>
<BR>
Returns a string representation of this class.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="list"><!-- --></A><H3>
list</H3>
<PRE>
protected <A HREF="../../../quicktime/app/actions/TickleNode.html">TickleNode</A> <B>list</B></PRE>
<DL>
<DD>This TickleNode is the head of the singly-linked list. If this member
is null then the list is empty.</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="TickleList()"><!-- --></A><H3>
TickleList</H3>
<PRE>
public <B>TickleList</B>()</PRE>
<DL>
<DD>Construct an empty TickleList.</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="addedToSpace(quicktime.app.spaces.Space)"><!-- --></A><H3>
addedToSpace</H3>
<PRE>
public void <B>addedToSpace</B>(<A HREF="../../../quicktime/app/spaces/Space.html">Space</A> s)</PRE>
<DL>
<DD>This method is called by the Space when a Controller is being addedTo the Space s.
If the Controller is not an appropriate controller for that kind of Space this
method can throw an exception and the controller won't be added to the Space.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Controller.html#addedToSpace(quicktime.app.spaces.Space)">addedToSpace</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Controller.html">Controller</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - the Space being added to</DL>
</DD>
</DL>
<HR>
<A NAME="removedFromSpace()"><!-- --></A><H3>
removedFromSpace</H3>
<PRE>
public void <B>removedFromSpace</B>()</PRE>
<DL>
<DD>Called by the Space when a Controller is being removed
from a Space. This is only called by the Space on controllers that have
previously been added, thus the space they are being removed from
is the space they were added to.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Controller.html#removedFromSpace()">removedFromSpace</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Controller.html">Controller</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="timeChanged(int)"><!-- --></A><H3>
timeChanged</H3>
<PRE>
public void <B>timeChanged</B>(int newTime)
throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE>
<DL>
<DD>Invoked by the timer when a time condition of its time base has changed.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/time/Ticklish.html#timeChanged(int)">timeChanged</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>the</CODE> - newTime of the time base resulting from the changed time line
of the timer</DL>
</DD>
</DL>
<HR>
<A NAME="tickle(float, int)"><!-- --></A><H3>
tickle</H3>
<PRE>
public boolean <B>tickle</B>(float effectiveRate,
int currentTime)
throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE>
<DL>
<DD>The Timer invokes the tickle method when the invocation constraints of
the Timer are reached.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/time/Ticklish.html#tickle(float, int)">tickle</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>er</CODE> - the effective rate of the Timer when the time condition matches<DD><CODE>time</CODE> - the time that the Timer invoked the tickle method.</DL>
</DD>
</DL>
<HR>
<A NAME="members()"><!-- --></A><H3>
members</H3>
<PRE>
public java.util.Enumeration <B>members</B>()</PRE>
<DL>
<DD>Return an Enumeration that is capable of enumerating through
the actions that have been added to the action list. The objects
of this enumeration are the Ticklish members.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#members()">members</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>an Enumeration object</DL>
</DD>
</DL>
<HR>
<A NAME="isEmpty()"><!-- --></A><H3>
isEmpty</H3>
<PRE>
public boolean <B>isEmpty</B>()</PRE>
<DL>
<DD>Returns true if the collection contains no members, or false if
it has one or more members.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#isEmpty()">isEmpty</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a boolean</DL>
</DD>
</DL>
<HR>
<A NAME="size()"><!-- --></A><H3>
size</H3>
<PRE>
public int <B>size</B>()</PRE>
<DL>
<DD>Returns the number of members in the collection, ie. the collection's size.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#size()">size</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the size of the collection.</DL>
</DD>
</DL>
<HR>
<A NAME="addMember(java.lang.Object)"><!-- --></A><H3>
addMember</H3>
<PRE>
public boolean <B>addMember</B>(java.lang.Object member)
throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE>
<DL>
<DD>Adds an object to the collection. Returns true if the object is
appropriate member of the collection (and thus added) and false if not.
The candidate member must implement the Ticklish interface.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#addMember(java.lang.Object)">addMember</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>member</CODE> - the object that should be added as a member to the collection<DT><B>Returns:</B><DD>a boolean.</DL>
</DD>
</DL>
<HR>
<A NAME="makeTickleNode(quicktime.app.time.Ticklish)"><!-- --></A><H3>
makeTickleNode</H3>
<PRE>
protected <A HREF="../../../quicktime/app/actions/TickleNode.html">TickleNode</A> <B>makeTickleNode</B>(<A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A> t)</PRE>
<DL>
<DD>Used by the addMember method to make a TickleNode that holds the
supplied Ticklish object in the TickleList. Subclasses can
subclass the TickleNode and return their subclass if required.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>t</CODE> - the new Ticklish member of the list.<DT><B>Returns:</B><DD>the TickleNode that is used to hold the Ticklish member in the list</DL>
</DD>
</DL>
<HR>
<A NAME="setMemberActive(quicktime.app.time.Ticklish, boolean)"><!-- --></A><H3>
setMemberActive</H3>
<PRE>
public void <B>setMemberActive</B>(<A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A> member,
boolean flag)</PRE>
<DL>
<DD>Sets the active state of a member of the Ticklish list.
This state is only viable whilst the supplied member is a member
of the list.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>member</CODE> - the member of the list.<DD><CODE>flag</CODE> - if true the member is active and will be tickled, if false
it is inactive and it won't be tickled when the list is tickled.</DL>
</DD>
</DL>
<HR>
<A NAME="isMemberActive(quicktime.app.time.Ticklish)"><!-- --></A><H3>
isMemberActive</H3>
<PRE>
public boolean <B>isMemberActive</B>(<A HREF="../../../quicktime/app/time/Ticklish.html">Ticklish</A> member)</PRE>
<DL>
<DD>Returns the current active state of the supplied member.
If the member is not a member of the list this call returns false.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>member</CODE> - a Ticklish member of this list<DT><B>Returns:</B><DD>a boolean indicative the active state of the member</DL>
</DD>
</DL>
<HR>
<A NAME="hasMember(java.lang.Object)"><!-- --></A><H3>
hasMember</H3>
<PRE>
public boolean <B>hasMember</B>(java.lang.Object object)</PRE>
<DL>
<DD>Returns true if the provided object is a member of the collection.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#hasMember(java.lang.Object)">hasMember</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>member</CODE> - the object to test for membership<DT><B>Returns:</B><DD>a boolean</DL>
</DD>
</DL>
<HR>
<A NAME="findNode(java.lang.Object)"><!-- --></A><H3>
findNode</H3>
<PRE>
public <A HREF="../../../quicktime/app/actions/TickleNode.html">TickleNode</A> <B>findNode</B>(java.lang.Object object)</PRE>
<DL>
<DD>This method returns the TickleNode that corresponds to the member object.
If the object is not a member this returns null.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a TickleNode</DL>
</DD>
</DL>
<HR>
<A NAME="nodes()"><!-- --></A><H3>
nodes</H3>
<PRE>
public java.util.Enumeration <B>nodes</B>()</PRE>
<DL>
<DD>Returns an Enumeration that is capable of enumerating over the nodes of
a list.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>an Enumeration</DL>
</DD>
</DL>
<HR>
<A NAME="removeMember(java.lang.Object)"><!-- --></A><H3>
removeMember</H3>
<PRE>
public void <B>removeMember</B>(java.lang.Object member)</PRE>
<DL>
<DD>If the object is a member of the collection it is removed.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#removeMember(java.lang.Object)">removeMember</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>member</CODE> - the object to remove from the collection</DL>
</DD>
</DL>
<HR>
<A NAME="isAppropriate(java.lang.Object)"><!-- --></A><H3>
isAppropriate</H3>
<PRE>
public boolean <B>isAppropriate</B>(java.lang.Object object)</PRE>
<DL>
<DD>Returns true if the provided object is an appropriate candidate for
membership in a collection. The object must implement the Ticklish interface.
Subclasses can refine this test to ensure a specialized type of Ticklish
interface.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/Collection.html#isAppropriate(java.lang.Object)">isAppropriate</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/Collection.html">Collection</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>object</CODE> - the object to test<DT><B>Returns:</B><DD>true if the supplied object implements the Ticklish interface.</DL>
</DD>
</DL>
<HR>
<A NAME="isWholespace()"><!-- --></A><H3>
isWholespace</H3>
<PRE>
public boolean <B>isWholespace</B>()</PRE>
<DL>
<DD>Returns the current setting of the wholespace flag.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../quicktime/app/spaces/CollectionController.html#isWholespace()">isWholespace</A></CODE> in interface <CODE><A HREF="../../../quicktime/app/spaces/CollectionController.html">CollectionController</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true if any member of the Space is a candidate for being controlled
by this controller. If false then objects must be explicitly added to
the space.</DL>
</DD>
</DL>
<HR>
<A NAME="setWholespace(boolean)"><!-- --></A><H3>
setWholespace</H3>
<PRE>
public void <B>setWholespace</B>(boolean flag)</PRE>
<DL>
<DD>This sets the wholespace characteristic. If the TickleList is added to a
Space and wholspace is true, then the Space will query the list with existing
and new members, and if appropriate, they will be added as members to this
Controller.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>flag</CODE> - the wholespace flag<DT><B>See Also: </B><DD><A HREF="../../../quicktime/app/spaces/CollectionController.html"><CODE>CollectionController</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Returns a string representation of this class.<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a String</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TickleList.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../quicktime/app/actions/SimpleActionList.html"><B>PREV CLASS</B></A>
<A HREF="../../../quicktime/app/actions/TickleNode.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="TickleList.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -