ch.javasoft.swing
Enum StretchGridLayout.Constraint

java.lang.Object
  extended by java.lang.Enum<StretchGridLayout.Constraint>
      extended by ch.javasoft.swing.StretchGridLayout.Constraint
All Implemented Interfaces:
Serializable, Comparable<StretchGridLayout.Constraint>
Enclosing class:
StretchGridLayout

public static enum StretchGridLayout.Constraint
extends Enum<StretchGridLayout.Constraint>

Constraint to use when adding a component to a container. It defines whether or not a component is resized (stretched) if enough space is available.


Enum Constant Summary
STRETCH_BOTH
           
STRETCH_NONE
           
STRETCH_X
           
STRETCH_Y
           
 
Method Summary
 boolean isResizedX()
           
 boolean isResizedY()
           
static StretchGridLayout.Constraint valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StretchGridLayout.Constraint[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STRETCH_NONE

public static final StretchGridLayout.Constraint STRETCH_NONE

STRETCH_X

public static final StretchGridLayout.Constraint STRETCH_X

STRETCH_Y

public static final StretchGridLayout.Constraint STRETCH_Y

STRETCH_BOTH

public static final StretchGridLayout.Constraint STRETCH_BOTH
Method Detail

values

public static StretchGridLayout.Constraint[] 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 (StretchGridLayout.Constraint c : StretchGridLayout.Constraint.values())
    System.out.println(c);

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

valueOf

public static StretchGridLayout.Constraint 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

isResizedX

public boolean isResizedX()

isResizedY

public boolean isResizedY()