public final class GraphicsUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
configureDefaultRenderingHints(Graphics graphics)
Configure default IDE-wide rendering hints on the supplied
Graphics object. |
public static void configureDefaultRenderingHints(Graphics graphics)
Graphics object. This
enables anti-aliasing of manually painted text and 2D graphics, using settings that are
consistent throughout the IDE. This method is typically called at the beginning of custom
JComponent.paint(Graphics) implementations. By convention, callers passing the
Graphics object from paint do not need to bother restoring the old rendering
hints after they are done using the Graphics object.