java.awt
Class RenderingHints

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.RenderingHints
All Implemented Interfaces:
Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable , Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >

public class RenderingHints
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >, Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable

The RenderingHints class contains rendering hints that can be used by the Graphics2D sample code for java.awt.Graphics2D definition code for java.awt.Graphics2D class, and classes that implement BufferedImageOp sample code for java.awt.image.BufferedImageOp definition code for java.awt.image.BufferedImageOp and Raster sample code for java.awt.image.Raster definition code for java.awt.image.Raster .


Nested Class Summary
static class RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key
          Defines the base type of all keys used to control various aspects of the rendering and imaging pipelines.
 
Nested classes/interfaces inherited from interface java.util.Map sample code for java.util.Map definition code for java.util.Map
Map.Entry sample code for java.util.Map.Entry definition code for java.util.Map.Entry <K,V>
 
Field Summary
static RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key KEY_ALPHA_INTERPOLATION sample code for java.awt.RenderingHints.KEY_ALPHA_INTERPOLATION definition code for java.awt.RenderingHints.KEY_ALPHA_INTERPOLATION
          Alpha interpolation hint key.
static RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key KEY_ANTIALIASING sample code for java.awt.RenderingHints.KEY_ANTIALIASING definition code for java.awt.RenderingHints.KEY_ANTIALIASING
          Antialiasing hint key.
static RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key KEY_COLOR_RENDERING sample code for java.awt.RenderingHints.KEY_COLOR_RENDERING definition code for java.awt.RenderingHints.KEY_COLOR_RENDERING
          Color rendering hint key.
static RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key KEY_DITHERING sample code for java.awt.RenderingHints.KEY_DITHERING definition code for java.awt.RenderingHints.KEY_DITHERING
          Dithering hint key.
static RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key KEY_FRACTIONALMETRICS sample code for java.awt.RenderingHints.KEY_FRACTIONALMETRICS definition code for java.awt.RenderingHints.KEY_FRACTIONALMETRICS
          Font fractional metrics hint key.
static RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key KEY_INTERPOLATION sample code for java.awt.RenderingHints.KEY_INTERPOLATION definition code for java.awt.RenderingHints.KEY_INTERPOLATION
          Interpolation hint key.
static RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key KEY_RENDERING sample code for java.awt.RenderingHints.KEY_RENDERING definition code for java.awt.RenderingHints.KEY_RENDERING
          Rendering hint key.
static RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key KEY_STROKE_CONTROL sample code for java.awt.RenderingHints.KEY_STROKE_CONTROL definition code for java.awt.RenderingHints.KEY_STROKE_CONTROL
          Stroke normalization control hint key.
static RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key KEY_TEXT_ANTIALIASING sample code for java.awt.RenderingHints.KEY_TEXT_ANTIALIASING definition code for java.awt.RenderingHints.KEY_TEXT_ANTIALIASING
          Text antialiasing hint key.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_ALPHA_INTERPOLATION_DEFAULT sample code for java.awt.RenderingHints.VALUE_ALPHA_INTERPOLATION_DEFAULT definition code for java.awt.RenderingHints.VALUE_ALPHA_INTERPOLATION_DEFAULT
          Alpha interpolation hint value -- ALPHA_INTERPOLATION_DEFAULT.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_ALPHA_INTERPOLATION_QUALITY sample code for java.awt.RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY definition code for java.awt.RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY
          Alpha interpolation hint value -- ALPHA_INTERPOLATION_QUALITY.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_ALPHA_INTERPOLATION_SPEED sample code for java.awt.RenderingHints.VALUE_ALPHA_INTERPOLATION_SPEED definition code for java.awt.RenderingHints.VALUE_ALPHA_INTERPOLATION_SPEED
          Alpha interpolation hint value -- ALPHA_INTERPOLATION_SPEED.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_ANTIALIAS_DEFAULT sample code for java.awt.RenderingHints.VALUE_ANTIALIAS_DEFAULT definition code for java.awt.RenderingHints.VALUE_ANTIALIAS_DEFAULT
          Antialiasing hint values -- rendering is done with the platform default antialiasing mode.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_ANTIALIAS_OFF sample code for java.awt.RenderingHints.VALUE_ANTIALIAS_OFF definition code for java.awt.RenderingHints.VALUE_ANTIALIAS_OFF
          Antialiasing hint values -- rendering is done without antialiasing.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_ANTIALIAS_ON sample code for java.awt.RenderingHints.VALUE_ANTIALIAS_ON definition code for java.awt.RenderingHints.VALUE_ANTIALIAS_ON
          Antialiasing hint values -- rendering is done with antialiasing.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_COLOR_RENDER_DEFAULT sample code for java.awt.RenderingHints.VALUE_COLOR_RENDER_DEFAULT definition code for java.awt.RenderingHints.VALUE_COLOR_RENDER_DEFAULT
          Color rendering hint value -- COLOR_RENDER_DEFAULT.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_COLOR_RENDER_QUALITY sample code for java.awt.RenderingHints.VALUE_COLOR_RENDER_QUALITY definition code for java.awt.RenderingHints.VALUE_COLOR_RENDER_QUALITY
          Color rendering hint value -- COLOR_RENDER_QUALITY.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_COLOR_RENDER_SPEED sample code for java.awt.RenderingHints.VALUE_COLOR_RENDER_SPEED definition code for java.awt.RenderingHints.VALUE_COLOR_RENDER_SPEED
          Color rendering hint value -- COLOR_RENDER_SPEED.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_DITHER_DEFAULT sample code for java.awt.RenderingHints.VALUE_DITHER_DEFAULT definition code for java.awt.RenderingHints.VALUE_DITHER_DEFAULT
          Dithering hint values -- use the platform default for dithering.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_DITHER_DISABLE sample code for java.awt.RenderingHints.VALUE_DITHER_DISABLE definition code for java.awt.RenderingHints.VALUE_DITHER_DISABLE
          Dithering hint values -- do not dither when rendering.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_DITHER_ENABLE sample code for java.awt.RenderingHints.VALUE_DITHER_ENABLE definition code for java.awt.RenderingHints.VALUE_DITHER_ENABLE
          Dithering hint values -- dither when rendering, if needed.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_FRACTIONALMETRICS_DEFAULT sample code for java.awt.RenderingHints.VALUE_FRACTIONALMETRICS_DEFAULT definition code for java.awt.RenderingHints.VALUE_FRACTIONALMETRICS_DEFAULT
          Font fractional metrics hint values -- use the platform default for fractional metrics.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_FRACTIONALMETRICS_OFF sample code for java.awt.RenderingHints.VALUE_FRACTIONALMETRICS_OFF definition code for java.awt.RenderingHints.VALUE_FRACTIONALMETRICS_OFF
          Font fractional metrics hint values -- fractional metrics disabled.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_FRACTIONALMETRICS_ON sample code for java.awt.RenderingHints.VALUE_FRACTIONALMETRICS_ON definition code for java.awt.RenderingHints.VALUE_FRACTIONALMETRICS_ON
          Font fractional metrics hint values -- fractional metrics enabled.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_INTERPOLATION_BICUBIC sample code for java.awt.RenderingHints.VALUE_INTERPOLATION_BICUBIC definition code for java.awt.RenderingHints.VALUE_INTERPOLATION_BICUBIC
          Interpolation hint value -- INTERPOLATION_BICUBIC.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_INTERPOLATION_BILINEAR sample code for java.awt.RenderingHints.VALUE_INTERPOLATION_BILINEAR definition code for java.awt.RenderingHints.VALUE_INTERPOLATION_BILINEAR
          Interpolation hint value -- INTERPOLATION_BILINEAR.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_INTERPOLATION_NEAREST_NEIGHBOR sample code for java.awt.RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR definition code for java.awt.RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR
          Interpolation hint value -- INTERPOLATION_NEAREST_NEIGHBOR.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_RENDER_DEFAULT sample code for java.awt.RenderingHints.VALUE_RENDER_DEFAULT definition code for java.awt.RenderingHints.VALUE_RENDER_DEFAULT
          Rendering hint values -- The platform default rendering algorithms are chosen.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_RENDER_QUALITY sample code for java.awt.RenderingHints.VALUE_RENDER_QUALITY definition code for java.awt.RenderingHints.VALUE_RENDER_QUALITY
          Rendering hint values -- Appropriate rendering algorithms are chosen with a preference for output quality.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_RENDER_SPEED sample code for java.awt.RenderingHints.VALUE_RENDER_SPEED definition code for java.awt.RenderingHints.VALUE_RENDER_SPEED
          Rendering hint values -- Appropriate rendering algorithms are chosen with a preference for output speed.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_STROKE_DEFAULT sample code for java.awt.RenderingHints.VALUE_STROKE_DEFAULT definition code for java.awt.RenderingHints.VALUE_STROKE_DEFAULT
          Stroke normalization control hint value -- STROKE_DEFAULT.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_STROKE_NORMALIZE sample code for java.awt.RenderingHints.VALUE_STROKE_NORMALIZE definition code for java.awt.RenderingHints.VALUE_STROKE_NORMALIZE
          Stroke normalization control hint value -- STROKE_NORMALIZE.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_STROKE_PURE sample code for java.awt.RenderingHints.VALUE_STROKE_PURE definition code for java.awt.RenderingHints.VALUE_STROKE_PURE
          Stroke normalization control hint value -- STROKE_PURE.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_TEXT_ANTIALIAS_DEFAULT sample code for java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT definition code for java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT
          Text antialiasing hint value -- text rendering is done using the platform default text antialiasing mode.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_TEXT_ANTIALIAS_OFF sample code for java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_OFF definition code for java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_OFF
          Text antialiasing hint value -- text rendering is done without antialiasing.
static Object sample code for java.lang.Object definition code for java.lang.Object VALUE_TEXT_ANTIALIAS_ON sample code for java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_ON definition code for java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_ON
          Text antialiasing hint value -- text rendering is done with antialiasing.
 
Constructor Summary
RenderingHints sample code for java.awt.RenderingHints.RenderingHints(java.util.Map) definition code for java.awt.RenderingHints.RenderingHints(java.util.Map) (Map sample code for java.util.Map definition code for java.util.Map <RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key ,?> init)
          Constructs a new object with keys and values initialized from the specified Map object (which may be null).
RenderingHints sample code for java.awt.RenderingHints.RenderingHints(java.awt.RenderingHints.Key, java.lang.Object) definition code for java.awt.RenderingHints.RenderingHints(java.awt.RenderingHints.Key, java.lang.Object) (RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key  key, Object sample code for java.lang.Object definition code for java.lang.Object  value)
          Constructs a new object with the specified key/value pair.
 
Method Summary
 void add sample code for java.awt.RenderingHints.add(java.awt.RenderingHints) definition code for java.awt.RenderingHints.add(java.awt.RenderingHints) (RenderingHints sample code for java.awt.RenderingHints definition code for java.awt.RenderingHints  hints)
          Adds all of the keys and corresponding values from the specified RenderingHints object to this RenderingHints object.
 void clear sample code for java.awt.RenderingHints.clear() definition code for java.awt.RenderingHints.clear() ()
          Clears this RenderingHints object of all key/value pairs.
 Object sample code for java.lang.Object definition code for java.lang.Object clone sample code for java.awt.RenderingHints.clone() definition code for java.awt.RenderingHints.clone() ()
          Creates a clone of this RenderingHints object that has the same contents as this RenderingHints object.
 boolean containsKey sample code for java.awt.RenderingHints.containsKey(java.lang.Object) definition code for java.awt.RenderingHints.containsKey(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  key)
          Returns true if this RenderingHints contains a mapping for the specified key.
 boolean containsValue sample code for java.awt.RenderingHints.containsValue(java.lang.Object) definition code for java.awt.RenderingHints.containsValue(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  value)
          Returns true if this RenderingHints maps one or more keys to the specified value.
 Set sample code for java.util.Set definition code for java.util.Set <Map.Entry sample code for java.util.Map.Entry definition code for java.util.Map.Entry <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >> entrySet sample code for java.awt.RenderingHints.entrySet() definition code for java.awt.RenderingHints.entrySet() ()
          Returns a Set view of the mappings contained in this RenderingHints.
 boolean equals sample code for java.awt.RenderingHints.equals(java.lang.Object) definition code for java.awt.RenderingHints.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  o)
          Compares the specified Object with this RenderingHints for equality.
 Object sample code for java.lang.Object definition code for java.lang.Object get sample code for java.awt.RenderingHints.get(java.lang.Object) definition code for java.awt.RenderingHints.get(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  key)
          Returns the value to which the specified key is mapped.
 int hashCode sample code for java.awt.RenderingHints.hashCode() definition code for java.awt.RenderingHints.hashCode() ()
          Returns the hash code value for this RenderingHints.
 boolean isEmpty sample code for java.awt.RenderingHints.isEmpty() definition code for java.awt.RenderingHints.isEmpty() ()
          Returns true if this RenderingHints contains no key-value mappings.
 Set sample code for java.util.Set definition code for java.util.Set <Object sample code for java.lang.Object definition code for java.lang.Object > keySet sample code for java.awt.RenderingHints.keySet() definition code for java.awt.RenderingHints.keySet() ()
          Returns a Set view of the Keys contained in this RenderingHints.
 Object sample code for java.lang.Object definition code for java.lang.Object put sample code for java.awt.RenderingHints.put(java.lang.Object, java.lang.Object) definition code for java.awt.RenderingHints.put(java.lang.Object, java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  key, Object sample code for java.lang.Object definition code for java.lang.Object  value)
          Maps the specified key to the specified value in this RenderingHints object.
 void putAll sample code for java.awt.RenderingHints.putAll(java.util.Map) definition code for java.awt.RenderingHints.putAll(java.util.Map) (Map sample code for java.util.Map definition code for java.util.Map <?,?> m)
          Copies all of the mappings from the specified Map to this RenderingHints.
 Object sample code for java.lang.Object definition code for java.lang.Object remove sample code for java.awt.RenderingHints.remove(java.lang.Object) definition code for java.awt.RenderingHints.remove(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  key)
          Removes the key and its corresponding value from this RenderingHints object.
 int size sample code for java.awt.RenderingHints.size() definition code for java.awt.RenderingHints.size() ()
          Returns the number of key-value mappings in this RenderingHints.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for java.awt.RenderingHints.toString() definition code for java.awt.RenderingHints.toString() ()
          Returns a rather long string representation of the hashmap which contains the mappings of keys to values for this RenderingHints object.
 Collection sample code for java.util.Collection definition code for java.util.Collection <Object sample code for java.lang.Object definition code for java.lang.Object > values sample code for java.awt.RenderingHints.values() definition code for java.awt.RenderingHints.values() ()
          Returns a Collection view of the values contained in this RenderinHints.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
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() , 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)
 

Field Detail

KEY_ANTIALIASING sample code for java.awt.RenderingHints.KEY_ANTIALIASING

public static final RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key  KEY_ANTIALIASING
Antialiasing hint key.


VALUE_ANTIALIAS_ON sample code for java.awt.RenderingHints.VALUE_ANTIALIAS_ON

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_ANTIALIAS_ON
Antialiasing hint values -- rendering is done with antialiasing.


VALUE_ANTIALIAS_OFF sample code for java.awt.RenderingHints.VALUE_ANTIALIAS_OFF

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_ANTIALIAS_OFF
Antialiasing hint values -- rendering is done without antialiasing.


VALUE_ANTIALIAS_DEFAULT sample code for java.awt.RenderingHints.VALUE_ANTIALIAS_DEFAULT

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_ANTIALIAS_DEFAULT
Antialiasing hint values -- rendering is done with the platform default antialiasing mode.


KEY_RENDERING sample code for java.awt.RenderingHints.KEY_RENDERING

public static final RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key  KEY_RENDERING
Rendering hint key.


VALUE_RENDER_SPEED sample code for java.awt.RenderingHints.VALUE_RENDER_SPEED

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_RENDER_SPEED
Rendering hint values -- Appropriate rendering algorithms are chosen with a preference for output speed.


VALUE_RENDER_QUALITY sample code for java.awt.RenderingHints.VALUE_RENDER_QUALITY

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_RENDER_QUALITY
Rendering hint values -- Appropriate rendering algorithms are chosen with a preference for output quality.


VALUE_RENDER_DEFAULT sample code for java.awt.RenderingHints.VALUE_RENDER_DEFAULT

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_RENDER_DEFAULT
Rendering hint values -- The platform default rendering algorithms are chosen.


KEY_DITHERING sample code for java.awt.RenderingHints.KEY_DITHERING

public static final RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key  KEY_DITHERING
Dithering hint key.


VALUE_DITHER_DISABLE sample code for java.awt.RenderingHints.VALUE_DITHER_DISABLE

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_DITHER_DISABLE
Dithering hint values -- do not dither when rendering.


VALUE_DITHER_ENABLE sample code for java.awt.RenderingHints.VALUE_DITHER_ENABLE

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_DITHER_ENABLE
Dithering hint values -- dither when rendering, if needed.


VALUE_DITHER_DEFAULT sample code for java.awt.RenderingHints.VALUE_DITHER_DEFAULT

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_DITHER_DEFAULT
Dithering hint values -- use the platform default for dithering.


KEY_TEXT_ANTIALIASING sample code for java.awt.RenderingHints.KEY_TEXT_ANTIALIASING

public static final RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key  KEY_TEXT_ANTIALIASING
Text antialiasing hint key.


VALUE_TEXT_ANTIALIAS_ON sample code for java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_ON

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_TEXT_ANTIALIAS_ON
Text antialiasing hint value -- text rendering is done with antialiasing.


VALUE_TEXT_ANTIALIAS_OFF sample code for java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_OFF

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_TEXT_ANTIALIAS_OFF
Text antialiasing hint value -- text rendering is done without antialiasing.


VALUE_TEXT_ANTIALIAS_DEFAULT sample code for java.awt.RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_TEXT_ANTIALIAS_DEFAULT
Text antialiasing hint value -- text rendering is done using the platform default text antialiasing mode.


KEY_FRACTIONALMETRICS sample code for java.awt.RenderingHints.KEY_FRACTIONALMETRICS

public static final RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key  KEY_FRACTIONALMETRICS
Font fractional metrics hint key.


VALUE_FRACTIONALMETRICS_OFF sample code for java.awt.RenderingHints.VALUE_FRACTIONALMETRICS_OFF

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_FRACTIONALMETRICS_OFF
Font fractional metrics hint values -- fractional metrics disabled.


VALUE_FRACTIONALMETRICS_ON sample code for java.awt.RenderingHints.VALUE_FRACTIONALMETRICS_ON

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_FRACTIONALMETRICS_ON
Font fractional metrics hint values -- fractional metrics enabled.


VALUE_FRACTIONALMETRICS_DEFAULT sample code for java.awt.RenderingHints.VALUE_FRACTIONALMETRICS_DEFAULT

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_FRACTIONALMETRICS_DEFAULT
Font fractional metrics hint values -- use the platform default for fractional metrics.


KEY_INTERPOLATION sample code for java.awt.RenderingHints.KEY_INTERPOLATION

public static final RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key  KEY_INTERPOLATION
Interpolation hint key.


VALUE_INTERPOLATION_NEAREST_NEIGHBOR sample code for java.awt.RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_INTERPOLATION_NEAREST_NEIGHBOR
Interpolation hint value -- INTERPOLATION_NEAREST_NEIGHBOR.


VALUE_INTERPOLATION_BILINEAR sample code for java.awt.RenderingHints.VALUE_INTERPOLATION_BILINEAR

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_INTERPOLATION_BILINEAR
Interpolation hint value -- INTERPOLATION_BILINEAR.


VALUE_INTERPOLATION_BICUBIC sample code for java.awt.RenderingHints.VALUE_INTERPOLATION_BICUBIC

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_INTERPOLATION_BICUBIC
Interpolation hint value -- INTERPOLATION_BICUBIC.


KEY_ALPHA_INTERPOLATION sample code for java.awt.RenderingHints.KEY_ALPHA_INTERPOLATION

public static final RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key  KEY_ALPHA_INTERPOLATION
Alpha interpolation hint key.


VALUE_ALPHA_INTERPOLATION_SPEED sample code for java.awt.RenderingHints.VALUE_ALPHA_INTERPOLATION_SPEED

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_ALPHA_INTERPOLATION_SPEED
Alpha interpolation hint value -- ALPHA_INTERPOLATION_SPEED.


VALUE_ALPHA_INTERPOLATION_QUALITY sample code for java.awt.RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_ALPHA_INTERPOLATION_QUALITY
Alpha interpolation hint value -- ALPHA_INTERPOLATION_QUALITY.


VALUE_ALPHA_INTERPOLATION_DEFAULT sample code for java.awt.RenderingHints.VALUE_ALPHA_INTERPOLATION_DEFAULT

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_ALPHA_INTERPOLATION_DEFAULT
Alpha interpolation hint value -- ALPHA_INTERPOLATION_DEFAULT.


KEY_COLOR_RENDERING sample code for java.awt.RenderingHints.KEY_COLOR_RENDERING

public static final RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key  KEY_COLOR_RENDERING
Color rendering hint key.


VALUE_COLOR_RENDER_SPEED sample code for java.awt.RenderingHints.VALUE_COLOR_RENDER_SPEED

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_COLOR_RENDER_SPEED
Color rendering hint value -- COLOR_RENDER_SPEED.


VALUE_COLOR_RENDER_QUALITY sample code for java.awt.RenderingHints.VALUE_COLOR_RENDER_QUALITY

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_COLOR_RENDER_QUALITY
Color rendering hint value -- COLOR_RENDER_QUALITY.


VALUE_COLOR_RENDER_DEFAULT sample code for java.awt.RenderingHints.VALUE_COLOR_RENDER_DEFAULT

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_COLOR_RENDER_DEFAULT
Color rendering hint value -- COLOR_RENDER_DEFAULT.


KEY_STROKE_CONTROL sample code for java.awt.RenderingHints.KEY_STROKE_CONTROL

public static final RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key  KEY_STROKE_CONTROL
Stroke normalization control hint key.


VALUE_STROKE_DEFAULT sample code for java.awt.RenderingHints.VALUE_STROKE_DEFAULT

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_STROKE_DEFAULT
Stroke normalization control hint value -- STROKE_DEFAULT.


VALUE_STROKE_NORMALIZE sample code for java.awt.RenderingHints.VALUE_STROKE_NORMALIZE

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_STROKE_NORMALIZE
Stroke normalization control hint value -- STROKE_NORMALIZE.


VALUE_STROKE_PURE sample code for java.awt.RenderingHints.VALUE_STROKE_PURE

public static final Object sample code for java.lang.Object definition code for java.lang.Object  VALUE_STROKE_PURE
Stroke normalization control hint value -- STROKE_PURE.

Constructor Detail

RenderingHints sample code for java.awt.RenderingHints(java.util.Map<java.awt.RenderingHints.Key, ?>) definition code for java.awt.RenderingHints(java.util.Map<java.awt.RenderingHints.Key, ?>)

public RenderingHints(Map sample code for java.util.Map definition code for java.util.Map <RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key ,?> init)
Constructs a new object with keys and values initialized from the specified Map object (which may be null).

Parameters:
init - a map of key/value pairs to initialize the hints or null if the object should be empty

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

public RenderingHints(RenderingHints.Key sample code for java.awt.RenderingHints.Key definition code for java.awt.RenderingHints.Key  key,
                      Object sample code for java.lang.Object definition code for java.lang.Object  value)
Constructs a new object with the specified key/value pair.

Parameters:
key - the key of the particular hint property
value - the value of the hint property specified with key
Method Detail

size sample code for java.awt.RenderingHints.size() definition code for java.awt.RenderingHints.size()

public int size()
Returns the number of key-value mappings in this RenderingHints.

Specified by:
size sample code for java.util.Map.size() definition code for java.util.Map.size() in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
Returns:
the number of key-value mappings in this RenderingHints.

isEmpty sample code for java.awt.RenderingHints.isEmpty() definition code for java.awt.RenderingHints.isEmpty()

public boolean isEmpty()
Returns true if this RenderingHints contains no key-value mappings.

Specified by:
isEmpty sample code for java.util.Map.isEmpty() definition code for java.util.Map.isEmpty() in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
Returns:
true if this RenderingHints contains no key-value mappings.

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

public boolean containsKey(Object sample code for java.lang.Object definition code for java.lang.Object  key)
Returns true if this RenderingHints contains a mapping for the specified key.

Specified by:
containsKey sample code for java.util.Map.containsKey(java.lang.Object) definition code for java.util.Map.containsKey(java.lang.Object) in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
Parameters:
key - key whose presence in this RenderingHints is to be tested.
Returns:
true if this RenderingHints contains a mapping for the specified key.
Throws:
ClassCastException - key is not of type RenderingHints.Key
NullPointerException - key is null

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

public boolean containsValue(Object sample code for java.lang.Object definition code for java.lang.Object  value)
Returns true if this RenderingHints maps one or more keys to the specified value. More formally, returns true if and only if this RenderingHints contains at least one mapping to a value v such that
 (value==null ? v==null : value.equals(v))
 
. This operation will probably require time linear in the RenderingHints size for most implementations of RenderingHints.

Specified by:
containsValue sample code for java.util.Map.containsValue(java.lang.Object) definition code for java.util.Map.containsValue(java.lang.Object) in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
Parameters:
value - value whose presence in this RenderingHints is to be tested.
Returns:
true if this RenderingHints maps one or more keys to the specified value.

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

public Object sample code for java.lang.Object definition code for java.lang.Object  get(Object sample code for java.lang.Object definition code for java.lang.Object  key)
Returns the value to which the specified key is mapped.

Specified by:
get sample code for java.util.Map.get(java.lang.Object) definition code for java.util.Map.get(java.lang.Object) in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
Parameters:
key - a rendering hint key
Returns:
the value to which the key is mapped in this object or null if the key is not mapped to any value in this object.
Throws:
ClassCastException - key is not of type RenderingHints.Key.
See Also:
put(Object, Object) sample code for java.awt.RenderingHints.put(java.lang.Object, java.lang.Object) definition code for java.awt.RenderingHints.put(java.lang.Object, java.lang.Object)

put sample code for java.awt.RenderingHints.put(java.lang.Object, java.lang.Object) definition code for java.awt.RenderingHints.put(java.lang.Object, java.lang.Object)

public Object sample code for java.lang.Object definition code for java.lang.Object  put(Object sample code for java.lang.Object definition code for java.lang.Object  key,
                  Object sample code for java.lang.Object definition code for java.lang.Object  value)
Maps the specified key to the specified value in this RenderingHints 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.

Specified by:
put sample code for java.util.Map.put(K, V) definition code for java.util.Map.put(K, V) in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
Parameters:
key - the rendering hint key.
value - the rendering hint 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.
ClassCastException - key is not of type RenderingHints.Key.
IllegalArgumentException - value is not appropriate for the specified key.
See Also:
get(Object) sample code for java.awt.RenderingHints.get(java.lang.Object) definition code for java.awt.RenderingHints.get(java.lang.Object)

add sample code for java.awt.RenderingHints.add(java.awt.RenderingHints) definition code for java.awt.RenderingHints.add(java.awt.RenderingHints)

public void add(RenderingHints sample code for java.awt.RenderingHints definition code for java.awt.RenderingHints  hints)
Adds all of the keys and corresponding values from the specified RenderingHints object to this RenderingHints object. Keys that are present in this RenderingHints object, but not in the specified RenderingHints object are not affected.

Parameters:
hints - the set of key/value pairs to be added to this RenderingHints object

clear sample code for java.awt.RenderingHints.clear() definition code for java.awt.RenderingHints.clear()

public void clear()
Clears this RenderingHints object of all key/value pairs.

Specified by:
clear sample code for java.util.Map.clear() definition code for java.util.Map.clear() in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >

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

public Object sample code for java.lang.Object definition code for java.lang.Object  remove(Object sample code for java.lang.Object definition code for java.lang.Object  key)
Removes the key and its corresponding value from this RenderingHints object. This method does nothing if the key is not in this RenderingHints object.

Specified by:
remove sample code for java.util.Map.remove(java.lang.Object) definition code for java.util.Map.remove(java.lang.Object) in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
Parameters:
key - the rendering hints key that needs to be removed
Returns:
the value to which the key had previously been mapped in this RenderingHints object, or null if the key did not have a mapping.
Throws:
ClassCastException - key is not of type RenderingHints.Key.

putAll sample code for java.awt.RenderingHints.putAll(java.util.Map<?, ?>) definition code for java.awt.RenderingHints.putAll(java.util.Map<?, ?>)

public void putAll(Map sample code for java.util.Map definition code for java.util.Map <?,?> m)
Copies all of the mappings from the specified Map to this RenderingHints. These mappings replace any mappings that this RenderingHints had for any of the keys currently in the specified Map.

Specified by:
putAll sample code for java.util.Map.putAll(java.util.Map) definition code for java.util.Map.putAll(java.util.Map) in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
Parameters:
m - the specified Map
Throws:
ClassCastException - class of a key or value in the specified Map prevents it from being stored in this RenderingHints.
IllegalArgumentException - some aspect of a key or value in the specified Map prevents it from being stored in this RenderingHints.

keySet sample code for java.awt.RenderingHints.keySet() definition code for java.awt.RenderingHints.keySet()

public Set sample code for java.util.Set definition code for java.util.Set <Object sample code for java.lang.Object definition code for java.lang.Object > keySet()
Returns a Set view of the Keys contained in this RenderingHints. The Set is backed by the RenderingHints, so changes to the RenderingHints are reflected in the Set, and vice-versa. If the RenderingHints is modified while an iteration over the Set is in progress, the results of the iteration are undefined. The Set supports element removal, which removes the corresponding mapping from the RenderingHints, via the Iterator.remove, Set.remove, removeAll retainAll, and clear operations. It does not support the add or addAll operations.

Specified by:
keySet sample code for java.util.Map.keySet() definition code for java.util.Map.keySet() in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
Returns:
a Set view of the keys contained in this RenderingHints.

values sample code for java.awt.RenderingHints.values() definition code for java.awt.RenderingHints.values()

public Collection sample code for java.util.Collection definition code for java.util.Collection <Object sample code for java.lang.Object definition code for java.lang.Object > values()
Returns a Collection view of the values contained in this RenderinHints. The Collection is backed by the RenderingHints, so changes to the RenderingHints are reflected in the Collection, and vice-versa. If the RenderingHints is modified while an iteration over the Collection is in progress, the results of the iteration are undefined. The Collection supports element removal, which removes the corresponding mapping from the RenderingHints, via the Iterator.remove, Collection.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.

Specified by:
values sample code for java.util.Map.values() definition code for java.util.Map.values() in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
Returns:
a Collection view of the values contained in this RenderingHints.

entrySet sample code for java.awt.RenderingHints.entrySet() definition code for java.awt.RenderingHints.entrySet()

public Set sample code for java.util.Set definition code for java.util.Set <Map.Entry sample code for java.util.Map.Entry definition code for java.util.Map.Entry <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >> entrySet()
Returns a Set view of the mappings contained in this RenderingHints. Each element in the returned Set is a Map.Entry. The Set is backed by the RenderingHints, so changes to the RenderingHints are reflected in the Set, and vice-versa. If the RenderingHints is modified while while an iteration over the Set is in progress, the results of the iteration are undefined.

The entrySet returned from a RenderingHints object is not modifiable.

Specified by:
entrySet sample code for java.util.Map.entrySet() definition code for java.util.Map.entrySet() in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
Returns:
a Set view of the mappings contained in this RenderingHints.

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

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  o)
Compares the specified Object with this RenderingHints for equality. Returns true if the specified object is also a Map and the two Map objects represent the same mappings. More formally, two Map objects t1 and t2 represent the same mappings if t1.keySet().equals(t2.keySet()) and for every key k in t1.keySet(),
 (t1.get(k)==null ? t2.get(k)==null : t1.get(k).equals(t2.get(k)))
 
. This ensures that the equals method works properly across different implementations of the Map interface.

Specified by:
equals sample code for java.util.Map.equals(java.lang.Object) definition code for java.util.Map.equals(java.lang.Object) in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
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 - Object to be compared for equality with this RenderingHints.
Returns:
true if the specified Object is equal to this RenderingHints.
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

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

public int hashCode()
Returns the hash code value for this RenderingHints. The hash code of a RenderingHints is defined to be the sum of the hashCodes of each Entry in the RenderingHints object's entrySet view. This ensures that t1.equals(t2) implies that t1.hashCode()==t2.hashCode() for any two Map objects t1 and t2, as required by the general contract of Object.hashCode.

Specified by:
hashCode sample code for java.util.Map.hashCode() definition code for java.util.Map.hashCode() in interface Map sample code for java.util.Map definition code for java.util.Map <Object sample code for java.lang.Object definition code for java.lang.Object ,Object sample code for java.lang.Object definition code for java.lang.Object >
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:
the hash code value for this RenderingHints.
See Also:
Map.Entry.hashCode() sample code for java.util.Map.Entry.hashCode() definition code for java.util.Map.Entry.hashCode() , Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Object.equals(Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , equals(Object) sample code for java.awt.RenderingHints.equals(java.lang.Object) definition code for java.awt.RenderingHints.equals(java.lang.Object)

clone sample code for java.awt.RenderingHints.clone() definition code for java.awt.RenderingHints.clone()

public Object sample code for java.lang.Object definition code for java.lang.Object  clone()
Creates a clone of this RenderingHints object that has the same contents as this RenderingHints object.

Overrides:
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a clone of this instance.
See Also:
Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable

toString sample code for java.awt.RenderingHints.toString() definition code for java.awt.RenderingHints.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a rather long string representation of the hashmap which contains the mappings of keys to values for this RenderingHints object.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of this object.