|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fraid.graphics.GraphicsStore
public abstract class GraphicsStore
A singleton which manages all open GraphicsPanels for the session. Can operate in two modes - Application or Applet.
GraphicsPanel
Field Summary | |
---|---|
protected static GraphicsStore |
sCorrectVersion
Points to the particular instance which handles the requests. |
protected static int |
sCounter
|
protected static boolean |
sExitCalled
Internal flag which tels it to call System.exit() when the store gets empty (last GraphicsPanel is closed). |
protected static java.lang.String |
sNegativeIndexStr
|
protected static java.lang.String |
sOutOfBoundsStr
|
protected static java.util.Hashtable<java.lang.Integer,GraphicsPanel> |
sStore
The actual store. |
Constructor Summary | |
---|---|
GraphicsStore()
|
Method Summary | |
---|---|
static int |
create()
In Application mode each call to create() opens a new window. |
static void |
exitWhenAllClosed()
Call this if you want your application to exit automatically when the last GraphicsPanel is closed. |
static GraphicsPanel |
getAt(int aIndex)
Return the GraphicsPanel wtih this number. |
static java.lang.Object[] |
getKeys()
|
static java.lang.Integer |
register(GraphicsPanel aPanel)
This is how the GraphicsPanels register themselves. |
static java.lang.Object |
remove(java.lang.Integer aKey)
Remove the GraphicsPanel with the given number from the store. |
static void |
setSizeAt(int aIndex,
int aFrameWidth,
int aFrameHeight)
resize the window with the given id. |
static void |
showAt(int aIndex,
int aFrameWidth,
int aFrameHeight)
Make the GraphicsPanel with the given number visible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static GraphicsStore sCorrectVersion
protected static java.util.Hashtable<java.lang.Integer,GraphicsPanel> sStore
protected static int sCounter
protected static final java.lang.String sOutOfBoundsStr
protected static final java.lang.String sNegativeIndexStr
protected static boolean sExitCalled
Constructor Detail |
---|
public GraphicsStore()
Method Detail |
---|
public static java.lang.Object[] getKeys()
public static GraphicsPanel getAt(int aIndex) throws GraphicsStoreException
aIndex
- an int
value
GraphicsPanel
value
GraphicsStoreException
- if an error occurspublic static int create()
public static java.lang.Integer register(GraphicsPanel aPanel)
aPanel
- a GraphicsPanel
value
Integer
valuepublic static java.lang.Object remove(java.lang.Integer aKey)
aKey
- an Integer;
public static void showAt(int aIndex, int aFrameWidth, int aFrameHeight) throws GraphicsStoreException
aIndex
- the id of the panel;aFrameWidth
- an int
valueaFrameHeight
- an int
value
GraphicsStoreException
- if an error occurspublic static void setSizeAt(int aIndex, int aFrameWidth, int aFrameHeight) throws GraphicsStoreException
aIndex
- the id of the panel;aFrameWidth
- an int
valueaFrameHeight
- an int
value
GraphicsStoreException
- if an error occurspublic static void exitWhenAllClosed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |