Module java.desktop
Package java.awt.geom
Provides the Java 2D classes for defining and performing operations on
objects related to twodimensional geometry. Some important features of the
package include:
 classes for manipulating geometry, such as AffineTransform and the PathIterator interface which is implemented by all Shape objects.
 classes that implement the Shape interface, such as CubicCurve2D, Ellipse2D, Line2D, Rectangle2D, and GeneralShape.
 the Area class which provides mechanisms for add (union), subtract, intersect, and exclusiveOR operations on other Shape objects.
 Since:
 1.2

Interface Summary Interface Description PathIterator ThePathIterator
interface provides the mechanism for objects that implement theShape
interface to return the geometry of their boundary by allowing a caller to retrieve the path of that boundary a segment at a time. 
Class Summary Class Description AffineTransform TheAffineTransform
class represents a 2D affine transform that performs a linear mapping from 2D coordinates to other 2D coordinates that preserves the "straightness" and "parallelness" of lines.Arc2D Arc2D
is the abstract superclass for all objects that store a 2D arc defined by a framing rectangle, start angle, angular extent (length of the arc), and a closure type (OPEN
,CHORD
, orPIE
).Arc2D.Double This class defines an arc specified indouble
precision.Arc2D.Float This class defines an arc specified infloat
precision.Area AnArea
object stores and manipulates a resolutionindependent description of an enclosed area of 2dimensional space.CubicCurve2D TheCubicCurve2D
class defines a cubic parametric curve segment in(x,y)
coordinate space.CubicCurve2D.Double A cubic parametric curve segment specified withdouble
coordinates.CubicCurve2D.Float A cubic parametric curve segment specified withfloat
coordinates.Dimension2D TheDimension2D
class is to encapsulate a width and a height dimension.Ellipse2D TheEllipse2D
class describes an ellipse that is defined by a framing rectangle.Ellipse2D.Double TheDouble
class defines an ellipse specified indouble
precision.Ellipse2D.Float TheFloat
class defines an ellipse specified infloat
precision.FlatteningPathIterator TheFlatteningPathIterator
class returns a flattened view of anotherPathIterator
object.GeneralPath TheGeneralPath
class represents a geometric path constructed from straight lines, and quadratic and cubic (Bézier) curves.Line2D ThisLine2D
represents a line segment in(x,y)
coordinate space.Line2D.Double A line segment specified with double coordinates.Line2D.Float A line segment specified with float coordinates.Path2D ThePath2D
class provides a simple, yet flexible shape which represents an arbitrary geometric path.Path2D.Double TheDouble
class defines a geometric path with coordinates stored in double precision floating point.Path2D.Float TheFloat
class defines a geometric path with coordinates stored in single precision floating point.Point2D ThePoint2D
class defines a point representing a location in(x,y)
coordinate space.Point2D.Double TheDouble
class defines a point specified indouble
precision.Point2D.Float TheFloat
class defines a point specified in float precision.QuadCurve2D TheQuadCurve2D
class defines a quadratic parametric curve segment in(x,y)
coordinate space.QuadCurve2D.Double A quadratic parametric curve segment specified withdouble
coordinates.QuadCurve2D.Float A quadratic parametric curve segment specified withfloat
coordinates.Rectangle2D TheRectangle2D
class describes a rectangle defined by a location(x,y)
and dimension(w x h)
.Rectangle2D.Double TheDouble
class defines a rectangle specified in double coordinates.Rectangle2D.Float TheFloat
class defines a rectangle specified in float coordinates.RectangularShape RectangularShape
is the base class for a number ofShape
objects whose geometry is defined by a rectangular frame.RoundRectangle2D TheRoundRectangle2D
class defines a rectangle with rounded corners defined by a location(x,y)
, a dimension(w x h)
, and the width and height of an arc with which to round the corners.RoundRectangle2D.Double TheDouble
class defines a rectangle with rounded corners all specified indouble
coordinates.RoundRectangle2D.Float TheFloat
class defines a rectangle with rounded corners all specified infloat
coordinates. 
Exception Summary Exception Description IllegalPathStateException TheIllegalPathStateException
represents an exception that is thrown if an operation is performed on a path that is in an illegal state with respect to the particular operation being performed, such as appending a path segment to aGeneralPath
without an initial moveto.NoninvertibleTransformException TheNoninvertibleTransformException
class represents an exception that is thrown if an operation is performed requiring the inverse of anAffineTransform
object but theAffineTransform
is in a noninvertible state.