public enum Transparency extends Enum<Transparency>
Component
(e.g. a BackgroundComponent
or a PaintableComponent
)
handles transparency.Enum Constant and Description |
---|
DEFAULT
The component decides on its own how to paint the background,
there may be some transparent patches or not.
|
SOLID
The background is guaranteed to cover the entire component
|
TRANSPARENT
The background is not to be painted at all.
|
Modifier and Type | Method and Description |
---|---|
static Transparency |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transparency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transparency TRANSPARENT
public static final Transparency SOLID
public static final Transparency DEFAULT
public static Transparency[] values()
for (Transparency c : Transparency.values()) System.out.println(c);
public static Transparency valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null