com.threerings.stage.tools.viewer
Class ViewerApp.ContextImpl

java.lang.Object
  extended by com.threerings.stage.tools.viewer.ViewerApp.ContextImpl
All Implemented Interfaces:
com.threerings.miso.util.MisoContext, StageContext
Enclosing class:
ViewerApp

protected class ViewerApp.ContextImpl
extends Object
implements StageContext

The implementation of the StageContext interface that provides handles to the config and manager objects that offer commonly used services.


Constructor Summary
protected ViewerApp.ContextImpl()
           
 
Method Summary
 com.threerings.media.image.ColorPository getColorPository()
          Returns a reference to the colorization repository.
 com.threerings.cast.ComponentRepository getComponentRepository()
          Returns the component repository in use by this client.
 com.threerings.media.FrameManager getFrameManager()
           
 com.threerings.media.IconManager getIconManager()
           
 com.threerings.media.image.ImageManager getImageManager()
          Access to the image manager.
 KeyboardManager getKeyboardManager()
          Returns a reference to the keyboard manager.
 KeyDispatcher getKeyDispatcher()
          Provides access to the key dispatcher.
 MessageManager getMessageManager()
          Returns a reference to the message manager used by the client.
 com.threerings.resource.ResourceManager getResourceManager()
          Returns the resource manager via which all client resources are loaded.
 com.threerings.miso.tile.MisoTileManager getTileManager()
           
 String xlate(String message)
          Translates the specified message using the default bundle.
 String xlate(String bundle, String message)
          Translates the specified message using the specified bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewerApp.ContextImpl

protected ViewerApp.ContextImpl()
Method Detail

getFrameManager

public com.threerings.media.FrameManager getFrameManager()
Specified by:
getFrameManager in interface com.threerings.miso.util.MisoContext

getTileManager

public com.threerings.miso.tile.MisoTileManager getTileManager()
Specified by:
getTileManager in interface com.threerings.miso.util.MisoContext

getResourceManager

public com.threerings.resource.ResourceManager getResourceManager()
Description copied from interface: StageContext
Returns the resource manager via which all client resources are loaded.

Specified by:
getResourceManager in interface StageContext

getImageManager

public com.threerings.media.image.ImageManager getImageManager()
Description copied from interface: StageContext
Access to the image manager.

Specified by:
getImageManager in interface StageContext

getMessageManager

public MessageManager getMessageManager()
Description copied from interface: StageContext
Returns a reference to the message manager used by the client.

Specified by:
getMessageManager in interface StageContext

getIconManager

public com.threerings.media.IconManager getIconManager()

getKeyboardManager

public KeyboardManager getKeyboardManager()
Description copied from interface: StageContext
Returns a reference to the keyboard manager.

Specified by:
getKeyboardManager in interface StageContext

getComponentRepository

public com.threerings.cast.ComponentRepository getComponentRepository()
Description copied from interface: StageContext
Returns the component repository in use by this client.

Specified by:
getComponentRepository in interface StageContext

getColorPository

public com.threerings.media.image.ColorPository getColorPository()
Description copied from interface: StageContext
Returns a reference to the colorization repository.

Specified by:
getColorPository in interface StageContext

getKeyDispatcher

public KeyDispatcher getKeyDispatcher()
Description copied from interface: StageContext
Provides access to the key dispatcher.

Specified by:
getKeyDispatcher in interface StageContext

xlate

public String xlate(String message)
Description copied from interface: StageContext
Translates the specified message using the default bundle.

Specified by:
xlate in interface StageContext

xlate

public String xlate(String bundle,
                    String message)
Description copied from interface: StageContext
Translates the specified message using the specified bundle.

Specified by:
xlate in interface StageContext