Uses of Interface java.awt.PaintContext (Java Platform SE 8 )
Date: 2026-08-19

## Uses of Interface
java.awt.PaintContext

- Packages that use PaintContext
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.

- - ### Uses of PaintContext in java.awt

    Methods in java.awt that return PaintContext
    Modifier and Type | Method and Description
    --- | ---
    `PaintContext` | TexturePaint.`createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)` Creates and returns a `PaintContext` used to generate a tiled image pattern.
    `PaintContext` | GradientPaint.`createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)` Creates and returns a `PaintContext` used to generate a linear color gradient pattern.
    `PaintContext` | RadialGradientPaint.`createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)` Creates and returns a `PaintContext` used to generate a circular radial color gradient pattern.
    `PaintContext` | LinearGradientPaint.`createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)` Creates and returns a `PaintContext` used to generate a linear color gradient pattern.
    `PaintContext` | Paint.`createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)` Creates and returns a `PaintContext` used to generate the color pattern.
    `PaintContext` | Color.`createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)` Creates and returns a `PaintContext` used to generate a solid color field pattern.

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.