ch.javasoft.swing
Enum StretchGridLayout.Constraint
java.lang.Object
java.lang.Enum<StretchGridLayout.Constraint>
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.
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
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()