java.awt.geom

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » AWT » java.awt.geom 
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 NameTypeComment
AffineTransform.javaClass 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.javaClass 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.javaClass A utility class to iterate over the path segments of an arc through the PathIterator interface.
Area.javaClass 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.javaClass The CubicCurve2D class defines a cubic parametric curve segment in (x,y) coordinate space.
CubicIterator.javaClass A utility class to iterate over the path segments of a cubic curve segment through the PathIterator interface.
Dimension2D.javaClass The Dimension2D class is to encapsulate a width and a height dimension.
Ellipse2D.javaClass The Ellipse2D class describes an ellipse that is defined by a framing rectangle.
EllipseIterator.javaClass A utility class to iterate over the path segments of an ellipse through the PathIterator interface.
FlatteningPathIterator.javaClass The FlatteningPathIterator class returns a flattened view of another PathIterator object.
GeneralPath.javaClass The GeneralPath class represents a geometric path constructed from straight lines, and quadratic and cubic (Bézier) curves.
IllegalPathStateException.javaClass 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.javaClass This Line2D represents a line segment in (x,y) coordinate space.
LineIterator.javaClass A utility class to iterate over the path segments of a line segment through the PathIterator interface.
NoninvertibleTransformException.javaClass 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.javaClass 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.javaInterface 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.javaClass The Point2D class defines a point representing a location in (x,y) coordinate space.
QuadCurve2D.javaClass The QuadCurve2D class defines a quadratic parametric curve segment in (x,y) coordinate space.
QuadIterator.javaClass A utility class to iterate over the path segments of a quadratic curve segment through the PathIterator interface.
Rectangle2D.javaClass The Rectangle2D class describes a rectangle defined by a location (x,y) and dimension (w x h) .
RectangularShape.javaClass RectangularShape is the base class for a number of Shape objects whose geometry is defined by a rectangular frame.
RectIterator.javaClass A utility class to iterate over the path segments of a rectangle through the PathIterator interface.
RoundRectangle2D.javaClass 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.javaClass A utility class to iterate over the path segments of an rounded rectangle through the PathIterator interface.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.