home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Java in a Nutshell

Previous Chapter 18
The java.awt Package
Next
 

18.55 java.awt.Shape (JDK 1.1)

This interface encapsulates some very generic information about geometric shapes. All Shape objects must have a bounding box--i.e., a rectangle that completely encloses the represented shape.

When the forthcoming Java2D API is integrated with the AWT, this interface may be changed. For this reason, Java 1.1 applications can use this interface, but should not implement it in their own classes.

public abstract interface Shape {
    // Public Instance Methods
            public abstract Rectangle getBounds();
}

Implemented By:

Polygon, Rectangle

Passed To:

Graphics.setClip()

Returned By:

Graphics.getClip()


Previous Home Next
java.awt.Scrollbar (JDK 1.0) Book Index java.awt.SystemColor (JDK 1.1)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java