org.jdesktop.swingx.util
Enum Resize
java.lang.Object
java.lang.Enum<Resize>
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.
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. |
HORIZONTAL
public static final Resize HORIZONTAL
VERTICAL
public static final Resize VERTICAL
BOTH
public static final Resize BOTH
NONE
public static final Resize NONE
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