Home » openjdk-7 » sun » awt » [javadoc | source]
public static class: SunHints.Key [javadoc | source]

Direct Known Subclasses:

Defines the type of all keys used to control various aspects of the rendering and imaging pipelines. Instances of this class are immutable and unique which means that tests for matches can be made using the == operator instead of the more expensive equals() method.
Field Summary
 String description     
 public Key(int privatekey,
    String description) 
    Construct a key using the indicated private key. Each subclass of Key maintains its own unique domain of integer keys. No two objects with the same integer key and of the same specific subclass can be constructed. An exception will be thrown if an attempt is made to construct another object of a given class with the same integer key as a pre-existing instance of that subclass of Key.
Method from sun.awt.SunHints$Key Summary:
getIndex,   isCompatibleValue,   toString
Methods from java.awt.RenderingHints$Key:
equals,   hashCode,   intKey,   isCompatibleValue
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.awt.SunHints$Key Detail:
 public final int getIndex() 
    Returns the numeric index associated with this Key. This is useful for use in switch statements and quick lookups of the setting of a particular key.
 public boolean isCompatibleValue(Object val) 
    Returns true if the specified object is a valid value for this Key.
 public final String toString() 
    Returns a string representation of the Key.