com.threerings.stage.tools.editor
Class EditorApp.EditorContextImpl

java.lang.Object
  extended by com.threerings.stage.tools.editor.EditorApp.EditorContextImpl
All Implemented Interfaces:
com.threerings.miso.util.MisoContext, EditorContext, StageContext
Enclosing class:
EditorApp

protected class EditorApp.EditorContextImpl
extends Object
implements EditorContext

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


Constructor Summary
protected EditorApp.EditorContextImpl()
           
 
Method Summary
 void enumerateSceneTypes(List<String> types)
          Inserts all known scene types into the supplied list.
 com.threerings.media.image.ColorPository getColorPository()
          Returns a colorization repository for use by the editor.
 com.threerings.cast.ComponentRepository getComponentRepository()
          Returns the component repository in use by this client.
 com.threerings.media.FrameManager getFrameManager()
           
 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()
           
 com.threerings.media.tile.TileSetRepository getTileSetRepository()
          Return a reference to the tile set repository in use by the tile manager.
 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

EditorApp.EditorContextImpl

protected EditorApp.EditorContextImpl()
Method Detail

getTileManager

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

getFrameManager

public com.threerings.media.FrameManager getFrameManager()
Specified by:
getFrameManager 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

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

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

getTileSetRepository

public com.threerings.media.tile.TileSetRepository getTileSetRepository()
Description copied from interface: EditorContext
Return a reference to the tile set repository in use by the tile manager. This reference is valid for the lifetime of the application.

Specified by:
getTileSetRepository in interface EditorContext

getColorPository

public com.threerings.media.image.ColorPository getColorPository()
Description copied from interface: EditorContext
Returns a colorization repository for use by the editor.

Specified by:
getColorPository in interface EditorContext
Specified by:
getColorPository in interface StageContext

enumerateSceneTypes

public void enumerateSceneTypes(List<String> types)
Description copied from interface: EditorContext
Inserts all known scene types into the supplied list.

Specified by:
enumerateSceneTypes in interface EditorContext