com.jgoodies.validation.extras
Enum CompoundIcon.Anchor

java.lang.Object
  extended by java.lang.Enum<CompoundIcon.Anchor>
      extended by com.jgoodies.validation.extras.CompoundIcon.Anchor
All Implemented Interfaces:
Serializable, Comparable<CompoundIcon.Anchor>
Enclosing class:
CompoundIcon

public static enum CompoundIcon.Anchor
extends Enum<CompoundIcon.Anchor>

Describes how to position the foreground icon to the background icon.


Enum Constant Summary
CENTER
           
EAST
           
NORTH
           
NORTHEAST
           
NORTHWEST
           
SOUTH
           
SOUTHEAST
           
SOUTHWEST
           
WEST
           
 
Method Summary
static CompoundIcon.Anchor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CompoundIcon.Anchor[] 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

CENTER

public static final CompoundIcon.Anchor CENTER

NORTH

public static final CompoundIcon.Anchor NORTH

NORTHEAST

public static final CompoundIcon.Anchor NORTHEAST

EAST

public static final CompoundIcon.Anchor EAST

SOUTHEAST

public static final CompoundIcon.Anchor SOUTHEAST

SOUTH

public static final CompoundIcon.Anchor SOUTH

SOUTHWEST

public static final CompoundIcon.Anchor SOUTHWEST

WEST

public static final CompoundIcon.Anchor WEST

NORTHWEST

public static final CompoundIcon.Anchor NORTHWEST
Method Detail

values

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

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

valueOf

public static CompoundIcon.Anchor 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


Copyright © 2003-2008 JGoodies Karsten Lentzsch. All Rights Reserved.