java.awt.geom
Class CubicCurve2D.Float

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.geom.CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D 
      extended by java.awt.geom.CubicCurve2D.Float
All Implemented Interfaces:
Shape sample code for java.awt.Shape definition code for java.awt.Shape , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable
Enclosing class:
CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D

public static class CubicCurve2D.Float
extends CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D

A cubic parametric curve segment specified with float coordinates.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
CubicCurve2D.Double sample code for java.awt.geom.CubicCurve2D.Double definition code for java.awt.geom.CubicCurve2D.Double , CubicCurve2D.Float sample code for java.awt.geom.CubicCurve2D.Float definition code for java.awt.geom.CubicCurve2D.Float
 
Field Summary
 float ctrlx1 sample code for java.awt.geom.CubicCurve2D.Float.ctrlx1 definition code for java.awt.geom.CubicCurve2D.Float.ctrlx1
          The X coordinate of the first control point of the cubic curve segment.
 float ctrlx2 sample code for java.awt.geom.CubicCurve2D.Float.ctrlx2 definition code for java.awt.geom.CubicCurve2D.Float.ctrlx2
          The X coordinate of the second control point of the cubic curve segment.
 float ctrly1 sample code for java.awt.geom.CubicCurve2D.Float.ctrly1 definition code for java.awt.geom.CubicCurve2D.Float.ctrly1
          The Y coordinate of the first control point of the cubic curve segment.
 float ctrly2 sample code for java.awt.geom.CubicCurve2D.Float.ctrly2 definition code for java.awt.geom.CubicCurve2D.Float.ctrly2
          The Y coordinate of the second control point of the cubic curve segment.
 float x1 sample code for java.awt.geom.CubicCurve2D.Float.x1 definition code for java.awt.geom.CubicCurve2D.Float.x1
          The X coordinate of the start point of the cubic curve segment.
 float x2 sample code for java.awt.geom.CubicCurve2D.Float.x2 definition code for java.awt.geom.CubicCurve2D.Float.x2
          The X coordinate of the end point of the cubic curve segment.
 float y1 sample code for java.awt.geom.CubicCurve2D.Float.y1 definition code for java.awt.geom.CubicCurve2D.Float.y1
          The Y coordinate of the start point of the cubic curve segment.
 float y2 sample code for java.awt.geom.CubicCurve2D.Float.y2 definition code for java.awt.geom.CubicCurve2D.Float.y2
          The Y coordinate of the end point of the cubic curve segment.
 
Constructor Summary
CubicCurve2D.Float sample code for java.awt.geom.CubicCurve2D.Float.CubicCurve2D.Float() definition code for java.awt.geom.CubicCurve2D.Float.CubicCurve2D.Float() ()
          Constructs and initializes a CubicCurve with coordinates (0, 0, 0, 0, 0, 0).
CubicCurve2D.Float sample code for java.awt.geom.CubicCurve2D.Float.CubicCurve2D.Float(float, float, float, float, float, float, float, float) definition code for java.awt.geom.CubicCurve2D.Float.CubicCurve2D.Float(float, float, float, float, float, float, float, float) (float x1, float y1, float ctrlx1, float ctrly1, float ctrlx2, float ctrly2, float x2, float y2)
          Constructs and initializes a CubicCurve2D from the specified coordinates.
 
Method Summary
 Rectangle2D sample code for java.awt.geom.Rectangle2D definition code for java.awt.geom.Rectangle2D getBounds2D sample code for java.awt.geom.CubicCurve2D.Float.getBounds2D() definition code for java.awt.geom.CubicCurve2D.Float.getBounds2D() ()
          Returns the bounding box of the shape.
 Point2D sample code for java.awt.geom.Point2D definition code for java.awt.geom.Point2D getCtrlP1 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlP1() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlP1() ()
          Returns the first control point.
 Point2D sample code for java.awt.geom.Point2D definition code for java.awt.geom.Point2D getCtrlP2 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlP2() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlP2() ()
          Returns the second control point.
 double getCtrlX1 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlX1() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlX1() ()
          Returns the X coordinate of the first control point in double precision.
 double getCtrlX2 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlX2() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlX2() ()
          Returns the X coordinate of the second control point in double precision.
 double getCtrlY1 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlY1() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlY1() ()
          Returns the Y coordinate of the first control point in double precision.
 double getCtrlY2 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlY2() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlY2() ()
          Returns the Y coordinate of the second control point in double precision.
 Point2D sample code for java.awt.geom.Point2D definition code for java.awt.geom.Point2D getP1 sample code for java.awt.geom.CubicCurve2D.Float.getP1() definition code for java.awt.geom.CubicCurve2D.Float.getP1() ()
          Returns the start point.
 Point2D sample code for java.awt.geom.Point2D definition code for java.awt.geom.Point2D getP2 sample code for java.awt.geom.CubicCurve2D.Float.getP2() definition code for java.awt.geom.CubicCurve2D.Float.getP2() ()
          Returns the end point.
 double getX1 sample code for java.awt.geom.CubicCurve2D.Float.getX1() definition code for java.awt.geom.CubicCurve2D.Float.getX1() ()
          Returns the X coordinate of the start point in double precision.
 double getX2 sample code for java.awt.geom.CubicCurve2D.Float.getX2() definition code for java.awt.geom.CubicCurve2D.Float.getX2() ()
          Returns the X coordinate of the end point in double precision.
 double getY1 sample code for java.awt.geom.CubicCurve2D.Float.getY1() definition code for java.awt.geom.CubicCurve2D.Float.getY1() ()
          Returns the Y coordinate of the start point in double precision.
 double getY2 sample code for java.awt.geom.CubicCurve2D.Float.getY2() definition code for java.awt.geom.CubicCurve2D.Float.getY2() ()
          Returns the Y coordinate of the end point in double precision.
 void setCurve sample code for java.awt.geom.CubicCurve2D.Float.setCurve(double, double, double, double, double, double, double, double) definition code for java.awt.geom.CubicCurve2D.Float.setCurve(double, double, double, double, double, double, double, double) (double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)
          Sets the location of the endpoints and controlpoints of this CubicCurve2D to the specified double coordinates.
 void setCurve sample code for java.awt.geom.CubicCurve2D.Float.setCurve(float, float, float, float, float, float, float, float) definition code for java.awt.geom.CubicCurve2D.Float.setCurve(float, float, float, float, float, float, float, float) (float x1, float y1, float ctrlx1, float ctrly1, float ctrlx2, float ctrly2, float x2, float y2)
          Sets the location of the endpoints and controlpoints of this curve to the specified float coordinates.
 
Methods inherited from class java.awt.geom.CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
clone sample code for java.awt.geom.CubicCurve2D.clone() definition code for java.awt.geom.CubicCurve2D.clone() , contains sample code for java.awt.geom.CubicCurve2D.contains(double, double) definition code for java.awt.geom.CubicCurve2D.contains(double, double) , contains sample code for java.awt.geom.CubicCurve2D.contains(double, double, double, double) definition code for java.awt.geom.CubicCurve2D.contains(double, double, double, double) , contains sample code for java.awt.geom.CubicCurve2D.contains(java.awt.geom.Point2D) definition code for java.awt.geom.CubicCurve2D.contains(java.awt.geom.Point2D) , contains sample code for java.awt.geom.CubicCurve2D.contains(java.awt.geom.Rectangle2D) definition code for java.awt.geom.CubicCurve2D.contains(java.awt.geom.Rectangle2D) , getBounds sample code for java.awt.geom.CubicCurve2D.getBounds() definition code for java.awt.geom.CubicCurve2D.getBounds() , getFlatness sample code for java.awt.geom.CubicCurve2D.getFlatness() definition code for java.awt.geom.CubicCurve2D.getFlatness() , getFlatness sample code for java.awt.geom.CubicCurve2D.getFlatness(double[], int) definition code for java.awt.geom.CubicCurve2D.getFlatness(double[], int) , getFlatness sample code for java.awt.geom.CubicCurve2D.getFlatness(double, double, double, double, double, double, double, double) definition code for java.awt.geom.CubicCurve2D.getFlatness(double, double, double, double, double, double, double, double) , getFlatnessSq sample code for java.awt.geom.CubicCurve2D.getFlatnessSq() definition code for java.awt.geom.CubicCurve2D.getFlatnessSq() , getFlatnessSq sample code for java.awt.geom.CubicCurve2D.getFlatnessSq(double[], int) definition code for java.awt.geom.CubicCurve2D.getFlatnessSq(double[], int) , getFlatnessSq sample code for java.awt.geom.CubicCurve2D.getFlatnessSq(double, double, double, double, double, double, double, double) definition code for java.awt.geom.CubicCurve2D.getFlatnessSq(double, double, double, double, double, double, double, double) , getPathIterator sample code for java.awt.geom.CubicCurve2D.getPathIterator(java.awt.geom.AffineTransform) definition code for java.awt.geom.CubicCurve2D.getPathIterator(java.awt.geom.AffineTransform) , getPathIterator sample code for java.awt.geom.CubicCurve2D.getPathIterator(java.awt.geom.AffineTransform, double) definition code for java.awt.geom.CubicCurve2D.getPathIterator(java.awt.geom.AffineTransform, double) , intersects sample code for java.awt.geom.CubicCurve2D.intersects(double, double, double, double) definition code for java.awt.geom.CubicCurve2D.intersects(double, double, double, double) , intersects sample code for java.awt.geom.CubicCurve2D.intersects(java.awt.geom.Rectangle2D) definition code for java.awt.geom.CubicCurve2D.intersects(java.awt.geom.Rectangle2D) , setCurve sample code for java.awt.geom.CubicCurve2D.setCurve(java.awt.geom.CubicCurve2D) definition code for java.awt.geom.CubicCurve2D.setCurve(java.awt.geom.CubicCurve2D) , setCurve sample code for java.awt.geom.CubicCurve2D.setCurve(double[], int) definition code for java.awt.geom.CubicCurve2D.setCurve(double[], int) , setCurve sample code for java.awt.geom.CubicCurve2D.setCurve(java.awt.geom.Point2D[], int) definition code for java.awt.geom.CubicCurve2D.setCurve(java.awt.geom.Point2D[], int) , setCurve sample code for java.awt.geom.CubicCurve2D.setCurve(java.awt.geom.Point2D, java.awt.geom.Point2D, java.awt.geom.Point2D, java.awt.geom.Point2D) definition code for java.awt.geom.CubicCurve2D.setCurve(java.awt.geom.Point2D, java.awt.geom.Point2D, java.awt.geom.Point2D, java.awt.geom.Point2D) , solveCubic sample code for java.awt.geom.CubicCurve2D.solveCubic(double[]) definition code for java.awt.geom.CubicCurve2D.solveCubic(double[]) , solveCubic sample code for java.awt.geom.CubicCurve2D.solveCubic(double[], double[]) definition code for java.awt.geom.CubicCurve2D.solveCubic(double[], double[]) , subdivide sample code for java.awt.geom.CubicCurve2D.subdivide(java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D) definition code for java.awt.geom.CubicCurve2D.subdivide(java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D) , subdivide sample code for java.awt.geom.CubicCurve2D.subdivide(java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D) definition code for java.awt.geom.CubicCurve2D.subdivide(java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D, java.awt.geom.CubicCurve2D) , subdivide sample code for java.awt.geom.CubicCurve2D.subdivide(double[], int, double[], int, double[], int) definition code for java.awt.geom.CubicCurve2D.subdivide(double[], int, double[], int, double[], int)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

x1 sample code for java.awt.geom.CubicCurve2D.Float.x1

public float x1
The X coordinate of the start point of the cubic curve segment.


y1 sample code for java.awt.geom.CubicCurve2D.Float.y1

public float y1
The Y coordinate of the start point of the cubic curve segment.


ctrlx1 sample code for java.awt.geom.CubicCurve2D.Float.ctrlx1

public float ctrlx1
The X coordinate of the first control point of the cubic curve segment.


ctrly1 sample code for java.awt.geom.CubicCurve2D.Float.ctrly1

public float ctrly1
The Y coordinate of the first control point of the cubic curve segment.


ctrlx2 sample code for java.awt.geom.CubicCurve2D.Float.ctrlx2

public float ctrlx2
The X coordinate of the second control point of the cubic curve segment.


ctrly2 sample code for java.awt.geom.CubicCurve2D.Float.ctrly2

public float ctrly2
The Y coordinate of the second control point of the cubic curve segment.


x2 sample code for java.awt.geom.CubicCurve2D.Float.x2

public float x2
The X coordinate of the end point of the cubic curve segment.


y2 sample code for java.awt.geom.CubicCurve2D.Float.y2

public float y2
The Y coordinate of the end point of the cubic curve segment.

Constructor Detail

CubicCurve2D.Float sample code for java.awt.geom.CubicCurve2D.Float() definition code for java.awt.geom.CubicCurve2D.Float()

public CubicCurve2D.Float()
Constructs and initializes a CubicCurve with coordinates (0, 0, 0, 0, 0, 0).


CubicCurve2D.Float sample code for java.awt.geom.CubicCurve2D.Float(float, float, float, float, float, float, float, float) definition code for java.awt.geom.CubicCurve2D.Float(float, float, float, float, float, float, float, float)

public CubicCurve2D.Float(float x1,
                          float y1,
                          float ctrlx1,
                          float ctrly1,
                          float ctrlx2,
                          float ctrly2,
                          float x2,
                          float y2)
Constructs and initializes a CubicCurve2D from the specified coordinates.

Parameters:
x1, y1 - the first specified coordinates for the start point of the resulting CubicCurve2D
ctrlx1, ctrly1 - the second specified coordinates for the first control point of the resulting CubicCurve2D
ctrlx2, ctrly2 - the third specified coordinates for the second control point of the resulting CubicCurve2D
x2, y2 - the fourth specified coordinates for the end point of the resulting CubicCurve2D
Method Detail

getX1 sample code for java.awt.geom.CubicCurve2D.Float.getX1() definition code for java.awt.geom.CubicCurve2D.Float.getX1()

public double getX1()
Returns the X coordinate of the start point in double precision.

Specified by:
getX1 sample code for java.awt.geom.CubicCurve2D.getX1() definition code for java.awt.geom.CubicCurve2D.getX1() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
the X coordinate of the start point of the CubicCurve2D.

getY1 sample code for java.awt.geom.CubicCurve2D.Float.getY1() definition code for java.awt.geom.CubicCurve2D.Float.getY1()

public double getY1()
Returns the Y coordinate of the start point in double precision.

Specified by:
getY1 sample code for java.awt.geom.CubicCurve2D.getY1() definition code for java.awt.geom.CubicCurve2D.getY1() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
the Y coordinate of the start point of the CubicCurve2D.

getP1 sample code for java.awt.geom.CubicCurve2D.Float.getP1() definition code for java.awt.geom.CubicCurve2D.Float.getP1()

public Point2D sample code for java.awt.geom.Point2D definition code for java.awt.geom.Point2D  getP1()
Returns the start point.

Specified by:
getP1 sample code for java.awt.geom.CubicCurve2D.getP1() definition code for java.awt.geom.CubicCurve2D.getP1() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
a Point2D sample code for java.awt.geom.Point2D definition code for java.awt.geom.Point2D that is the start point of the CubicCurve2D.

getCtrlX1 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlX1() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlX1()

public double getCtrlX1()
Returns the X coordinate of the first control point in double precision.

Specified by:
getCtrlX1 sample code for java.awt.geom.CubicCurve2D.getCtrlX1() definition code for java.awt.geom.CubicCurve2D.getCtrlX1() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
the X coordinate of the first control point of the CubicCurve2D.

getCtrlY1 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlY1() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlY1()

public double getCtrlY1()
Returns the Y coordinate of the first control point in double precision.

Specified by:
getCtrlY1 sample code for java.awt.geom.CubicCurve2D.getCtrlY1() definition code for java.awt.geom.CubicCurve2D.getCtrlY1() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
the Y coordinate of the first control point of the CubicCurve2D.

getCtrlP1 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlP1() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlP1()

public Point2D sample code for java.awt.geom.Point2D definition code for java.awt.geom.Point2D  getCtrlP1()
Returns the first control point.

Specified by:
getCtrlP1 sample code for java.awt.geom.CubicCurve2D.getCtrlP1() definition code for java.awt.geom.CubicCurve2D.getCtrlP1() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
a Point2D that is the first control point of the CubicCurve2D.

getCtrlX2 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlX2() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlX2()

public double getCtrlX2()
Returns the X coordinate of the second control point in double precision.

Specified by:
getCtrlX2 sample code for java.awt.geom.CubicCurve2D.getCtrlX2() definition code for java.awt.geom.CubicCurve2D.getCtrlX2() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
the X coordinate of the second control point of the CubicCurve2D.

getCtrlY2 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlY2() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlY2()

public double getCtrlY2()
Returns the Y coordinate of the second control point in double precision.

Specified by:
getCtrlY2 sample code for java.awt.geom.CubicCurve2D.getCtrlY2() definition code for java.awt.geom.CubicCurve2D.getCtrlY2() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
the Y coordinate of the second control point of the CubicCurve2D.

getCtrlP2 sample code for java.awt.geom.CubicCurve2D.Float.getCtrlP2() definition code for java.awt.geom.CubicCurve2D.Float.getCtrlP2()

public Point2D sample code for java.awt.geom.Point2D definition code for java.awt.geom.Point2D  getCtrlP2()
Returns the second control point.

Specified by:
getCtrlP2 sample code for java.awt.geom.CubicCurve2D.getCtrlP2() definition code for java.awt.geom.CubicCurve2D.getCtrlP2() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
a Point2D that is the second control point of the CubicCurve2D.

getX2 sample code for java.awt.geom.CubicCurve2D.Float.getX2() definition code for java.awt.geom.CubicCurve2D.Float.getX2()

public double getX2()
Returns the X coordinate of the end point in double precision.

Specified by:
getX2 sample code for java.awt.geom.CubicCurve2D.getX2() definition code for java.awt.geom.CubicCurve2D.getX2() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
the X coordinate of the end point of the CubicCurve2D.

getY2 sample code for java.awt.geom.CubicCurve2D.Float.getY2() definition code for java.awt.geom.CubicCurve2D.Float.getY2()

public double getY2()
Returns the Y coordinate of the end point in double precision.

Specified by:
getY2 sample code for java.awt.geom.CubicCurve2D.getY2() definition code for java.awt.geom.CubicCurve2D.getY2() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
the Y coordinate of the end point of the CubicCurve2D.

getP2 sample code for java.awt.geom.CubicCurve2D.Float.getP2() definition code for java.awt.geom.CubicCurve2D.Float.getP2()

public Point2D sample code for java.awt.geom.Point2D definition code for java.awt.geom.Point2D  getP2()
Returns the end point.

Specified by:
getP2 sample code for java.awt.geom.CubicCurve2D.getP2() definition code for java.awt.geom.CubicCurve2D.getP2() in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Returns:
a Point2D that is the end point of the CubicCurve2D.

setCurve sample code for java.awt.geom.CubicCurve2D.Float.setCurve(double, double, double, double, double, double, double, double) definition code for java.awt.geom.CubicCurve2D.Float.setCurve(double, double, double, double, double, double, double, double)

public void setCurve(double x1,
                     double y1,
                     double ctrlx1,
                     double ctrly1,
                     double ctrlx2,
                     double ctrly2,
                     double x2,
                     double y2)
Sets the location of the endpoints and controlpoints of this CubicCurve2D to the specified double coordinates.

Specified by:
setCurve sample code for java.awt.geom.CubicCurve2D.setCurve(double, double, double, double, double, double, double, double) definition code for java.awt.geom.CubicCurve2D.setCurve(double, double, double, double, double, double, double, double) in class CubicCurve2D sample code for java.awt.geom.CubicCurve2D definition code for java.awt.geom.CubicCurve2D
Parameters:
x1, y1 - the first specified coordinates used to set the start point of this CubicCurve2D
ctrlx1, ctrly1 - the second specified coordinates used to set the first control point of this CubicCurve2D
ctrlx2, ctrly2 - the third specified coordinates used to set the second control point of this CubicCurve2D
x2, y2 - the fourth specified coordinates used to set the end point of this CubicCurve2D

setCurve sample code for java.awt.geom.CubicCurve2D.Float.setCurve(float, float, float, float, float, float, float, float) definition code for java.awt.geom.CubicCurve2D.Float.setCurve(float, float, float, float, float, float, float, float)

public void setCurve(float x1,
                     float y1,
                     float ctrlx1,
                     float ctrly1,
                     float ctrlx2,
                     float ctrly2,
                     float x2,
                     float y2)
Sets the location of the endpoints and controlpoints of this curve to the specified float coordinates.

Parameters:
x1, y1 - the first specified coordinates used to set the start point of this CubicCurve2D
ctrlx1, ctrly1 - the second specified coordinates used to set the first control point of this CubicCurve2D
ctrlx2, ctrly2 - the third specified coordinates used to set the second control point of this CubicCurve2D
x2, y2 - the fourth specified coordinates used to set the end point of this CubicCurve2D

getBounds2D sample code for java.awt.geom.CubicCurve2D.Float.getBounds2D() definition code for java.awt.geom.CubicCurve2D.Float.getBounds2D()

public Rectangle2D sample code for java.awt.geom.Rectangle2D definition code for java.awt.geom.Rectangle2D  getBounds2D()
Returns the bounding box of the shape.

Returns:
a Rectangle2D sample code for java.awt.geom.Rectangle2D definition code for java.awt.geom.Rectangle2D that is the bounding box of the shape.
See Also:
Shape.getBounds() sample code for java.awt.Shape.getBounds() definition code for java.awt.Shape.getBounds()