|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.jme.cursorsystem.CursorRegistry
public class CursorRegistry
Utility class used predominantly by the cursor system to maintain a record of all currently active cursors. A singleton. The cursors are in JME screen coordinates.
Method Summary | |
---|---|
void |
addCursor(ScreenCursor cursor)
Adds the cursor. |
boolean |
containsKey(long id)
Contains key. |
java.util.List<ScreenCursor> |
getCurrentRegisteredCursors()
Returns a cloned List whose contents are the current cursors at the time of asking. |
ScreenCursor |
getCursor(long id)
Gets the cursor. |
static CursorRegistry |
getInstance()
Gets the single instance of CursorRegistry. |
int |
numCursors()
Num cursors. |
void |
removeCursor(long id)
Removes the cursor. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static CursorRegistry getInstance()
public void addCursor(ScreenCursor cursor)
cursor
- the cursorpublic boolean containsKey(long id)
id
- the id
public java.util.List<ScreenCursor> getCurrentRegisteredCursors()
public ScreenCursor getCursor(long id)
id
- the id
public int numCursors()
public void removeCursor(long id)
id
- the idpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |