com.hdcookbook.grin.util
Interface SetupClient

All Known Implementing Classes:
FixedImage, FontStripText, ImageSequence, Text

public interface SetupClient

This interface is implemented by things in GRIN that want to get called by the setup manager thread, to do things like load images.

Author:
Bill Foote (http://jovial.com)

Method Summary
 void doSomeSetup()
          Do some (or all) of the setup work needed for this client.
 boolean needsMoreSetup()
          This is where the feature (or other kind of SetupClient) says whether or not it needs more setup.
 

Method Detail

doSomeSetup

void doSomeSetup()
Do some (or all) of the setup work needed for this client. This might be called when setup is no longer required; in this case, the client should just return.


needsMoreSetup

boolean needsMoreSetup()
This is where the feature (or other kind of SetupClient) says whether or not it needs more setup. Calls to this are synchronized within the setup manager to avoid race conditions. The implementation of this method must not call outside code or call any animation manager methods. This method will probably be called several times for each call to doSomeSetup() that results, so it should not be time-consuming.