java.awt
Class RenderingHints.Key

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.RenderingHints.Key
Enclosing class:
RenderingHints sample code for java.awt.RenderingHints definition code for java.awt.RenderingHints

public abstract static class RenderingHints.Key
extends Object sample code for java.lang.Object definition code for java.lang.Object

Defines the base 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.


Constructor Summary
protected RenderingHints.Key sample code for java.awt.RenderingHints.Key.RenderingHints.Key(int) definition code for java.awt.RenderingHints.Key.RenderingHints.Key(int) (int privatekey)
          Construct a key using the indicated private key.
 
Method Summary
 boolean equals sample code for java.awt.RenderingHints.Key.equals(java.lang.Object) definition code for java.awt.RenderingHints.Key.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  o)
          The equals method for all Key objects will return the same result as the equality operator '=='.
 int hashCode sample code for java.awt.RenderingHints.Key.hashCode() definition code for java.awt.RenderingHints.Key.hashCode() ()
          The hash code for all Key objects will be the same as the system identity code of the object as defined by the System.identityHashCode() method.
protected  int intKey sample code for java.awt.RenderingHints.Key.intKey() definition code for java.awt.RenderingHints.Key.intKey() ()
          Returns the private integer key that the subclass instantiated this Key with.
abstract  boolean isCompatibleValue sample code for java.awt.RenderingHints.Key.isCompatibleValue(java.lang.Object) definition code for java.awt.RenderingHints.Key.isCompatibleValue(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  val)
          Returns true if the specified object is a valid value for this Key.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

RenderingHints.Key sample code for java.awt.RenderingHints.Key(int) definition code for java.awt.RenderingHints.Key(int)

protected RenderingHints.Key(int privatekey)
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.

Parameters:
privatekey - the specified key
Method Detail

isCompatibleValue sample code for java.awt.RenderingHints.Key.isCompatibleValue(java.lang.Object) definition code for java.awt.RenderingHints.Key.isCompatibleValue(java.lang.Object)

public abstract boolean isCompatibleValue(Object sample code for java.lang.Object definition code for java.lang.Object  val)
Returns true if the specified object is a valid value for this Key.

Parameters:
val - the Object to test for validity
Returns:
true if val is valid; false otherwise.

intKey sample code for java.awt.RenderingHints.Key.intKey() definition code for java.awt.RenderingHints.Key.intKey()

protected final int intKey()
Returns the private integer key that the subclass instantiated this Key with.

Returns:
the private integer key that the subclass instantiated this Key with.

hashCode sample code for java.awt.RenderingHints.Key.hashCode() definition code for java.awt.RenderingHints.Key.hashCode()

public final int hashCode()
The hash code for all Key objects will be the same as the system identity code of the object as defined by the System.identityHashCode() method.

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

equals sample code for java.awt.RenderingHints.Key.equals(java.lang.Object) definition code for java.awt.RenderingHints.Key.equals(java.lang.Object)

public final boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  o)
The equals method for all Key objects will return the same result as the equality operator '=='.

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable