com.threerings.opengl.gui.config
Class StyleConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.config.ManagedConfig
          extended by com.threerings.config.ParameterizedConfig
              extended by com.threerings.opengl.gui.config.StyleConfig
All Implemented Interfaces:
ConfigUpdateListener<ManagedConfig>, Exportable, ResourceManager.ModificationObserver, Copyable, Cloneable

public class StyleConfig
extends ParameterizedConfig

Describes a user interface style.


Nested Class Summary
static class StyleConfig.Derived
          A derived implementation.
static class StyleConfig.Implementation
          Contains the actual implementation of the style.
static class StyleConfig.Original
          An original implementation.
static class StyleConfig.TextAlignment
          Text alignment modes.
static class StyleConfig.TextEffect
          Text effects.
static class StyleConfig.VerticalAlignment
          Vertical alignment modes.
 
Field Summary
 StyleConfig.Implementation implementation
          The actual style implementation.
static StyleConfig.Original NULL_ORIGINAL
          Used when we can't resolve the tile's underlying original implementation.
 
Fields inherited from class com.threerings.config.ParameterizedConfig
_args, _base, _derived, parameters
 
Fields inherited from class com.threerings.config.ManagedConfig
_cfgmgr, _listeners, _name, _updateConfigs, _updateResources
 
Constructor Summary
StyleConfig()
           
 
Method Summary
protected  void fireConfigUpdated()
          Fires a configuration updated event.
 StyleConfig.Original getOriginal(GlContext ctx)
          Returns a reference to the config's underlying original implementation.
protected  void getUpdateReferences(ConfigReferenceSet refs)
          Collects all of the references within this config to configs that, when updated, should trigger a call to ManagedConfig.fireConfigUpdated().
protected  void getUpdateResources(HashSet<String> paths)
          Collects the paths of all resources referenced by this config that, when modified, should trigger a call to ManagedConfig.fireConfigUpdated().
 
Methods inherited from class com.threerings.config.ParameterizedConfig
applyArguments, applyArguments, getBound, getInstance, getParameter, getParameter, getReference, maybeFireOnConfigManager, validateOuters, validateReferences, wasUpdated
 
Methods inherited from class com.threerings.config.ManagedConfig
addListener, addUpdateDependencies, clearUpdateDependencies, configUpdated, getConfigManager, getInstance, getInstance, getInstance, getInstance, getName, init, removeListener, resourceModified, setName, updateFromSource
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_ORIGINAL

public static final StyleConfig.Original NULL_ORIGINAL
Used when we can't resolve the tile's underlying original implementation.


implementation

@Editable
public StyleConfig.Implementation implementation
The actual style implementation.

Constructor Detail

StyleConfig

public StyleConfig()
Method Detail

getOriginal

public StyleConfig.Original getOriginal(GlContext ctx)
Returns a reference to the config's underlying original implementation.


fireConfigUpdated

protected void fireConfigUpdated()
Description copied from class: ManagedConfig
Fires a configuration updated event.

Overrides:
fireConfigUpdated in class ManagedConfig

getUpdateReferences

protected void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: ManagedConfig
Collects all of the references within this config to configs that, when updated, should trigger a call to ManagedConfig.fireConfigUpdated().

Overrides:
getUpdateReferences in class ManagedConfig

getUpdateResources

protected void getUpdateResources(HashSet<String> paths)
Description copied from class: ManagedConfig
Collects the paths of all resources referenced by this config that, when modified, should trigger a call to ManagedConfig.fireConfigUpdated().

Overrides:
getUpdateResources in class ManagedConfig