CONTENTS | PREV | NEXT Java 2D API


3.1 Interfaces and Classes

The following tables list the key geometry interfaces and classes. Most of these interfaces and classes are part of the java.awt.geom package. Some, like Shape, are part of the java.awt package, primarily to maintain backw ard compatibility with earlier versions of the JDK software.




Interface

Description

PathIterator

Defines methods for retrieving elements from a path.

Shape

(java.awt)

Provides a common set of methods for describing and inspecting geometric path objects. Implemented by GeneralPath and other geometry classes.




Class

Description

Arc2D

Arc2D.Double

Arc2D.Float

Extends: RectangularShape

Represents an arc defined by a bounding rectangle, start angle, angular extent, and a closure type. Implemented to specify arcs in float and double precision: Arc2D.Float and Arc2D.Double.

Area

Implements: Shape, Cloneable

Represents an area geometry that supports boolean operations.

CubicCurve2D

CubicCurve2D.Double

CubicCurve2D.Float

Implements: Shape

Represents a cubic parametric curve segment in (w) coordinate space. Implemented to specify cubic curves in float and double precision: CubicCurve2D.Float and CubicCurve2D.Double.

Dimension2D

Encapsulates a width and height dimension. Abstract superclass for all objects that store a 2D dimension.

Ellipse2D

Ellipse2D.Double

Ellipse2D.Float

Extends: RectangularShape

Represents an ellipse defined by a bounding rectangle. Implemented to specify ellipses in float and double precision: Ellipse2D.Float and Ellipse2D.Double.

FlatteningPathIterator

Returns a flattened view of a PathIterator object.

Can be used to provide flattening behavior for Shapes that don't perform the interpolation calculations themselves.

GeneralPath

Implements: Shape

Represents a geometric path constructed from lines and quadratic and cubic curves.

Line2D

Line2D.Double

Line2D.Float

Implements: Shape

Represents a line segment in (x, y) coordinate space. Implemented to specify lines in float and double precision: Line2D.Float and Line2D.Double.

Point2D

Point2D.Double

Point2D.Float

A point representing a location in (x,y) coordinate space. Implemented to specify points in float and double precision: Point2D.Float and Point2D.Double.

QuadCurve2D

QuadCurve2D.Double

QuadCurve2D.Float

Implements: Shape

Represents a quadratic parametric curve segment in (x, y) coordinate space. Implemented to specify quadratic curves in float and double precision: QuadCurve2D.Float and QuadCurve2D.Double.

Rectangle2D

Rectangle2D.Double

Rectangle2D.Float

Extends: RectangularShape

Represents a rectangle defined by a location (x, y) and dimension (w x h). Implemented to specify rectangles in float and double precision: Rectangle2D.Float and Rectangle2D.Double.

RectangularShape

Implements: Shape

Provides common manipulation routines for operating on shapes that have rectangular bounds.

RoundRectangle2D

RoundRectangle2D.Double

RoundRectangle2D.Float

Extends: RectangularShape

Represents a rectangle with rounded corners defined by a location (x, y), a dimension (w x h), and the width and height of the corner arc. Implemented to specify round rectangles in float and double precision: RoundRectangle2D.Float and RoundRectangle2D.Double.



CONTENTS | PREV | NEXT
Copyright © 1997-1999 Sun Microsystems, Inc. All Rights Reserved.