[Chapter 19] Shape
Author: John Zukowski
Date: Thu Jul 31 15:16:11 1997

#

| 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