API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.geom. QuadCurve2D.Float View Source
Author(s)
Since
1.2
Version
Serial
Hierarchy
 Object
      QuadCurve2D
          QuadCurve2D.Float
Implements
 Serializable
Subclasses
Description
publicstatic class QuadCurve2D.Float
  A quadratic parametric curve segment specified with float coordinates.
See also:   
Constructors
public QuadCurve2D.Float ()
  Constructs and initializes a QuadCurve2D with coordinates (0, 0, 0, 0, 0, 0).
public QuadCurve2D.Float (float x1, float y1, float ctrlx, float ctrly, float x2, float y2)
  Constructs and initializes a QuadCurve2D from the specified float coordinates.
Methods
Hide/Show inherited methods
public Object clone () [Inherited From QuadCurve2D]
  Creates a new object of the same class and with the same contents as this object.
public boolean contains (double x, double y) [Inherited From QuadCurve2D]
  Tests if the specified coordinates are inside the boundary of the Shape.
public boolean contains (double x, double y, double w, double h) [Inherited From QuadCurve2D]
  Tests if the interior of the Shape entirely contains the specified rectangular area.
public boolean contains (Point2D p) [Inherited From QuadCurve2D]
  Tests if a specified Point2D is inside the boundary of the Shape.
public boolean contains (Rectangle2D r) [Inherited From QuadCurve2D]
  Tests if the interior of the Shape entirely contains the specified Rectangle2D.
public Rectangle getBounds () [Inherited From QuadCurve2D]
  Returns an integer Rectangle that completely encloses the Shape.
public Rectangle2D getBounds2D ()
  Returns a high precision and more accurate bounding box of the Shape than the getBounds method.
public Point2D getCtrlPt () [Specified in QuadCurve2D]
  Returns the control point.
public double getCtrlX () [Specified in QuadCurve2D]
  Returns the X coordinate of the control point in double precision.
public double getCtrlY () [Specified in QuadCurve2D]
  Returns the Y coordinate of the control point in double precision.
public double getFlatness () [Inherited From QuadCurve2D]
  Returns the flatness, or maximum distance of a control point from the line connecting the end points, of this QuadCurve2D.
publicstatic double getFlatness (double[] coords, int offset) [Inherited From QuadCurve2D]
  Returns the flatness, or maximum distance of a control point from the line connecting the end points, of the quadratic curve specified by the control points stored in the indicated array at the indicated index.
publicstatic double getFlatness (double x1, double y1, double ctrlx, double ctrly, double x2, double y2) [Inherited From QuadCurve2D]
  Returns the flatness, or maximum distance of a control point from the line connecting the end points, of the quadratic curve specified by the indicated control points.
public double getFlatnessSq () [Inherited From QuadCurve2D]
  Returns the square of the flatness, or maximum distance of a control point from the line connecting the end points, of this QuadCurve2D.
publicstatic double getFlatnessSq (double[] coords, int offset) [Inherited From QuadCurve2D]
  Returns the square of the flatness, or maximum distance of a control point from the line connecting the end points, of the quadratic curve specified by the control points stored in the indicated array at the indicated index.
publicstatic double getFlatnessSq (double x1, double y1, double ctrlx, double ctrly, double x2, double y2) [Inherited From QuadCurve2D]
  Returns the square of the flatness, or maximum distance of a control point from the line connecting the end points, of the quadratic curve specified by the indicated control points.
public Point2D getP1 () [Specified in QuadCurve2D]
  Returns the start point.
public Point2D getP2 () [Specified in QuadCurve2D]
  Returns the end point.
public PathIterator getPathIterator (AffineTransform at) [Inherited From QuadCurve2D]
  Returns an iteration object that defines the boundary of the shape of this QuadCurve2D.
public PathIterator getPathIterator (AffineTransform at, double flatness) [Inherited From QuadCurve2D]
  Returns an iteration object that defines the boundary of the flattened shape of this QuadCurve2D.
public double getX1 () [Specified in QuadCurve2D]
  Returns the X coordinate of the start point in double in precision.
public double getX2 () [Specified in QuadCurve2D]
  Returns the X coordinate of the end point in double precision.
public double getY1 () [Specified in QuadCurve2D]
  Returns the Y coordinate of the start point in double precision.
public double getY2 () [Specified in QuadCurve2D]
  Returns the Y coordinate of the end point in double precision.
public boolean intersects (double x, double y, double w, double h) [Inherited From QuadCurve2D]
  Tests if the interior of the Shape intersects the interior of a specified rectangular area.
public boolean intersects (Rectangle2D r) [Inherited From QuadCurve2D]
  Tests if the interior of the Shape intersects the interior of a specified Rectangle2D.
public void setCurve (double[] coords, int offset) [Inherited From QuadCurve2D]
  Sets the location of the end points and control points of this QuadCurve2D to the double coordinates at the specified offset in the specified array.
public void setCurve (double x1, double y1, double ctrlx, double ctrly, double x2, double y2) [Specified in QuadCurve2D]
  Sets the location of the end points and control point of this curve to the specified double coordinates.
public void setCurve (float x1, float y1, float ctrlx, float ctrly, float x2, float y2)
  Sets the location of the end points and control point of this curve to the specified float coordinates.
public void setCurve (Point2D pts, int offset) [Inherited From QuadCurve2D]
  Sets the location of the end points and control points of this QuadCurve2D to the coordinates of the Point2D objects at the specified offset in the specified array.
public void setCurve (Point2D p1, Point2D cp, Point2D p2) [Inherited From QuadCurve2D]
  Sets the location of the end points and control point of this QuadCurve2D to the specified Point2D coordinates.
public void setCurve (QuadCurve2D c) [Inherited From QuadCurve2D]
  Sets the location of the end points and control point of this QuadCurve2D to the same as those in the specified QuadCurve2D.
publicstatic int solveQuadratic (double[] eqn) [Inherited From QuadCurve2D]
  Solves the quadratic whose coefficients are in the eqn array and places the non-complex roots back into the same array, returning the number of roots.
publicstatic int solveQuadratic (double[] eqn, double[] res) [Inherited From QuadCurve2D]
  Solves the quadratic whose coefficients are in the eqn array and places the non-complex roots into the res array, returning the number of roots.
publicstatic void subdivide (double[] src, int srcoff, double[] left, int leftoff, double[] right, int rightoff) [Inherited From QuadCurve2D]
  Subdivides the quadratic curve specified by the coordinates stored in the src array at indices srcoff through srcoff + 5 and stores the resulting two subdivided curves into the two result arrays at the corresponding indices.
public void subdivide (QuadCurve2D left, QuadCurve2D right) [Inherited From QuadCurve2D]
  Subdivides this QuadCurve2D and stores the resulting two subdivided curves into the left and right curve parameters.
publicstatic void subdivide (QuadCurve2D src, QuadCurve2D left, QuadCurve2D right) [Inherited From QuadCurve2D]
  Subdivides the quadratic curve specified by the src parameter and stores the resulting two subdivided curves into the left and right curve parameters.
Fields
Hide/Show inherited fields
public float ctrlx
  The X coordinate of the control point of the quadratic curve segment.
public float ctrly
  The Y coordinate of the control point of the quadratic curve segment.
public float x1
  The X coordinate of the start point of the quadratic curve segment.
public float x2
  The X coordinate of the end point of the quadratic curve segment.
public float y1
  The Y coordinate of the start point of the quadratic curve segment.
public float y2
  The Y coordinate of the end point of the quadratic curve segment.
Nested Classes
  QuadCurve2D.Float
A quadratic parametric curve segment specified with float coordinates.
  QuadCurve2D.Double
A quadratic parametric curve segment specified with double coordinates.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar