|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hdcookbook.grin.util.SetupManager
public class SetupManager
A SetupManager manages a low-priority thread that's used to set up GRIN features, by doing things like loading images. This way, image loading and other setup work can proceed in the background, while other features (that are already set up) animate or are otherwise active.
At present, all setup work is serialized into one thread, but a future extension might allow for concurrent execution of setup activity (e.g. for a dual-core system or suchlike).
Constructor Summary | |
---|---|
SetupManager(int numFeatures)
Create a SetupManager for setting up a maximum of numFeatures clients. |
Method Summary | |
---|---|
void |
run()
This isn't really public; it's only called by our worker thread. |
void |
scheduleSetup(SetupClient f)
|
void |
start()
Start providing service from this SetupManager. |
void |
stop()
Stop providing service from this SetupManager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetupManager(int numFeatures)
Method Detail |
---|
public void start()
stop()
public void stop()
start()
public void scheduleSetup(SetupClient f)
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |