bibliothek.gui.dock.util
Enum Transparency

java.lang.Object
  extended by java.lang.Enum<Transparency>
      extended by bibliothek.gui.dock.util.Transparency
All Implemented Interfaces:
Serializable, Comparable<Transparency>

public enum Transparency
extends Enum<Transparency>

A description of how some Component (e.g. a BackgroundComponent or a PaintableComponent) handles transparency.

Author:
Benjamin Sigg

Enum Constant Summary
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.
 
Method Summary
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'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

TRANSPARENT

public static final Transparency TRANSPARENT
The background is not to be painted at all. This does not mean that the component is completely invisible, as there might still be a foreground that is painted.


SOLID

public static final Transparency SOLID
The background is guaranteed to cover the entire component


DEFAULT

public static final Transparency DEFAULT
The component decides on its own how to paint the background, there may be some transparent patches or not.

Method Detail

values

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

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

valueOf

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