#

| Chapter 19 java.awt Reference |

# Shape

## Name

Shape

##

## Description

`Shape` is an interface describing a two-dimensional geometric shape.

## Interface Definition

    public abstract interface java.awt.Shape {

      // Interface Methods
      public abstract Rectangle getBounds();
    }

## Interface Methods

### getBounds

#### public abstract Rectangle getBounds()

Returns

  A `Rectangle` that completely encloses the shape.

## See Also

`Polygon`, `Rectangle`

Scrollbar |  | SystemColor