Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional 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.
PackageDescriptionContains all of the classes for creating user interfaces and for painting graphics and images.
AffineTransformclass 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.
Arc2Dis 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 (
PIE).This class defines an arc specified in
doubleprecision.This class defines an arc specified in
Areaobject stores and manipulates a resolution-independent description of an enclosed area of 2-dimensional space.The
CubicCurve2Dclass defines a cubic parametric curve segment in
(x,y)coordinate space.A cubic parametric curve segment specified with
doublecoordinates.A cubic parametric curve segment specified with
Dimension2Dclass is to encapsulate a width and a height dimension.The
Ellipse2Dclass describes an ellipse that is defined by a framing rectangle.The
Doubleclass defines an ellipse specified in
Floatclass defines an ellipse specified in
FlatteningPathIteratorclass returns a flattened view of another
GeneralPathclass represents a geometric path constructed from straight lines, and quadratic and cubic (Bézier) curves.This
Line2Drepresents a line segment in
(x,y)coordinate space.A line segment specified with double coordinates.A line segment specified with float coordinates.The
Path2Dclass provides a simple, yet flexible shape which represents an arbitrary geometric path.The
Doubleclass defines a geometric path with coordinates stored in double precision floating point.The
Floatclass defines a geometric path with coordinates stored in single precision floating point.The
Point2Dclass defines a point representing a location in
Doubleclass defines a point specified in
Floatclass defines a point specified in float precision.The
QuadCurve2Dclass defines a quadratic parametric curve segment in
(x,y)coordinate space.A quadratic parametric curve segment specified with
doublecoordinates.A quadratic parametric curve segment specified with
Rectangle2Dclass describes a rectangle defined by a location
(w x h).The
Doubleclass defines a rectangle specified in double coordinates.The
Floatclass defines a rectangle specified in float coordinates.
RectangularShapeis the base class for a number of
Shapeobjects whose geometry is defined by a rectangular frame.The
RoundRectangle2Dclass 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.The
Doubleclass defines a rectangle with rounded corners all specified in
Floatclass defines a rectangle with rounded corners all specified in
IllegalPathStateExceptionrepresents 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 a
GeneralPathwithout an initial moveto.The
NoninvertibleTransformExceptionclass represents an exception that is thrown if an operation is performed requiring the inverse of an
AffineTransformobject but the
AffineTransformis in a non-invertible state.