|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapp.spa.EDTState
public class EDTState
The internal state of the SiGMLPlayerApplet
's event
dispatch thread, represented as a set of StateFlag
s.
(This would be a subclass of EnumSet<StateFlag>
were the
latter not an abstract class.)
Constructor Summary | |
---|---|
EDTState()
Constructs a new state with no flags and no logger. |
|
EDTState(Logger logger)
Constructs a new state with no flags, and using the given logger (which may be null if logging is not required). |
Method Summary | |
---|---|
boolean |
has(StateFlag s)
Indicates whether this state has the given flag. |
boolean |
hasBasicPlay()
Indicates whether this state is one in which animation is is progress. |
boolean |
hasBoth(StateFlag s0,
StateFlag s1)
Indicates whether this state has both the given flags. |
boolean |
hasSome(java.util.EnumSet<StateFlag> ss)
Indicates whether this state has at least one of the given flags. |
boolean |
hasSome(StateFlag s0,
StateFlag s1)
Indicates whether this state has at least one of the given flags. |
boolean |
hasSome(StateFlag s0,
StateFlag s1,
StateFlag s2)
Indicates whether this state has at least one of the given flags. |
boolean |
hasSteadyPlay()
Indicates whether this state is one in which an animation is being played, without a pending request to stop the player. |
void |
include(StateFlag s)
Adds the given flag to this state, if it is not already present, leaving all others unchanged. |
void |
logChange()
Records on this state's logger, if it has one, the change between the most recently logged state and the current state, provided the two states differ from one another. |
void |
oneOutOneIn(StateFlag sout,
StateFlag sin)
|
void |
remove(StateFlag s)
Removes the given flag from this state, if it is present, leaving all others unchanged. |
void |
removeAllPlaying()
Removes all currently included playing flags from this state, leaving all others unchanged. |
void |
setOnly(StateFlag s)
Ensures that this state includes the given flag but no others. |
void |
setPlayingSiGMLPiped()
|
void |
setPlayingSiGMLText()
Adjusts this state as required for a switch to playing a SiGML text. |
void |
setPlayingSiGMLURL()
Adjusts this state as required for a switch to playing a SiGML URL. |
java.lang.String |
toString()
Returns a string representation of this state, with one character per flag: an underscore if the flag is not present, the flag's tag character if it is. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EDTState()
public EDTState(Logger logger)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean has(StateFlag s)
public boolean hasBoth(StateFlag s0, StateFlag s1)
public boolean hasSome(StateFlag s0, StateFlag s1)
public boolean hasSome(StateFlag s0, StateFlag s1, StateFlag s2)
public boolean hasSome(java.util.EnumSet<StateFlag> ss)
public boolean hasBasicPlay()
public boolean hasSteadyPlay()
public void remove(StateFlag s)
public void setOnly(StateFlag s)
public void include(StateFlag s)
public void oneOutOneIn(StateFlag sout, StateFlag sin)
public void setPlayingSiGMLURL()
public void setPlayingSiGMLText()
public void setPlayingSiGMLPiped()
public void removeAllPlaying()
public void logChange()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |