java.awt.geom |
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.
@since 1.2
|
Java Source File Name | Type | Comment |
AffineTransform.java | Class | The AffineTransform 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.java | Class | 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 , or PIE ). |
ArcIterator.java | Class | A utility class to iterate over the path segments of an arc
through the PathIterator interface. |
Area.java | Class | An Area object stores and manipulates a
resolution-independent description of an enclosed area of
2-dimensional space.
Area objects can be transformed and can perform
various Constructive Area Geometry (CAG) operations when combined
with other Area objects.
The CAG operations include area
Area.add addition ,
Area.subtract subtraction ,
Area.intersect intersection , and
Area.exclusiveOr exclusive or .
See the linked method documentation for examples of the various
operations.
The Area class implements the Shape
interface and provides full support for all of its hit-testing
and path iteration facilities, but an Area is more
specific than a generalized path in a number of ways:
- Only closed paths and sub-paths are stored.
Area objects constructed from unclosed paths
are implicitly closed during construction as if those paths
had been filled by the Graphics2D.fill method.
- The interiors of the individual stored sub-paths are all
non-empty and non-overlapping.
|
CubicCurve2D.java | Class | The CubicCurve2D class defines a cubic parametric curve
segment in
(x,y) coordinate space. |
CubicIterator.java | Class | A utility class to iterate over the path segments of a cubic curve
segment through the PathIterator interface. |
Dimension2D.java | Class | The Dimension2D class is to encapsulate a width
and a height dimension. |
Ellipse2D.java | Class | The Ellipse2D class describes an ellipse that is defined
by a framing rectangle. |
EllipseIterator.java | Class | A utility class to iterate over the path segments of an ellipse
through the PathIterator interface. |
FlatteningPathIterator.java | Class | The FlatteningPathIterator class returns a flattened view of
another
PathIterator object. |
GeneralPath.java | Class | The
GeneralPath class represents a geometric path
constructed from straight lines, and quadratic and cubic
(Bézier) curves. |
IllegalPathStateException.java | Class | The IllegalPathStateException 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 a
GeneralPath without an initial moveto. |
Line2D.java | Class | This Line2D represents a line segment in
(x,y) coordinate space. |
LineIterator.java | Class | A utility class to iterate over the path segments of a line segment
through the PathIterator interface. |
NoninvertibleTransformException.java | Class | The NoninvertibleTransformException class represents
an exception that is thrown if an operation is performed requiring
the inverse of an
AffineTransform object but the
AffineTransform is in a non-invertible state. |
Path2D.java | Class | The
Path2D class provides a simple, yet flexible
shape which represents an arbitrary geometric path.
It can fully represent any path which can be iterated by the
PathIterator interface including all of its segment
types and winding rules and it implements all of the
basic hit testing methods of the
Shape interface.
Use
Path2D.Float when dealing with data that can be represented
and used with floating point precision. |
PathIterator.java | Interface | The PathIterator interface provides the mechanism
for objects that implement the
java.awt.Shape Shape interface to return the geometry of their boundary by allowing
a caller to retrieve the path of that boundary a segment at a
time. |
Point2D.java | Class | The Point2D class defines a point representing a location
in
(x,y) coordinate space. |
QuadCurve2D.java | Class | The QuadCurve2D class defines a quadratic parametric curve
segment in
(x,y) coordinate space. |
QuadIterator.java | Class | A utility class to iterate over the path segments of a quadratic curve
segment through the PathIterator interface. |
Rectangle2D.java | Class | The Rectangle2D class describes a rectangle
defined by a location
(x,y) and dimension
(w x h) . |
RectangularShape.java | Class | RectangularShape is the base class for a number of
Shape objects whose geometry is defined by a rectangular frame. |
RectIterator.java | Class | A utility class to iterate over the path segments of a rectangle
through the PathIterator interface. |
RoundRectangle2D.java | Class | The RoundRectangle2D 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. |
RoundRectIterator.java | Class | A utility class to iterate over the path segments of an rounded rectangle
through the PathIterator interface. |