java.awt
Class PageAttributes.ColorType

java.lang.Object
  extended by java.awt.PageAttributes.ColorType
Enclosing class:
PageAttributes

public static final class PageAttributes.ColorType
extends Object


Field Summary
static PageAttributes.ColorType COLOR
           
static PageAttributes.ColorType MONOCHROME
           
 
Method Summary
 int hashCode()
          Returns the hashcode of this element.
 String toString()
          Returns the name of this enumeration element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COLOR

public static final PageAttributes.ColorType COLOR

MONOCHROME

public static final PageAttributes.ColorType MONOCHROME
Method Detail

hashCode

public int hashCode()
Returns the hashcode of this element. This is the index of the element in the enumeration. Note that equals defaults to the == relation.

Overrides:
hashCode in class Object
Returns:
the hashcode
See Also:
Object.equals(Object), System.identityHashCode(Object)

toString

public String toString()
Returns the name of this enumeration element.

Overrides:
toString in class Object
Returns:
the element name
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)