Java Platform 1.2
Beta 4

Class java.awt.RenderingHints

java.lang.Object
  |
  +--java.awt.RenderingHints

public class RenderingHints
extends Object
implements Cloneable
This class contains rendering hints that can be used by the Graphics2d class, and classes that implement BufferedImageOp and RasterOp.


Field Summary
static String KEY_ALPHA_INTERPOLATION
          Alpha interpolation hint key
static String KEY_ANTIALIASING
          Antialiasing hint key
static String KEY_COLOR_RENDERING
          Color rendering hint key
static String KEY_DITHERING
          Dithering hint key
static String KEY_FRACTIONALMETRICS
          Font fractional metrics hint key
static String KEY_INTERPOLATION
          Interpolation hint key
static String KEY_RENDERING
          Rendering hint key
static String KEY_TEXT_ANTIALIASING
          Text antialiasing hint key
static String VALUE_ALPHA_INTERPOLATION_DEFAULT
          Alpha interpolation hint value -- ALPHA_INTERPOLATION_DEFAULT
static String VALUE_ALPHA_INTERPOLATION_QUALITY
          Alpha interpolation hint value -- ALPHA_INTERPOLATION_QUALITY
static String VALUE_ALPHA_INTERPOLATION_SPEED
          Alpha interpolation hint value -- ALPHA_INTERPOLATION_SPEED
static String VALUE_ANTIALIAS_DEFAULT
          Antialiasing hint values -- rendering is done with the platform default antialiasing mode.
static String VALUE_ANTIALIAS_OFF
          Antialiasing hint values -- rendering is done without antialiasing
static String VALUE_ANTIALIAS_ON
          Antialiasing hint values -- rendering is done with antialiasing
static String VALUE_COLOR_RENDER_DEFAULT
          Color rendering hint value -- COLOR_RENDER_DEFAULT
static String VALUE_COLOR_RENDER_QUALITY
          Color rendering hint value -- COLOR_RENDER_QUALITY
static String VALUE_COLOR_RENDER_SPEED
          Color rendering hint value -- COLOR_RENDER_SPEED
static String VALUE_DITHER_DEFAULT
          Dithering hint values -- use the platform default for dithering
static String VALUE_DITHER_DISABLE
          Dithering hint values -- do not dither when rendering
static String VALUE_DITHER_ENABLE
          Dithering hint values -- dither when rendering, if needed
static String VALUE_FRACTIONALMETRICS_DEFAULT
          Font fractional metrics hint values -- use the platform default for fractional metrics
static String VALUE_FRACTIONALMETRICS_OFF
          Font fractional metrics hint values -- fractional metrics disabled
static String VALUE_FRACTIONALMETRICS_ON
          Font fractional metrics hint values -- fractional metrics enabled
static String VALUE_INTERPOLATION_BICUBIC
          Interpolation hint value -- INTERPOLATION_BICUBIC;
static String VALUE_INTERPOLATION_BILINEAR
          Interpolation hint value -- INTERPOLATION_BILINEAR
static String VALUE_INTERPOLATION_NEAREST_NEIGHBOR
          Interpolation hint value -- INTERPOLATION_NEAREST_NEIGHBOR
static String VALUE_RENDER_DEFAULT
          Rendering hint values -- The platform default rendering algorithms will be chosen.
static String VALUE_RENDER_QUALITY
          Rendering hint values -- Appropriate rendering algorithms are chosen with a preference for output quality;
static String VALUE_RENDER_SPEED
          Rendering hint values -- Appropriate rendering algorithms are chosen with a preference for output speed.
static String VALUE_TEXT_ANTIALIAS_DEFAULT
          Text antialiasing hint value -- text rendering is done using the platform default text antialiasing mode.
static String VALUE_TEXT_ANTIALIAS_OFF
          Text antialiasing hint value -- text rendering is done without antialiasing
static String VALUE_TEXT_ANTIALIAS_ON
          Text antialiasing hint value -- text rendering is done with antialiasing
 
Constructor Summary
RenderingHints(String key, Object value)
          Constructs a new object with the specified key/value pair.
 
Method Summary
 Object clone()
          Creates a clone of this RenderingHints object
 Object get(String key)
          Returns the value to which the specified key is mapped.
 Enumeration keys()
          Returns an enumeration of the keys in this object.
 Object put(String key, Object value)
          Maps the specified key to the specified value in this object.
 Object remove(String key)
          Removes the key (and its corresponding value) from this object.
 String toString()
          Returns a rather long string representation of this hashtable.
 
Methods inherited from class java.lang.Object
equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

Field Detail

KEY_ANTIALIASING

public static final String KEY_ANTIALIASING
Antialiasing hint key

VALUE_ANTIALIAS_ON

public static final String VALUE_ANTIALIAS_ON
Antialiasing hint values -- rendering is done with antialiasing

VALUE_ANTIALIAS_OFF

public static final String VALUE_ANTIALIAS_OFF
Antialiasing hint values -- rendering is done without antialiasing

VALUE_ANTIALIAS_DEFAULT

public static final String VALUE_ANTIALIAS_DEFAULT
Antialiasing hint values -- rendering is done with the platform default antialiasing mode.

KEY_RENDERING

public static final String KEY_RENDERING
Rendering hint key

VALUE_RENDER_SPEED

public static final String VALUE_RENDER_SPEED
Rendering hint values -- Appropriate rendering algorithms are chosen with a preference for output speed.

VALUE_RENDER_QUALITY

public static final String VALUE_RENDER_QUALITY
Rendering hint values -- Appropriate rendering algorithms are chosen with a preference for output quality;

VALUE_RENDER_DEFAULT

public static final String VALUE_RENDER_DEFAULT
Rendering hint values -- The platform default rendering algorithms will be chosen.

KEY_DITHERING

public static final String KEY_DITHERING
Dithering hint key

VALUE_DITHER_DISABLE

public static final String VALUE_DITHER_DISABLE
Dithering hint values -- do not dither when rendering

VALUE_DITHER_ENABLE

public static final String VALUE_DITHER_ENABLE
Dithering hint values -- dither when rendering, if needed

VALUE_DITHER_DEFAULT

public static final String VALUE_DITHER_DEFAULT
Dithering hint values -- use the platform default for dithering

KEY_TEXT_ANTIALIASING

public static final String KEY_TEXT_ANTIALIASING
Text antialiasing hint key

VALUE_TEXT_ANTIALIAS_ON

public static final String VALUE_TEXT_ANTIALIAS_ON
Text antialiasing hint value -- text rendering is done with antialiasing

VALUE_TEXT_ANTIALIAS_OFF

public static final String VALUE_TEXT_ANTIALIAS_OFF
Text antialiasing hint value -- text rendering is done without antialiasing

VALUE_TEXT_ANTIALIAS_DEFAULT

public static final String VALUE_TEXT_ANTIALIAS_DEFAULT
Text antialiasing hint value -- text rendering is done using the platform default text antialiasing mode.

KEY_FRACTIONALMETRICS

public static final String KEY_FRACTIONALMETRICS
Font fractional metrics hint key

VALUE_FRACTIONALMETRICS_OFF

public static final String VALUE_FRACTIONALMETRICS_OFF
Font fractional metrics hint values -- fractional metrics disabled

VALUE_FRACTIONALMETRICS_ON

public static final String VALUE_FRACTIONALMETRICS_ON
Font fractional metrics hint values -- fractional metrics enabled

VALUE_FRACTIONALMETRICS_DEFAULT

public static final String VALUE_FRACTIONALMETRICS_DEFAULT
Font fractional metrics hint values -- use the platform default for fractional metrics

KEY_INTERPOLATION

public static final String KEY_INTERPOLATION
Interpolation hint key

VALUE_INTERPOLATION_NEAREST_NEIGHBOR

public static final String VALUE_INTERPOLATION_NEAREST_NEIGHBOR
Interpolation hint value -- INTERPOLATION_NEAREST_NEIGHBOR

VALUE_INTERPOLATION_BILINEAR

public static final String VALUE_INTERPOLATION_BILINEAR
Interpolation hint value -- INTERPOLATION_BILINEAR

VALUE_INTERPOLATION_BICUBIC

public static final String VALUE_INTERPOLATION_BICUBIC
Interpolation hint value -- INTERPOLATION_BICUBIC;

KEY_ALPHA_INTERPOLATION

public static final String KEY_ALPHA_INTERPOLATION
Alpha interpolation hint key

VALUE_ALPHA_INTERPOLATION_SPEED

public static final String VALUE_ALPHA_INTERPOLATION_SPEED
Alpha interpolation hint value -- ALPHA_INTERPOLATION_SPEED

VALUE_ALPHA_INTERPOLATION_QUALITY

public static final String VALUE_ALPHA_INTERPOLATION_QUALITY
Alpha interpolation hint value -- ALPHA_INTERPOLATION_QUALITY

VALUE_ALPHA_INTERPOLATION_DEFAULT

public static final String VALUE_ALPHA_INTERPOLATION_DEFAULT
Alpha interpolation hint value -- ALPHA_INTERPOLATION_DEFAULT

KEY_COLOR_RENDERING

public static final String KEY_COLOR_RENDERING
Color rendering hint key

VALUE_COLOR_RENDER_SPEED

public static final String VALUE_COLOR_RENDER_SPEED
Color rendering hint value -- COLOR_RENDER_SPEED

VALUE_COLOR_RENDER_QUALITY

public static final String VALUE_COLOR_RENDER_QUALITY
Color rendering hint value -- COLOR_RENDER_QUALITY

VALUE_COLOR_RENDER_DEFAULT

public static final String VALUE_COLOR_RENDER_DEFAULT
Color rendering hint value -- COLOR_RENDER_DEFAULT
Constructor Detail

RenderingHints

public RenderingHints(String key,
                      Object value)
Constructs a new object with the specified key/value pair.
Method Detail

get

public Object get(String key)
Returns the value to which the specified key is mapped.
Parameters:
key - a key
Returns:
the value to which the key is mapped in this object. null if the key is not mapped to any value in this object.
See Also:
put(String, Object)

put

public Object put(String key,
                  Object value)
Maps the specified key to the specified value in this object. Neither the key nor the value can be null.

The value can be retrieved by calling the get method with a key that is equal to the original key.

Parameters:
key - the key.
value - the value.
Returns:
the previous value of the specified key in this object or null if it did not have one.
Throws:
NullPointerException - if the key or value is null.
See Also:
get(String)

remove

public Object remove(String key)
Removes the key (and its corresponding value) from this object. This method does nothing if the key is not in this object.
Parameters:
key - the key that needs to be removed.
Returns:
the value to which the key had been mapped in this object, or null if the key did not have a mapping.

keys

public Enumeration keys()
Returns an enumeration of the keys in this object.
Returns:
an enumeration of the keys
See Also:
Enumeration

clone

public Object clone()
Creates a clone of this RenderingHints object
Overrides:
clone in class Object

toString

public String toString()
Returns a rather long string representation of this hashtable.
Returns:
a string representation of this hashtable.
Overrides:
toString in class Object

Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.