com.threerings.opengl.gui.config
Class IconConfig.Image

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

public static class IconConfig.Image
extends IconConfig

An image icon.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.gui.config.IconConfig
IconConfig.Blank, IconConfig.ColorizedImage, IconConfig.Image, IconConfig.Rotated
 
Field Summary
 String file
          The background image.
 
Constructor Summary
IconConfig.Image()
           
 
Method Summary
 Image getImage(GlContext ctx)
          Retrieves the image for the icon.
 void getUpdateResources(HashSet<String> paths)
          Adds the icon's update resources to the provided set.
 
Methods inherited from class com.threerings.opengl.gui.config.IconConfig
getIcon, getImage, invalidate
 
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
 

Field Detail

file

@Editable(editor="resource",
          nullable=true)
@FileConstraints(description="m.image_files_desc",
                 extensions={".png",".jpg",".dds"},
                 directory="image_dir")
public String file
The background image.

Constructor Detail

IconConfig.Image

public IconConfig.Image()
Method Detail

getImage

public Image getImage(GlContext ctx)
Retrieves the image for the icon.


getUpdateResources

public void getUpdateResources(HashSet<String> paths)
Description copied from class: IconConfig
Adds the icon's update resources to the provided set.

Overrides:
getUpdateResources in class IconConfig


Copyright © 2011. All Rights Reserved.