This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.awt.geom
class CubicCurve2D.Double

java.lang.Object extended by java.awt.geom.CubicCurve2D extended by java.awt.geom.CubicCurve2D.Double
All Implemented Interfaces:
Shape, Serializable, Cloneable
Enclosing class:
CubicCurve2D

public static class CubicCurve2D.Double
extends CubicCurve2D
implements Serializable

A cubic parametric curve segment specified with {@code double} coordinates.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.CubicCurve2D
CubicCurve2D.Double, CubicCurve2D.Float
   
Field Summary
 double ctrlx1
          The X coordinate of the first control point of the cubic curve segment.
 double ctrlx2
          The X coordinate of the second control point of the cubic curve segment.
 double ctrly1
          The Y coordinate of the first control point of the cubic curve segment.
 double ctrly2
          The Y coordinate of the second control point of the cubic curve segment.
 double x1
          The X coordinate of the start point of the cubic curve segment.
 double x2
          The X coordinate of the end point of the cubic curve segment.
 double y1
          The Y coordinate of the start point of the cubic curve segment.
 double y2
          The Y coordinate of the end point of the cubic curve segment.
 
Constructor Summary

          Constructs and initializes a CubicCurve with coordinates (0, 0, 0, 0, 0, 0).
CubicCurve2D.Double(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)

          Constructs and initializes a from the specified coordinates.
 
Method Summary
 Rectangle2D

          
 Point2D

          Returns the first control point.
 Point2D

          Returns the second control point.
 double

          Returns the X coordinate of the first control point in double precision.
 double

          Returns the X coordinate of the second control point in double precision.
 double

          Returns the Y coordinate of the first control point in double precision.
 double

          Returns the Y coordinate of the second control point in double precision.
 Point2D

          Returns the start point.
 Point2D

          Returns the end point.
 double

          Returns the X coordinate of the start point in double precision.
 double

          Returns the X coordinate of the end point in double precision.
 double

          Returns the Y coordinate of the start point in double precision.
 double

          Returns the Y coordinate of the end point in double precision.
 void
setCurve(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)

          Sets the location of the end points and control points of this curve to the specified double coordinates.
 
Methods inherited from class java.awt.geom.CubicCurve2D
clone, contains, contains, contains, contains, getBounds, getCtrlP1, getCtrlP2, getCtrlX1, getCtrlX2, getCtrlY1, getCtrlY2, getFlatness, getFlatness, getFlatness, getFlatnessSq, getFlatnessSq, getFlatnessSq, getP1, getP2, getPathIterator, getPathIterator, getX1, getX2, getY1, getY2, intersects, intersects, setCurve, setCurve, setCurve, setCurve, setCurve, solveCubic, solveCubic, subdivide, subdivide, subdivide
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctrlx1

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

ctrlx2

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

ctrly1

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

ctrly2

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

x1

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

x2

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

y1

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

y2

public double y2
The Y coordinate of the end point of the cubic curve segment.
Constructor Detail

CubicCurve2D.Double

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


CubicCurve2D.Double

public CubicCurve2D.Double(double x1,
                           double y1,
                           double ctrlx1,
                           double ctrly1,
                           double ctrlx2,
                           double ctrly2,
                           double x2,
                           double y2)
Constructs and initializes a {@code CubicCurve2D} from the specified {@code double} coordinates.

Parameters:
x1 - the X coordinate for the start point of the resulting {@code CubicCurve2D}
y1 - the Y coordinate for the start point of the resulting {@code CubicCurve2D}
ctrlx1 - the X coordinate for the first control point of the resulting {@code CubicCurve2D}
ctrly1 - the Y coordinate for the first control point of the resulting {@code CubicCurve2D}
ctrlx2 - the X coordinate for the second control point of the resulting {@code CubicCurve2D}
ctrly2 - the Y coordinate for the second control point of the resulting {@code CubicCurve2D}
x2 - the X coordinate for the end point of the resulting {@code CubicCurve2D}
y2 - the Y coordinate for the end point of the resulting {@code CubicCurve2D}
Method Detail

getBounds2D

public Rectangle2D getBounds2D()
{@inheritDoc}


getCtrlP1

public Point2D getCtrlP1()
{@inheritDoc}

Overrides:
getCtrlP1 in class CubicCurve2D

getCtrlP2

public Point2D getCtrlP2()
{@inheritDoc}

Overrides:
getCtrlP2 in class CubicCurve2D

getCtrlX1

public double getCtrlX1()
{@inheritDoc}

Overrides:
getCtrlX1 in class CubicCurve2D

getCtrlX2

public double getCtrlX2()
{@inheritDoc}

Overrides:
getCtrlX2 in class CubicCurve2D

getCtrlY1

public double getCtrlY1()
{@inheritDoc}

Overrides:
getCtrlY1 in class CubicCurve2D

getCtrlY2

public double getCtrlY2()
{@inheritDoc}

Overrides:
getCtrlY2 in class CubicCurve2D

getP1

public Point2D getP1()
{@inheritDoc}

Overrides:
getP1 in class CubicCurve2D

getP2

public Point2D getP2()
{@inheritDoc}

Overrides:
getP2 in class CubicCurve2D

getX1

public double getX1()
{@inheritDoc}

Overrides:
getX1 in class CubicCurve2D

getX2

public double getX2()
{@inheritDoc}

Overrides:
getX2 in class CubicCurve2D

getY1

public double getY1()
{@inheritDoc}

Overrides:
getY1 in class CubicCurve2D

getY2

public double getY2()
{@inheritDoc}

Overrides:
getY2 in class CubicCurve2D

setCurve

public void setCurve(double x1,
                     double y1,
                     double ctrlx1,
                     double ctrly1,
                     double ctrlx2,
                     double ctrly2,
                     double x2,
                     double y2)
{@inheritDoc}

Overrides:
setCurve in class CubicCurve2D
Parameters:
x1
y1
ctrlx1
ctrly1
ctrlx2
ctrly2
x2
y2


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.