Java java.awt RenderingHints fields, constructors, methods, implement or subclass

Example usage for Java java.awt RenderingHints fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt RenderingHints.

The text is from its open source code.

Field

KeyKEY_ANTIALIASING
Antialiasing hint key.
ObjectVALUE_ANTIALIAS_ON
Antialiasing hint value -- rendering is done with antialiasing.
ObjectVALUE_ANTIALIAS_OFF
Antialiasing hint value -- rendering is done without antialiasing.
ObjectVALUE_ANTIALIAS_DEFAULT
Antialiasing hint value -- rendering is done with a default antialiasing mode chosen by the implementation.
KeyKEY_RENDERING
Rendering hint key.
ObjectVALUE_RENDER_SPEED
Rendering hint value -- rendering algorithms are chosen with a preference for output speed.
ObjectVALUE_RENDER_QUALITY
Rendering hint value -- rendering algorithms are chosen with a preference for output quality.
ObjectVALUE_RENDER_DEFAULT
Rendering hint value -- rendering algorithms are chosen by the implementation for a good tradeoff of performance vs.
KeyKEY_DITHERING
Dithering hint key.
ObjectVALUE_DITHER_DISABLE
Dithering hint value -- do not dither when rendering geometry.
ObjectVALUE_DITHER_ENABLE
Dithering hint value -- dither when rendering geometry, if needed.
ObjectVALUE_DITHER_DEFAULT
Dithering hint value -- use a default for dithering chosen by the implementation.
KeyKEY_TEXT_ANTIALIASING
Text antialiasing hint key.
ObjectVALUE_TEXT_ANTIALIAS_ON
Text antialiasing hint value -- text rendering is done with some form of antialiasing.
ObjectVALUE_TEXT_ANTIALIAS_OFF
Text antialiasing hint value -- text rendering is done without any form of antialiasing.
ObjectVALUE_TEXT_ANTIALIAS_DEFAULT
Text antialiasing hint value -- text rendering is done according to the #KEY_ANTIALIASING hint or a default chosen by the implementation.
ObjectVALUE_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 #VALUE_TEXT_ANTIALIAS_ON or #VALUE_TEXT_ANTIALIAS_OFF .
ObjectVALUE_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).
ObjectVALUE_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).
ObjectVALUE_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).
ObjectVALUE_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).
KeyKEY_TEXT_LCD_CONTRAST
LCD text contrast rendering hint key.
KeyKEY_FRACTIONALMETRICS
Font fractional metrics hint key.
ObjectVALUE_FRACTIONALMETRICS_OFF
Font fractional metrics hint value -- character glyphs are positioned with advance widths rounded to pixel boundaries.
ObjectVALUE_FRACTIONALMETRICS_ON
Font fractional metrics hint value -- character glyphs are positioned with sub-pixel accuracy.
ObjectVALUE_FRACTIONALMETRICS_DEFAULT
Font fractional metrics hint value -- character glyphs are positioned with accuracy chosen by the implementation.
KeyKEY_INTERPOLATION
Interpolation hint key.
ObjectVALUE_INTERPOLATION_NEAREST_NEIGHBOR
Interpolation hint value -- the color sample of the nearest neighboring integer coordinate sample in the image is used.
ObjectVALUE_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.
ObjectVALUE_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.
KeyKEY_ALPHA_INTERPOLATION
Alpha interpolation hint key.
ObjectVALUE_ALPHA_INTERPOLATION_SPEED
Alpha interpolation hint value -- alpha blending algorithms are chosen with a preference for calculation speed.
ObjectVALUE_ALPHA_INTERPOLATION_QUALITY
Alpha interpolation hint value -- alpha blending algorithms are chosen with a preference for precision and visual quality.
ObjectVALUE_ALPHA_INTERPOLATION_DEFAULT
Alpha interpolation hint value -- alpha blending algorithms are chosen by the implementation for a good tradeoff of performance vs.
KeyKEY_COLOR_RENDERING
Color rendering hint key.
ObjectVALUE_COLOR_RENDER_SPEED
Color rendering hint value -- perform the fastest color conversion to the format of the output device.
ObjectVALUE_COLOR_RENDER_QUALITY
Color rendering hint value -- perform the color conversion calculations with the highest accuracy and visual quality.
KeyKEY_STROKE_CONTROL
Stroke normalization control hint key.
ObjectVALUE_STROKE_DEFAULT
Stroke normalization control hint value -- geometry may be modified or left pure depending on the tradeoffs in a given implementation.
ObjectVALUE_STROKE_NORMALIZE
Stroke normalization control hint value -- geometry should be normalized to improve uniformity or spacing of lines and overall aesthetics.
ObjectVALUE_STROKE_PURE
Stroke normalization control hint value -- geometry should be left unmodified and rendered with sub-pixel accuracy.

Constructor

RenderingHints(Key key, Object value)
Constructs a new object with the specified key/value pair.
RenderingHints(Map init)
Constructs a new object with keys and values initialized from the specified Map object which may be null.

Method

voidadd(RenderingHints hints)
Adds all of the keys and corresponding values from the specified RenderingHints object to this RenderingHints object.
booleancontainsValue(Object value)
Returns true if this RenderingHints maps one or more keys to the specified value.
Objectget(Object key)
Returns the value to which the specified key is mapped.
Objectput(Object key, Object value)
Maps the specified key to the specified value in this RenderingHints object.