swingx
Version 2005-08-19

org.jdesktop.swingx.util
Enum Resize

java.lang.Object
  extended by java.lang.Enum<Resize>
      extended by org.jdesktop.swingx.util.Resize
All Implemented Interfaces:
Serializable, Comparable<Resize>

public enum Resize
extends Enum<Resize>

Indicates how resizing of a gradient paint should occur for a gradient based painter. If HORIZONTAL, then the control point (or whatnot) will be resized horizontally in coordination with the width of the component. If VERTICAL then the control point (or whatnot) of the gradient paint will be resized vertically in coordination with the height of the component. If BOTH then both VERTICAL and HORIZONTAL behavior will occur. NONE of course, results in no resizing whatsoever.


Enum Constant Summary
BOTH
           
HORIZONTAL
           
NONE
           
VERTICAL
           
 
Method Summary
static Resize valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Resize[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HORIZONTAL

public static final Resize HORIZONTAL

VERTICAL

public static final Resize VERTICAL

BOTH

public static final Resize BOTH

NONE

public static final Resize NONE
Method Detail

values

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

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

valueOf

public static Resize 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

swingx
Version 2005-08-19