com.threerings.opengl.gui.config
Class IconConfig

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

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

Contains an icon configuration.


Nested Class Summary
static class IconConfig.Blank
          A blank icon.
static class IconConfig.ColorizedImage
          A colorized image icon.
static class IconConfig.Image
          An image icon.
static class IconConfig.Rotated
          A rotated icon.
 
Constructor Summary
IconConfig()
           
 
Method Summary
 Icon getIcon(GlContext ctx)
          Returns the icon corresponding to this config.
static Image getImage(GlContext ctx, String file, ColorizationConfig[] colorizations)
          Retrieves the specified image, applying the desired colorizations.
 void getUpdateResources(HashSet<String> paths)
          Adds the icon'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

IconConfig

public IconConfig()
Method Detail

getImage

public static Image getImage(GlContext ctx,
                             String file,
                             ColorizationConfig[] colorizations)
Retrieves the specified image, applying the desired colorizations.


getUpdateResources

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


getIcon

public Icon getIcon(GlContext ctx)
Returns the icon corresponding to this config.


invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.