| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.awt.image | Provides classes for creating and modifying images. | 
| javax.swing.plaf | Provides one interface and many abstract classes that
Swing uses to provide its pluggable look-and-feel capabilities. | 
| Modifier and Type | Interface | Description | 
|---|---|---|
| interface  | PaintThis  Paintinterface defines how color patterns
 can be generated forGraphics2Doperations. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | ColorThe  Colorclass is used to encapsulate colors in the default
 sRGB color space or colors in arbitrary color spaces identified by aColorSpace. | |
| class  | GradientPaintThe  GradientPaintclass provides a way to fill
 aShapewith a linear color gradient pattern. | |
| class  | LinearGradientPaintThe  LinearGradientPaintclass provides a way to fill
 aShapewith a linear color gradient pattern. | |
| class  | MultipleGradientPaintThis is the superclass for Paints which use a multiple color
 gradient to fill in their raster. | |
| class  | RadialGradientPaintThe  RadialGradientPaintclass provides a way to fill a shape with
 a circular radial color gradient pattern. | |
| class  | SystemColorA class to encapsulate symbolic colors representing the color of
 native GUI objects on a system. | |
| class  | TexturePaintThe  TexturePaintclass provides a way to fill aShapewith a texture that is specified as
 aBufferedImage. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | BufferedImageThe  BufferedImagesubclass describes anImagewith an accessible buffer of image data. | |
| class  | ColorModelThe  ColorModelabstract class encapsulates the
 methods for translating a pixel value to color components
 (for example, red, green, and blue) and an alpha component. | |
| class  | ComponentColorModelA  ColorModelclass that works with pixel values that
 represent color and alpha information as separate samples and that
 store each sample in a separate data element. | |
| class  | DirectColorModelThe  DirectColorModelclass is aColorModelclass that works with pixel values that represent RGB
 color and alpha information as separate samples and that pack all
 samples for a single pixel into a single int, short, or byte quantity. | |
| class  | IndexColorModelThe  IndexColorModelclass is aColorModelclass that works with pixel values consisting of a
 single sample that is an index into a fixed colormap in the default
 sRGB color space. | |
| class  | PackedColorModelThe  PackedColorModelclass is an abstractColorModelclass that works with pixel values which represent
 color and alpha information as separate samples and which pack all
 samples for a single pixel into a single int, short, or byte quantity. | |
| class  | VolatileImageVolatileImage is an image which can lose its
 contents at any time due to circumstances beyond the control of the
 application (e.g., situations caused by the operating system or by
 other applications). | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | ColorUIResource | 
 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.