|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.croftsoft.apps.tag3d.Tag3DStateManager
public class Tag3DStateManager
Bidirectional routing of Transform3DState updates.
Field Summary | |
---|---|
protected String |
id
|
protected Map |
stateMap
|
protected StateMulticaster |
stateMulticaster
|
protected Tag3DWorld |
tag3DWorld
|
Constructor Summary | |
---|---|
Tag3DStateManager(StateMulticaster stateMulticaster,
Tag3DWorld tag3DWorld,
String id)
Establishes the objects for bidirectional communication. |
|
Tag3DStateManager(Tag3DWorld tag3DWorld,
String id)
this ( new QueuedStateMulticaster ( ), tag3DWorld, id ); |
Method Summary | |
---|---|
boolean |
addStateListener(StateListener stateListener)
|
boolean |
removeStateListener(StateListener stateListener)
|
void |
setupRemote(String remoteName)
Sets up this Tag3DStateManager object to use a remote StateMulticaster and subscribes itself as a remote StateListener. |
void |
stateListen(State state)
Handles Transform3DState update events from the StateMulticaster. |
void |
update(State state)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map stateMap
protected StateMulticaster stateMulticaster
protected Tag3DWorld tag3DWorld
protected String id
Constructor Detail |
---|
public Tag3DStateManager(StateMulticaster stateMulticaster, Tag3DWorld tag3DWorld, String id)
stateMulticaster
- All of Tag3DStateManager StateMulticaster interface method calls
are relayed to the StateMulticaster implementation provided by
this argument.tag3DWorld
- Updated when the State events are received via the StateListener
method.id
- The unique identifier for this particular client.public Tag3DStateManager(Tag3DWorld tag3DWorld, String id)
Method Detail |
---|
public void stateListen(State state)
stateListen
in interface StateListener
public void update(State state)
update
in interface StateMulticaster
public boolean addStateListener(StateListener stateListener)
addStateListener
in interface StateMulticaster
public boolean removeStateListener(StateListener stateListener)
removeStateListener
in interface StateMulticaster
public void setupRemote(String remoteName)
If the remote StateMulticaster cannot be contacted, an attempt will be made to establish this Tag3DStateManager object as the remote StateMulticaster.
remoteName
- The RMI URL of the remote StateMulticaster.
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |