API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.geom. Path2D.Float View Source
Author(s)
Since
1.6
Version
Serial
Hierarchy
 Object
      Path2D
          Path2D.Float
Implements
 Serializable
Subclasses
Description
publicstatic class Path2D.Float
  The Float class defines a geometric path with coordinates stored in single precision floating point.
See also:   
Constructors
public Path2D.Float ()
  Constructs a new empty single precision Path2D object with a default winding rule of Path2D.WIND_NON_ZERO.
public Path2D.Float (int rule)
  Constructs a new empty single precision Path2D object with the specified winding rule to control operations that require the interior of the path to be defined.
public Path2D.Float (int rule, int initialCapacity)
  Constructs a new empty single precision Path2D object with the specified winding rule and the specified initial capacity to store path segments.
public Path2D.Float (Shape s)
  Constructs a new single precision Path2D object from an arbitrary Shape object.
public Path2D.Float (Shape s, AffineTransform at)
  Constructs a new single precision Path2D object from an arbitrary Shape object, transformed by an AffineTransform object.
Methods
Hide/Show inherited methods
pack-private void append (double x, double y) [Specified in Path2D]
pack-private void append (float x, float y) [Specified in Path2D]
publicfinal void append (PathIterator pi, boolean connect) [Specified in Path2D]
  Appends the geometry of the specified PathIterator object to the path, possibly connecting the new geometry to the existing path segments with a line segment.
publicfinal void append (Shape s, boolean connect) [Inherited From Path2D]
  Appends the geometry of the specified Shape object to the path, possibly connecting the new geometry to the existing path segments with a line segment.
publicfinal Object clone () [Specified in Path2D]
  Creates a new object of the same class as this object.
pack-private double cloneCoordsDouble (AffineTransform at) [Specified in Path2D]
pack-private float cloneCoordsFloat (AffineTransform at) [Specified in Path2D]
publicfinalsynchronized void closePath () [Inherited From Path2D]
  Closes the current subpath by drawing a straight line back to the coordinates of the last moveTo.
publicfinal boolean contains (double x, double y) [Inherited From Path2D]
  Tests if the specified coordinates are inside the boundary of the Shape.
publicfinal boolean contains (double x, double y, double w, double h) [Inherited From Path2D]
  Tests if the interior of the Shape entirely contains the specified rectangular area.
publicstatic boolean contains (PathIterator pi, double x, double y) [Inherited From Path2D]
  Tests if the specified coordinates are inside the closed boundary of the specified PathIterator.
publicstatic boolean contains (PathIterator pi, double x, double y, double w, double h) [Inherited From Path2D]
  Tests if the specified rectangular area is entirely inside the closed boundary of the specified PathIterator.
publicstatic boolean contains (PathIterator pi, Point2D p) [Inherited From Path2D]
  Tests if the specified Point2D is inside the closed boundary of the specified PathIterator.
publicstatic boolean contains (PathIterator pi, Rectangle2D r) [Inherited From Path2D]
  Tests if the specified Rectangle2D is entirely inside the closed boundary of the specified PathIterator.
publicfinal boolean contains (Point2D p) [Inherited From Path2D]
  Tests if a specified Point2D is inside the boundary of the Shape.
publicfinal boolean contains (Rectangle2D r) [Inherited From Path2D]
  Tests if the interior of the Shape entirely contains the specified Rectangle2D.
publicfinalsynchronized Shape createTransformedShape (AffineTransform at) [Inherited From Path2D]
  Returns a new Shape representing a transformed version of this Path2D.
publicfinalsynchronized void curveTo (double x1, double y1, double x2, double y2, double x3, double y3) [Specified in Path2D]
  Adds a curved segment, defined by three new points, to the path by drawing a Bézier curve that intersects both the current coordinates and the specified coordinates (x3,y3), using the specified points (x1,y1) and (x2,y2) as Bézier control points.
publicfinalsynchronized void curveTo (float x1, float y1, float x2, float y2, float x3, float y3)
  Adds a curved segment, defined by three new points, to the path by drawing a Bézier curve that intersects both the current coordinates and the specified coordinates (x3,y3), using the specified points (x1,y1) and (x2,y2) as Bézier control points.
publicfinal Rectangle getBounds () [Inherited From Path2D]
  Returns an integer Rectangle that completely encloses the Shape.
publicfinalsynchronized Rectangle2D getBounds2D ()
  Returns a high precision and more accurate bounding box of the Shape than the getBounds method.
publicfinalsynchronized Point2D getCurrentPoint () [Inherited From Path2D]
  Returns the coordinates most recently added to the end of the path as a Point2D object.
public PathIterator getPathIterator (AffineTransform at)
  Returns an iterator object that iterates along the Shape boundary and provides access to the geometry of the Shape outline.
public PathIterator getPathIterator (AffineTransform at, double flatness) [Inherited From Path2D]
  Returns an iterator object that iterates along the Shape boundary and provides access to a flattened view of the Shape outline geometry.
pack-private Point2D getPoint (int coordindex) [Specified in Path2D]
publicfinalsynchronized int getWindingRule () [Inherited From Path2D]
  Returns the fill style winding rule.
publicfinal boolean intersects (double x, double y, double w, double h) [Inherited From Path2D]
  Tests if the interior of the Shape intersects the interior of a specified rectangular area.
publicstatic boolean intersects (PathIterator pi, double x, double y, double w, double h) [Inherited From Path2D]
  Tests if the interior of the specified PathIterator intersects the interior of a specified set of rectangular coordinates.
publicstatic boolean intersects (PathIterator pi, Rectangle2D r) [Inherited From Path2D]
  Tests if the interior of the specified PathIterator intersects the interior of a specified Rectangle2D.
publicfinal boolean intersects (Rectangle2D r) [Inherited From Path2D]
  Tests if the interior of the Shape intersects the interior of a specified Rectangle2D.
publicfinalsynchronized void lineTo (double x, double y) [Specified in Path2D]
  Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates specified in double precision.
publicfinalsynchronized void lineTo (float x, float y)
  Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates specified in float precision.
publicfinalsynchronized void moveTo (double x, double y) [Specified in Path2D]
  Adds a point to the path by moving to the specified coordinates specified in double precision.
publicfinalsynchronized void moveTo (float x, float y)
  Adds a point to the path by moving to the specified coordinates specified in float precision.
pack-private void needRoom (boolean needMove, int newCoords) [Specified in Path2D]
pack-private int pointCrossings (double px, double py) [Specified in Path2D]
publicfinalsynchronized void quadTo (double x1, double y1, double x2, double y2) [Specified in Path2D]
  Adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the specified coordinates (x2,y2), using the specified point (x1,y1) as a quadratic parametric control point.
publicfinalsynchronized void quadTo (float x1, float y1, float x2, float y2)
  Adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the specified coordinates (x2,y2), using the specified point (x1,y1) as a quadratic parametric control point.
pack-privatefinal void readObject (ObjectInputStream s, boolean storedbl) throws ClassNotFoundException IOException [Inherited From Path2D]
pack-private int rectCrossings (double rxmin, double rymin, double rxmax, double rymax) [Specified in Path2D]
publicfinalsynchronized void reset () [Inherited From Path2D]
  Resets the path to empty.
publicfinal void setWindingRule (int rule) [Inherited From Path2D]
  Sets the winding rule for this path to the specified value.
publicfinal void transform (AffineTransform at) [Specified in Path2D]
  Transforms the geometry of this path using the specified AffineTransform.
pack-privatefinal void writeObject (ObjectOutputStream s, boolean isdbl) throws IOException [Inherited From Path2D]
Fields
Hide/Show inherited fields
pack-privatefinalstatic int EXPAND_MAX = "500" [Inherited From Path2D]
pack-privatetransient float floatCoords
pack-privatefinalstatic int INIT_SIZE = "20" [Inherited From Path2D]
pack-privatetransient int numCoords [Inherited From Path2D]
pack-privatetransient int numTypes [Inherited From Path2D]
pack-privatetransient byte pointTypes [Inherited From Path2D]
publicfinalstatic int WIND_EVEN_ODD = "0" [Inherited From Path2D]
  An even-odd winding rule for determining the interior of a path.
publicfinalstatic int WIND_NON_ZERO = "1" [Inherited From Path2D]
  A non-zero winding rule for determining the interior of a path.
pack-privatetransient int windingRule [Inherited From Path2D]
Nested Classes
  Path2D.Float.CopyIterator
  Path2D.Float.TxIterator
  Path2D.Float
The Float class defines a geometric path with coordinates stored in single precision floating point.
  Path2D.Double
The Double class defines a geometric path with coordinates stored in double precision floating point.
  Path2D.Iterator
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar