# Interface Paint

All Known Implementing Classes:
  `LinearGradientPaint, MultipleGradientPaint`

public interface Paint
An interface for providing custom painting such as gradients.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `paint(Graphics g, double x, double y, double w, double h)`
  Paints in the given bounds.
  `void`
  `paint(Graphics g, Rectangle2D bounds)`
  Paints in the given bounds.

- ## Method Details

  - ### paint

    void paint(Graphics g, Rectangle2D bounds)

    Paints in the given bounds.

    ###### Parameters

    - `g`: Graphics context to paint in.

    - `bounds`: Bounds to paint in. User coordinates.

  - ### paint

    void paint(Graphics g, double x, double y, double w, double h)

    Paints in the given bounds.

    ###### Parameters

    - `g`: Graphics context to paint in.

    - `x`: x coordinate. User space.

    - `y`: y coordinate. USer space.

    - `w`: width. User space.

    - `h`: Hight. User space.