API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. RenderingHints View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      RenderingHints
Implements
 Map
 Cloneable
Subclasses
Description
public class RenderingHints
  The RenderingHints class defines and manages collections of keys and associated values which allow an application to provide input into the choice of algorithms used by other classes which perform rendering and image manipulation services.
See also:   
Constructors
public RenderingHints (Map<Key, Object> init)
  Constructs a new object with keys and values initialized from the specified Map object which may be null.
public RenderingHints (Key key, Object value)
  Constructs a new object with the specified key/value pair.
Methods
Hide/Show inherited methods
public void add (RenderingHints hints)
  Adds all of the keys and corresponding values from the specified RenderingHints object to this RenderingHints object.
public void clear () [Specified in Map]
Clears this RenderingHints object of all key/value pairs.
public Object clone ()
  Creates a clone of this RenderingHints object that has the same contents as this RenderingHints object.
public boolean containsKey (Object key) [Specified in Map]
  Returns true if this RenderingHints contains a mapping for the specified key.
public boolean containsValue (Object value) [Specified in Map]
  Returns true if this RenderingHints maps one or more keys to the specified value.
public Set<Entry<Object, Object>> entrySet () [Specified in Map]
  Returns a Set view of the mappings contained in this RenderingHints.
public boolean equals (Object o) [Specified in Map]
  Compares the specified Object with this RenderingHints for equality.
public Object get (Object key) [Specified in Map]
  Returns the value to which the specified key is mapped.
public int hashCode () [Specified in Map]
  Returns the hash code value for this RenderingHints.
public boolean isEmpty () [Specified in Map]
  Returns true if this RenderingHints contains no key-value mappings.
public Set<Object> keySet () [Specified in Map]
  Returns a Set view of the Keys contained in this RenderingHints.
public Object put (Object key, Object value)
  Maps the specified key to the specified value in this RenderingHints object.
public void putAll (Map<Object, Object> m)
  Copies all of the mappings from the specified Map to this RenderingHints.
public Object remove (Object key) [Specified in Map]
  Removes the key and its corresponding value from this RenderingHints object.
public int size () [Specified in Map]
  Returns the number of key-value mappings in this RenderingHints.
public String toString ()
  Returns a rather long string representation of the hashmap which contains the mappings of keys to values for this RenderingHints object.
public Collection<Object> values () [Specified in Map]
  Returns a Collection view of the values contained in this RenderinHints.
Fields
Hide/Show inherited fields
pack-private HashMap hintmap
publicfinalstatic Key KEY_ALPHA_INTERPOLATION
  Alpha interpolation hint key.
publicfinalstatic Key KEY_ANTIALIASING
  Antialiasing hint key.
publicfinalstatic Key KEY_COLOR_RENDERING
  Color rendering hint key.
publicfinalstatic Key KEY_DITHERING
  Dithering hint key.
publicfinalstatic Key KEY_FRACTIONALMETRICS
  Font fractional metrics hint key.
publicfinalstatic Key KEY_INTERPOLATION
  Interpolation hint key.
publicfinalstatic Key KEY_RENDERING
  Rendering hint key.
publicfinalstatic Key KEY_STROKE_CONTROL
  Stroke normalization control hint key.
publicfinalstatic Key KEY_TEXT_ANTIALIASING
  Text antialiasing hint key.
publicfinalstatic Key KEY_TEXT_LCD_CONTRAST
  LCD text contrast rendering hint key.
publicfinalstatic Object VALUE_ALPHA_INTERPOLATION_DEFAULT
  Alpha interpolation hint value -- alpha blending algorithms are chosen by the implementation for a good tradeoff of performance vs.
publicfinalstatic Object VALUE_ALPHA_INTERPOLATION_QUALITY
  Alpha interpolation hint value -- alpha blending algorithms are chosen with a preference for precision and visual quality.
publicfinalstatic Object VALUE_ALPHA_INTERPOLATION_SPEED
  Alpha interpolation hint value -- alpha blending algorithms are chosen with a preference for calculation speed.
publicfinalstatic Object VALUE_ANTIALIAS_DEFAULT
  Antialiasing hint value -- rendering is done with a default antialiasing mode chosen by the implementation.
publicfinalstatic Object VALUE_ANTIALIAS_OFF
  Antialiasing hint value -- rendering is done without antialiasing.
publicfinalstatic Object VALUE_ANTIALIAS_ON
  Antialiasing hint value -- rendering is done with antialiasing.
publicfinalstatic Object VALUE_COLOR_RENDER_DEFAULT
  Color rendering hint value -- perform color conversion calculations as chosen by the implementation to represent the best available tradeoff between performance and accuracy.
publicfinalstatic Object VALUE_COLOR_RENDER_QUALITY
  Color rendering hint value -- perform the color conversion calculations with the highest accuracy and visual quality.
publicfinalstatic Object VALUE_COLOR_RENDER_SPEED
  Color rendering hint value -- perform the fastest color conversion to the format of the output device.
publicfinalstatic Object VALUE_DITHER_DEFAULT
  Dithering hint value -- use a default for dithering chosen by the implementation.
publicfinalstatic Object VALUE_DITHER_DISABLE
  Dithering hint value -- do not dither when rendering geometry.
publicfinalstatic Object VALUE_DITHER_ENABLE
  Dithering hint value -- dither when rendering geometry, if needed.
publicfinalstatic Object VALUE_FRACTIONALMETRICS_DEFAULT
  Font fractional metrics hint value -- character glyphs are positioned with accuracy chosen by the implementation.
publicfinalstatic Object VALUE_FRACTIONALMETRICS_OFF
  Font fractional metrics hint value -- character glyphs are positioned with advance widths rounded to pixel boundaries.
publicfinalstatic Object VALUE_FRACTIONALMETRICS_ON
  Font fractional metrics hint value -- character glyphs are positioned with sub-pixel accuracy.
publicfinalstatic Object VALUE_INTERPOLATION_BICUBIC
  Interpolation hint value -- the color samples of 9 nearby integer coordinate samples in the image are interpolated using a cubic function in both X and Y to produce a color sample.
publicfinalstatic Object VALUE_INTERPOLATION_BILINEAR
  Interpolation hint value -- the color samples of the 4 nearest neighboring integer coordinate samples in the image are interpolated linearly to produce a color sample.
publicfinalstatic Object VALUE_INTERPOLATION_NEAREST_NEIGHBOR
  Interpolation hint value -- the color sample of the nearest neighboring integer coordinate sample in the image is used.
publicfinalstatic Object VALUE_RENDER_DEFAULT
  Rendering hint value -- rendering algorithms are chosen by the implementation for a good tradeoff of performance vs.
publicfinalstatic Object VALUE_RENDER_QUALITY
  Rendering hint value -- rendering algorithms are chosen with a preference for output quality.
publicfinalstatic Object VALUE_RENDER_SPEED
  Rendering hint value -- rendering algorithms are chosen with a preference for output speed.
publicfinalstatic Object VALUE_STROKE_DEFAULT
  Stroke normalization control hint value -- geometry may be modified or left pure depending on the tradeoffs in a given implementation.
publicfinalstatic Object VALUE_STROKE_NORMALIZE
  Stroke normalization control hint value -- geometry should be normalized to improve uniformity or spacing of lines and overall aesthetics.
publicfinalstatic Object VALUE_STROKE_PURE
  Stroke normalization control hint value -- geometry should be left unmodified and rendered with sub-pixel accuracy.
publicfinalstatic Object VALUE_TEXT_ANTIALIAS_DEFAULT
  Text antialiasing hint value -- text rendering is done according to the RenderingHints.KEY_ANTIALIASING hint or a default chosen by the implementation.
publicfinalstatic Object VALUE_TEXT_ANTIALIAS_GASP
  Text antialiasing hint value -- text rendering is requested to use information in the font resource which specifies for each point size whether to apply RenderingHints.VALUE_TEXT_ANTIALIAS_ON or RenderingHints.VALUE_TEXT_ANTIALIAS_OFF.
publicfinalstatic Object VALUE_TEXT_ANTIALIAS_LCD_HBGR
  Text antialiasing hint value -- request that text be displayed optimised for an LCD display with subpixels in order from display left to right of B,G,R such that the horizontal subpixel resolution is three times that of the full pixel horizontal resolution (HBGR).
publicfinalstatic Object VALUE_TEXT_ANTIALIAS_LCD_HRGB
  Text antialiasing hint value -- request that text be displayed optimised for an LCD display with subpixels in order from display left to right of R,G,B such that the horizontal subpixel resolution is three times that of the full pixel horizontal resolution (HRGB).
publicfinalstatic Object VALUE_TEXT_ANTIALIAS_LCD_VBGR
  Text antialiasing hint value -- request that text be displayed optimised for an LCD display with subpixel organisation from display top to bottom of B,G,R such that the vertical subpixel resolution is three times that of the full pixel vertical resolution (VBGR).
publicfinalstatic Object VALUE_TEXT_ANTIALIAS_LCD_VRGB
  Text antialiasing hint value -- request that text be displayed optimised for an LCD display with subpixel organisation from display top to bottom of R,G,B such that the vertical subpixel resolution is three times that of the full pixel vertical resolution (VRGB).
publicfinalstatic Object VALUE_TEXT_ANTIALIAS_OFF
  Text antialiasing hint value -- text rendering is done without any form of antialiasing.
publicfinalstatic Object VALUE_TEXT_ANTIALIAS_ON
  Text antialiasing hint value -- text rendering is done with some form of antialiasing.
Nested Classes
  RenderingHints.Key
Defines the base type of all keys used along with the RenderingHints class to control various algorithm choices in the rendering and imaging pipelines.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar