Example usage for Java java.awt RenderingHints fields, constructors, methods, implement or subclass
The text is from its open source code.
Key | KEY_ANTIALIASING Antialiasing hint key. |
Object | VALUE_ANTIALIAS_ON Antialiasing hint value -- rendering is done with antialiasing. |
Object | VALUE_ANTIALIAS_OFF Antialiasing hint value -- rendering is done without antialiasing. |
Object | VALUE_ANTIALIAS_DEFAULT Antialiasing hint value -- rendering is done with a default antialiasing mode chosen by the implementation. |
Key | KEY_RENDERING Rendering hint key. |
Object | VALUE_RENDER_SPEED Rendering hint value -- rendering algorithms are chosen with a preference for output speed. |
Object | VALUE_RENDER_QUALITY Rendering hint value -- rendering algorithms are chosen with a preference for output quality. |
Object | VALUE_RENDER_DEFAULT Rendering hint value -- rendering algorithms are chosen by the implementation for a good tradeoff of performance vs. |
Key | KEY_DITHERING Dithering hint key. |
Object | VALUE_DITHER_DISABLE Dithering hint value -- do not dither when rendering geometry. |
Object | VALUE_DITHER_ENABLE Dithering hint value -- dither when rendering geometry, if needed. |
Object | VALUE_DITHER_DEFAULT Dithering hint value -- use a default for dithering chosen by the implementation. |
Key | KEY_TEXT_ANTIALIASING Text antialiasing hint key. |
Object | VALUE_TEXT_ANTIALIAS_ON Text antialiasing hint value -- text rendering is done with some form of antialiasing. |
Object | VALUE_TEXT_ANTIALIAS_OFF Text antialiasing hint value -- text rendering is done without any form of antialiasing. |
Object | VALUE_TEXT_ANTIALIAS_DEFAULT Text antialiasing hint value -- text rendering is done according to the #KEY_ANTIALIASING hint or a default chosen by the implementation. |
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 #VALUE_TEXT_ANTIALIAS_ON or #VALUE_TEXT_ANTIALIAS_OFF . |
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). |
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). |
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). |
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). |
Key | KEY_TEXT_LCD_CONTRAST LCD text contrast rendering hint key. |
Key | KEY_FRACTIONALMETRICS Font fractional metrics hint key. |
Object | VALUE_FRACTIONALMETRICS_OFF Font fractional metrics hint value -- character glyphs are positioned with advance widths rounded to pixel boundaries. |
Object | VALUE_FRACTIONALMETRICS_ON Font fractional metrics hint value -- character glyphs are positioned with sub-pixel accuracy. |
Object | VALUE_FRACTIONALMETRICS_DEFAULT Font fractional metrics hint value -- character glyphs are positioned with accuracy chosen by the implementation. |
Key | KEY_INTERPOLATION Interpolation hint key. |
Object | VALUE_INTERPOLATION_NEAREST_NEIGHBOR Interpolation hint value -- the color sample of the nearest neighboring integer coordinate sample in the image is used. |
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. |
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. |
Key | KEY_ALPHA_INTERPOLATION Alpha interpolation hint key. |
Object | VALUE_ALPHA_INTERPOLATION_SPEED Alpha interpolation hint value -- alpha blending algorithms are chosen with a preference for calculation speed. |
Object | VALUE_ALPHA_INTERPOLATION_QUALITY Alpha interpolation hint value -- alpha blending algorithms are chosen with a preference for precision and visual quality. |
Object | VALUE_ALPHA_INTERPOLATION_DEFAULT Alpha interpolation hint value -- alpha blending algorithms are chosen by the implementation for a good tradeoff of performance vs. |
Key | KEY_COLOR_RENDERING Color rendering hint key. |
Object | VALUE_COLOR_RENDER_SPEED Color rendering hint value -- perform the fastest color conversion to the format of the output device. |
Object | VALUE_COLOR_RENDER_QUALITY Color rendering hint value -- perform the color conversion calculations with the highest accuracy and visual quality. |
Key | KEY_STROKE_CONTROL Stroke normalization control hint key. |
Object | VALUE_STROKE_DEFAULT Stroke normalization control hint value -- geometry may be modified or left pure depending on the tradeoffs in a given implementation. |
Object | VALUE_STROKE_NORMALIZE Stroke normalization control hint value -- geometry should be normalized to improve uniformity or spacing of lines and overall aesthetics. |
Object | VALUE_STROKE_PURE Stroke normalization control hint value -- geometry should be left unmodified and rendered with sub-pixel accuracy. |
RenderingHints(Key key, Object value) Constructs a new object with the specified key/value pair. | |
RenderingHints(Map Constructs a new object with keys and values initialized from the specified Map object which may be null. |
void | add(RenderingHints hints) Adds all of the keys and corresponding values from the specified RenderingHints object to this RenderingHints object. |
boolean | containsValue(Object value) Returns true if this RenderingHints maps one or more keys to the specified value. |
Object | get(Object key) Returns the value to which the specified key is mapped. |
Object | put(Object key, Object value) Maps the specified key to the specified value in this RenderingHints object. |