com.threerings.opengl.gui.config
Class BackgroundConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.gui.config.BackgroundConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
BackgroundConfig.Blank, BackgroundConfig.Image, BackgroundConfig.Solid

@EditorTypes(value={BackgroundConfig.Solid.class,BackgroundConfig.Image.class,BackgroundConfig.ColorizedImage.class,BackgroundConfig.Blank.class})
public abstract class BackgroundConfig
extends DeepObject
implements Exportable

Contains a background configuration.


Nested Class Summary
static class BackgroundConfig.Blank
          A blank background.
static class BackgroundConfig.ColorizedImage
          A colorized image.
static class BackgroundConfig.Image
          An image background.
static class BackgroundConfig.Solid
          A solid background.
 
Constructor Summary
BackgroundConfig()
           
 
Method Summary
 Background getBackground(GlContext ctx)
          Returns the background corresponding to this config.
 void getUpdateResources(HashSet<String> paths)
          Adds the background's update resources to the provided set.
 void invalidate()
          Invalidates any cached data.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BackgroundConfig

public BackgroundConfig()
Method Detail

getUpdateResources

public void getUpdateResources(HashSet<String> paths)
Adds the background's update resources to the provided set.


getBackground

public Background getBackground(GlContext ctx)
Returns the background corresponding to this config.


invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.