| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| Modifier and Type | Field and Description | 
|---|---|
| static RenderingHints.Key | RenderingHints. KEY_ALPHA_INTERPOLATIONAlpha interpolation hint key. | 
| static RenderingHints.Key | RenderingHints. KEY_ANTIALIASINGAntialiasing hint key. | 
| static RenderingHints.Key | RenderingHints. KEY_COLOR_RENDERINGColor rendering hint key. | 
| static RenderingHints.Key | RenderingHints. KEY_DITHERINGDithering hint key. | 
| static RenderingHints.Key | RenderingHints. KEY_FRACTIONALMETRICSFont fractional metrics hint key. | 
| static RenderingHints.Key | RenderingHints. KEY_INTERPOLATIONInterpolation hint key. | 
| static RenderingHints.Key | RenderingHints. KEY_RENDERINGRendering hint key. | 
| static RenderingHints.Key | RenderingHints. KEY_STROKE_CONTROLStroke normalization control hint key. | 
| static RenderingHints.Key | RenderingHints. KEY_TEXT_ANTIALIASINGText antialiasing hint key. | 
| static RenderingHints.Key | RenderingHints. KEY_TEXT_LCD_CONTRASTLCD text contrast rendering hint key. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Object | Graphics2D. getRenderingHint(RenderingHints.Key hintKey)Returns the value of a single preference for the rendering algorithms. | 
| abstract void | Graphics2D. setRenderingHint(RenderingHints.Key hintKey,
                Object hintValue)Sets the value of a single preference for the rendering algorithms. | 
| Constructor and Description | 
|---|
| RenderingHints(RenderingHints.Key key,
              Object value)Constructs a new object with the specified key/value pair. | 
| Constructor and Description | 
|---|
| RenderingHints(Map<RenderingHints.Key,?> init)Constructs a new object with keys and values initialized
 from the specified Map object which may be null. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.