org.proteinshader.structure.enums
Enum DecorationEnum

java.lang.Object
  extended by java.lang.Enum<DecorationEnum>
      extended by org.proteinshader.structure.enums.DecorationEnum
All Implemented Interfaces:
Serializable, Comparable<DecorationEnum>

public enum DecorationEnum
extends Enum<DecorationEnum>

Provides an enumeration to specify if a Segment object should be plain, with text labels, or with halftoning when the Segment is rendered as a three-dimensional tube or ribbon.


Enum Constant Summary
HALFTONING
           
PATTERNS
           
PLAIN
           
TEXT_LABELS
           
WIREFRAME
           
 
Method Summary
static DecorationEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DecorationEnum[] 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

PLAIN

public static final DecorationEnum PLAIN

WIREFRAME

public static final DecorationEnum WIREFRAME

TEXT_LABELS

public static final DecorationEnum TEXT_LABELS

PATTERNS

public static final DecorationEnum PATTERNS

HALFTONING

public static final DecorationEnum HALFTONING
Method Detail

values

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

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

valueOf

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


Copyright © 2007-2008