com.threerings.opengl.gui.config
Enum BackgroundConfig.Image.Mode

java.lang.Object
  extended by java.lang.Enum<BackgroundConfig.Image.Mode>
      extended by com.threerings.opengl.gui.config.BackgroundConfig.Image.Mode
All Implemented Interfaces:
Serializable, Comparable<BackgroundConfig.Image.Mode>
Enclosing class:
BackgroundConfig.Image

public static enum BackgroundConfig.Image.Mode
extends Enum<BackgroundConfig.Image.Mode>

The various image modes.


Enum Constant Summary
ASPECT_INNER
           
ASPECT_OUTER
           
CENTER_X
           
CENTER_XY
           
CENTER_Y
           
FRAME_X
           
FRAME_XY
           
FRAME_Y
           
SCALE_X
           
SCALE_XY
           
SCALE_Y
           
TILE_X
           
TILE_XY
           
TILE_Y
           
 
Method Summary
 int getConstant()
          Returns the corresponding ImageBackground constant.
 boolean isFrame()
          Determines whether this is one of the framing modes.
static BackgroundConfig.Image.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BackgroundConfig.Image.Mode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CENTER_XY

public static final BackgroundConfig.Image.Mode CENTER_XY

CENTER_X

public static final BackgroundConfig.Image.Mode CENTER_X

CENTER_Y

public static final BackgroundConfig.Image.Mode CENTER_Y

SCALE_XY

public static final BackgroundConfig.Image.Mode SCALE_XY

SCALE_X

public static final BackgroundConfig.Image.Mode SCALE_X

SCALE_Y

public static final BackgroundConfig.Image.Mode SCALE_Y

TILE_XY

public static final BackgroundConfig.Image.Mode TILE_XY

TILE_X

public static final BackgroundConfig.Image.Mode TILE_X

TILE_Y

public static final BackgroundConfig.Image.Mode TILE_Y

FRAME_XY

public static final BackgroundConfig.Image.Mode FRAME_XY

FRAME_X

public static final BackgroundConfig.Image.Mode FRAME_X

FRAME_Y

public static final BackgroundConfig.Image.Mode FRAME_Y

ASPECT_INNER

public static final BackgroundConfig.Image.Mode ASPECT_INNER

ASPECT_OUTER

public static final BackgroundConfig.Image.Mode ASPECT_OUTER
Method Detail

values

public static BackgroundConfig.Image.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BackgroundConfig.Image.Mode c : BackgroundConfig.Image.Mode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BackgroundConfig.Image.Mode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getConstant

public int getConstant()
Returns the corresponding ImageBackground constant.


isFrame

public boolean isFrame()
Determines whether this is one of the framing modes.



Copyright © 2011. All Rights Reserved.