|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.yospace.yae.yogi.Toolkit
This is the overall YoGI Management class - it creates most of the control objects used by YoGI, and is the access point for referencing the UIManager. It is implemented as a singleton.
get()| Constructor Summary | |
protected |
Toolkit(UIManager uiMgr,
YogiRootWindow rootWindow)
Installs the specified UIManager and sets up the root window (which acts as the repaint manager). |
| Method Summary | |
static Toolkit |
get()
Singleton accessor method for the Toolkit. |
static Font |
getFont(java.lang.String fontName)
This method retrieves custom YoGI fonts (not System fonts). |
Dimension |
getRootContentPaneSize()
Gets the size of the root content pane, so that perhaps the user can size a popup accordingly. |
static java.lang.String |
getSystemStringResource(java.lang.String resourceId)
Gets the named locale-specific system string resource. |
java.util.Timer |
getTimer()
YoGI provides this single Timer object both for its own internal purposes, and for the convenience of UIs and applications. |
static UIManager |
getUIManager()
Accessor method for the UIManager. |
void |
grabResources(YogiRootWindow key)
Notification that the YoGI/panelet system is now running and that any resources, such as Threads and Canvases should be allocated. |
static void |
init(UIManager uiMgr,
YogiRootWindow rootWindow)
Singleton setup method. |
java.lang.String |
parseUrlForDeviceInfo(java.lang.String url)
Parses a given URL, inserting system properties if a $-delimited String is encountered. |
void |
trimResources(YogiRootWindow key)
Notification that the YoGI/panelet system is going to sleep, and that resources grabbed in grabResources(key)
should be relinquished. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Toolkit(UIManager uiMgr,
YogiRootWindow rootWindow)
uiMgr - the UIManager for the windows system to use.rootWindow - the (root window) repaint manager.| Method Detail |
public static Toolkit get()
IllegalStateException - if the
init(UIManager,YogiRootWindow)
method hasn't been called yet to initialize the toolkit.
public static void init(UIManager uiMgr,
YogiRootWindow rootWindow)
uiMgr - the UIManager for the windows system to use.rootWindow - the (root window) repaint manager.public static UIManager getUIManager()
public Dimension getRootContentPaneSize()
public void grabResources(YogiRootWindow key)
key - the YogiRootWindow passed in as a key to ensure that starting the RepaintManager can only
be achieved by YoGI internally.public void trimResources(YogiRootWindow key)
grabResources(key)
should be relinquished.key - the YogiRootWindow passed in as a key to ensure that stopping the RepaintManager can only
be achieved by YoGI internally.public static Font getFont(java.lang.String fontName)
fontname - the name of the font, as passed to the
CustomFont constructor.public java.util.Timer getTimer()
public static java.lang.String getSystemStringResource(java.lang.String resourceId)
resourceId - the Id of the string resource to obtain.public java.lang.String parseUrlForDeviceInfo(java.lang.String url)
url - the URL to parse.
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||