Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt.geom: Javadoc index of package java.awt.geom.


Package Samples:

java.awt.geom

Classes:

FlatteningPathIterator: A PathIterator for approximating curved path segments by sequences of straight lines. Instances of this class will only return segments of type PathIterator.SEG_MOVETO 55 , PathIterator.SEG_LINETO 55 , and PathIterator.SEG_CLOSE 55 . The accuracy of the approximation is determined by two parameters: The flatness is a threshold value for deciding when a curved segment is consided flat enough for being approximated by a single straight line. Flatness is defined as the maximal distance of a curve control point to the straight line that connects the curve start and end. A lower flatness threshold means ...
GeneralPath: A general geometric path, consisting of any number of subpaths constructed out of straight lines and cubic or quadratic Bezier curves. The inside of the curve is defined for drawing purposes by a winding rule. Either the WIND_EVEN_ODD or WIND_NON_ZERO winding rule can be chosen. The EVEN_ODD winding rule defines a point as inside a path if: A ray from the point towards infinity in an arbitrary direction intersects the path an odd number of times. Points A and C in the image are considered to be outside the path. (both intersect twice) Point B intersects once, and is inside. The NON_ZERO winding ...
Area: The Area class represents any area for the purpose of Constructive Area Geometry (CAG) manipulations. CAG manipulations work as an area-wise form of boolean logic, where the basic operations are: Add (in boolean algebra: A or B) Subtract (in boolean algebra: A and ( not B) ) Intersect (in boolean algebra: A and B) Exclusive Or Above is an illustration of the CAG operations on two ring shapes. The contains and intersects() methods are also more accurate than the specification of #Shape requires. Please note that constructing an Area can be slow (Self-intersection resolving is proportional to the ...
AffineTransform: This class represents an affine transformation between two coordinate spaces in 2 dimensions. Such a transform preserves the "straightness" and "parallelness" of lines. The transform is built from a sequence of translations, scales, flips, rotations, and shears. The transformation can be represented using matrix math on a 3x3 array. Given (x,y), the transformation (x',y') can be found by: [ x'] [ m00 m01 m02 ] [ x ] [ m00*x + m01*y + m02 ] [ y'] = [ m10 m11 m12 ] [ y ] = [ m10*x + m11*y + m12 ] [ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ] The bottom row of the matrix is constant, so a transform can be uniquely ...
Arc2D: This class represents all arcs (segments of an ellipse in 2-D space). The arcs are defined by starting angle and extent (arc length) in degrees, as opposed to radians (like the rest of Java), and can be open, chorded, or wedge shaped. The angles are skewed according to the ellipse, so that 45 degrees always points to the upper right corner (positive x, negative y) of the bounding rectangle. A positive extent draws a counterclockwise arc, and while the angle can be any value, the path iterator only traverses the first 360 degrees. Storage is up to the subclasses.
Rectangle2D: This class describes a rectangle by a point (x,y) and dimension (w x h). The actual storage is left up to subclasses. It is valid for a rectangle to have negative width or height; but it is considered to have no area or internal points. Therefore, the behavior in methods like contains or intersects is undefined unless the rectangle has positive width and height.
Ellipse2D: Ellipse2D is the shape of an ellipse. The ellipse is defined by it's bounding box (shown in red), and is defined by the implicit curve: ( x / a ) 2 + ( y / b ) 2 = 1
PathIterator: This interface provides a directed path over the boundary of a shape. The path can contain 1st through 3rd order Bezier curves (lines, and quadratic and cubic splines). A shape can have multiple disjoint paths via the MOVETO directive, and can close a circular path back to the previos MOVETO via the CLOSE directive.
Line2D: Represents a directed line bewteen two points in (x,y) Cartesian space. Remember, on-screen graphics have increasing x from left-to-right, and increasing y from top-to-bottom. The storage is left to subclasses.
RectangularShape: This class provides a generic framework, and several helper methods, for subclasses which represent geometric objects inside a rectangular frame. This does not specify any geometry except for the bounding box.
Point2D: This class implements a generic point in 2D Cartesian space. The storage representation is left up to the subclass. Point includes two useful nested classes, for float and double storage respectively.
QuadCurve2D: A two-dimensional curve that is parameterized with a quadratic function.
CubicCurve2D: A two-dimensional curve that is parameterized with a cubic function.
IllegalPathStateException: Thrown when an operation on a path is in an illegal state, such as appending a segment to a GeneralPath without an initial moveto.
Dimension2D: This stores a dimension in 2-dimensional space - a width (along the x-axis) and height (along the y-axis). The storage is left to subclasses.
NoninvertibleTransformException: Thrown if an operation requires an inverse of an AffineTransform , but the transform is in a non-invertible state.
RoundRectangle2D: This class implements a rectangle with rounded corners.

Home | Contact Us | Privacy Policy | Terms of Service