|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.DragRepresentationRegistry
TODO: comment
| Constructor Summary | |
DragRepresentationRegistry()
Constructor for DragRepresentationRegistry. |
|
DragRepresentationRegistry(DragRepresentationRegistry registry)
Copy contructor for DragRepresentationRegistry. |
|
| Method Summary | |
void |
clear()
Unregisters all registered drag representation composites from the registry such that it is empty afterwards. |
boolean |
containsCursor(java.lang.Object cursor)
Returns a boolean that indicates whether the given cursor
(repectively cursor identifier) is registered at the registry or not. |
boolean |
containsKey(java.lang.Object key)
Returns a boolean that indicates whether a cursor with the
given key is registered at the registry or not. |
java.util.Iterator |
cursorIterator()
Returns an Iterator that can be use to iteratr over the
currently registered drag representation composites (or cursor identifier).
|
DragRepresentationRegistry |
deepCopy()
|
BaseComposite |
get(java.lang.Object key)
Returns the drag representation composite that for the given key.
|
boolean |
isEmpty()
Returns a boolean that indicates whether the registry is
emty or not. |
java.util.Iterator |
keyIterator()
Returns an Iterator that can be used to iterate over the
keys of the currently registered drag representation composites (or
cursor identifier).
|
void |
register(java.lang.Object key,
BaseComposite dragRepresentation)
Registers the given dragRepresentation with the
given key at the registry. |
int |
size()
Returns the current amoung of registered drag representation composites. |
void |
unregister(java.lang.Object key)
Unregisters (repectively removes) the drag representation composite that is registered with the given key from the registry.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DragRepresentationRegistry()
DragRepresentationRegistry.
public DragRepresentationRegistry(DragRepresentationRegistry registry)
DragRepresentationRegistry.
registry - the DragRepresentationRegistry to copy| Method Detail |
public boolean isEmpty()
boolean that indicates whether the registry is
emty or not.
public boolean containsKey(java.lang.Object key)
boolean that indicates whether a cursor with the
given key is registered at the registry or not.
key - to check for
public boolean containsCursor(java.lang.Object cursor)
boolean that indicates whether the given cursor
(repectively cursor identifier) is registered at the registry or not.
cursor - the cursor (or cursor identifier) to check for
public int size()
public void register(java.lang.Object key,
BaseComposite dragRepresentation)
Registers the given dragRepresentation with the
given key at the registry. This registered drag representation can be
accessed later on by the given key.
If there is already a drag representation registered for the given key
it will be replaced by a call to this method.
key - for the given dragRepresentationdragRepresentation - the drag representation composite to registerpublic void unregister(java.lang.Object key)
Unregisters (repectively removes) the drag representation composite that
is registered with the given key from the registry.
If there is no drag representation composite with the given key
registered at the registry the method does nothing.
key - the key of the drag representation composite to unregister
from the registrypublic BaseComposite get(java.lang.Object key)
Returns the drag representation composite that for the given
key.
If no drag representation composite is registered for the given
key this method returns null.
key - the key of the drag representation composite to unregister
from the registry
public void clear()
public java.util.Iterator keyIterator()
Returns an Iterator that can be used to iterate over the
keys of the currently registered drag representation composites (or
cursor identifier).
The returned iterator does not allow to remove a cursor from the registry.
public java.util.Iterator cursorIterator()
Returns an Iterator that can be use to iteratr over the
currently registered drag representation composites (or cursor identifier).
The returned iterator does not allow to remove a cursor from the registry.
public DragRepresentationRegistry deepCopy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||