API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.geom. CubicCurve2D.Double View Source
Author(s)
Since
1.2
Version
Serial
Hierarchy
 Object
      CubicCurve2D
          CubicCurve2D.Double
Implements
 Serializable
Subclasses
Description
publicstatic class CubicCurve2D.Double
  A cubic parametric curve segment specified with double coordinates.
See also:   
Constructors
public CubicCurve2D.Double ()
  Constructs and initializes a CubicCurve with coordinates (0, 0, 0, 0, 0, 0).
public CubicCurve2D.Double (double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)
  Constructs and initializes a CubicCurve2D from the specified double coordinates.
Methods
Hide/Show inherited methods
public Object clone () [Inherited From CubicCurve2D]
  Creates a new object of the same class as this object.
public boolean contains (double x, double y) [Inherited From CubicCurve2D]
  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 CubicCurve2D]
  Tests if the interior of the Shape entirely contains the specified rectangular area.
public boolean contains (Point2D p) [Inherited From CubicCurve2D]
  Tests if a specified Point2D is inside the boundary of the Shape.
public boolean contains (Rectangle2D r) [Inherited From CubicCurve2D]
  Tests if the interior of the Shape entirely contains the specified Rectangle2D.
public Rectangle getBounds () [Inherited From CubicCurve2D]
  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 getCtrlP1 () [Specified in CubicCurve2D]
  Returns the first control point.
public Point2D getCtrlP2 () [Specified in CubicCurve2D]
  Returns the second control point.
public double getCtrlX1 () [Specified in CubicCurve2D]
  Returns the X coordinate of the first control point in double precision.
public double getCtrlX2 () [Specified in CubicCurve2D]
  Returns the X coordinate of the second control point in double precision.
public double getCtrlY1 () [Specified in CubicCurve2D]
  Returns the Y coordinate of the first control point in double precision.
public double getCtrlY2 () [Specified in CubicCurve2D]
  Returns the Y coordinate of the second control point in double precision.
public double getFlatness () [Inherited From CubicCurve2D]
  Returns the flatness of this curve.
publicstatic double getFlatness (double[] coords, int offset) [Inherited From CubicCurve2D]
  Returns the flatness of the cubic curve specified by the control points stored in the indicated array at the indicated index.
publicstatic double getFlatness (double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2) [Inherited From CubicCurve2D]
  Returns the flatness of the cubic curve specified by the indicated control points.
public double getFlatnessSq () [Inherited From CubicCurve2D]
  Returns the square of the flatness of this curve.
publicstatic double getFlatnessSq (double[] coords, int offset) [Inherited From CubicCurve2D]
  Returns the square of the flatness of the cubic curve specified by the control points stored in the indicated array at the indicated index.
publicstatic double getFlatnessSq (double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2) [Inherited From CubicCurve2D]
  Returns the square of the flatness of the cubic curve specified by the indicated control points.
public Point2D getP1 () [Specified in CubicCurve2D]
  Returns the start point.
public Point2D getP2 () [Specified in CubicCurve2D]
  Returns the end point.
public PathIterator getPathIterator (AffineTransform at) [Inherited From CubicCurve2D]
  Returns an iteration object that defines the boundary of the shape.
public PathIterator getPathIterator (AffineTransform at, double flatness) [Inherited From CubicCurve2D]
  Return an iteration object that defines the boundary of the flattened shape.
public double getX1 () [Specified in CubicCurve2D]
  Returns the X coordinate of the start point in double precision.
public double getX2 () [Specified in CubicCurve2D]
  Returns the X coordinate of the end point in double precision.
public double getY1 () [Specified in CubicCurve2D]
  Returns the Y coordinate of the start point in double precision.
public double getY2 () [Specified in CubicCurve2D]
  Returns the Y coordinate of the end point in double precision.
public boolean intersects (double x, double y, double w, double h) [Inherited From CubicCurve2D]
  Tests if the interior of the Shape intersects the interior of a specified rectangular area.
public boolean intersects (Rectangle2D r) [Inherited From CubicCurve2D]
  Tests if the interior of the Shape intersects the interior of a specified Rectangle2D.
public void setCurve (CubicCurve2D c) [Inherited From CubicCurve2D]
  Sets the location of the end points and control points of this curve to the same as those in the specified CubicCurve2D.
public void setCurve (double[] coords, int offset) [Inherited From CubicCurve2D]
  Sets the location of the end points and control points of this curve to the double coordinates at the specified offset in the specified array.
public void setCurve (double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2) [Specified in CubicCurve2D]
  Sets the location of the end points and control points of this curve to the specified double coordinates.
public void setCurve (Point2D pts, int offset) [Inherited From CubicCurve2D]
  Sets the location of the end points and control points of this curve to the coordinates of the Point2D objects at the specified offset in the specified array.
public void setCurve (Point2D p1, Point2D cp1, Point2D cp2, Point2D p2) [Inherited From CubicCurve2D]
  Sets the location of the end points and control points of this curve to the specified Point2D coordinates.
publicstatic int solveCubic (double[] eqn) [Inherited From CubicCurve2D]
  Solves the cubic 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 solveCubic (double[] eqn, double[] res) [Inherited From CubicCurve2D]
  Solve the cubic whose coefficients are in the eqn array and place the non-complex roots into the res array, returning the number of roots.
public void subdivide (CubicCurve2D left, CubicCurve2D right) [Inherited From CubicCurve2D]
  Subdivides this cubic curve and stores the resulting two subdivided curves into the left and right curve parameters.
publicstatic void subdivide (CubicCurve2D src, CubicCurve2D left, CubicCurve2D right) [Inherited From CubicCurve2D]
  Subdivides the cubic curve specified by the src parameter and stores the resulting two subdivided curves into the left and right curve parameters.
publicstatic void subdivide (double[] src, int srcoff, double[] left, int leftoff, double[] right, int rightoff) [Inherited From CubicCurve2D]
  Subdivides the cubic curve specified by the coordinates stored in the src array at indices srcoff through (srcoff + 7) and stores the resulting two subdivided curves into the two result arrays at the corresponding indices.
Fields
Hide/Show inherited fields
public double ctrlx1
  The X coordinate of the first control point of the cubic curve segment.
public double ctrlx2
  The X coordinate of the second control point of the cubic curve segment.
public double ctrly1
  The Y coordinate of the first control point of the cubic curve segment.
public double ctrly2
  The Y coordinate of the second control point of the cubic curve segment.
public double x1
  The X coordinate of the start point of the cubic curve segment.
public double x2
  The X coordinate of the end point of the cubic curve segment.
public double y1
  The Y coordinate of the start point of the cubic curve segment.
public double y2
  The Y coordinate of the end point of the cubic curve segment.
Nested Classes
  CubicCurve2D.Float
A cubic parametric curve segment specified with float coordinates.
  CubicCurve2D.Double
A cubic parametric curve segment specified with double coordinates.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar