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 QuadCurve2D.Double

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

public static class QuadCurve2D.Double
extends QuadCurve2D
implements Serializable

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


Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.QuadCurve2D
QuadCurve2D.Double, QuadCurve2D.Float
   
Field Summary
 double ctrlx
          The X coordinate of the control point of the quadratic curve segment.
 double ctrly
          The Y coordinate of the control point of the quadratic curve segment.
 double x1
          The X coordinate of the start point of the quadratic curve segment.
 double x2
          The X coordinate of the end point of the quadratic curve segment.
 double y1
          The Y coordinate of the start point of the quadratic curve segment.
 double y2
          The Y coordinate of the end point of the quadratic curve segment.
 
Constructor Summary

          Constructs and initializes a QuadCurve2D with coordinates (0, 0, 0, 0, 0, 0).
QuadCurve2D.Double(double x1, double y1, double ctrlx, double ctrly, double x2, double y2)

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

          
 Point2D

          Returns the control point.
 double

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

          Returns the Y coordinate of the 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 in 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 ctrlx, double ctrly, double x2, double y2)

          Sets the location of the end points and control point of this curve to the specified double coordinates.
 
Methods inherited from class java.awt.geom.QuadCurve2D
clone, contains, contains, contains, contains, getBounds, getCtrlPt, getCtrlX, getCtrlY, getFlatness, getFlatness, getFlatness, getFlatnessSq, getFlatnessSq, getFlatnessSq, getP1, getP2, getPathIterator, getPathIterator, getX1, getX2, getY1, getY2, intersects, intersects, setCurve, setCurve, setCurve, setCurve, setCurve, solveQuadratic, solveQuadratic, subdivide, subdivide, subdivide
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctrlx

public double ctrlx
The X coordinate of the control point of the quadratic curve segment.

ctrly

public double ctrly
The Y coordinate of the control point of the quadratic curve segment.

x1

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

x2

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

y1

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

y2

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

QuadCurve2D.Double

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


QuadCurve2D.Double

public QuadCurve2D.Double(double x1,
                          double y1,
                          double ctrlx,
                          double ctrly,
                          double x2,
                          double y2)
Constructs and initializes a QuadCurve2D from the specified {@code double} coordinates.

Parameters:
x1 - the X coordinate of the start point
y1 - the Y coordinate of the start point
ctrlx - the X coordinate of the control point
ctrly - the Y coordinate of the control point
x2 - the X coordinate of the end point
y2 - the Y coordinate of the end point
Method Detail

getBounds2D

public Rectangle2D getBounds2D()
{@inheritDoc}


getCtrlPt

public Point2D getCtrlPt()
{@inheritDoc}

Overrides:
getCtrlPt in class QuadCurve2D

getCtrlX

public double getCtrlX()
{@inheritDoc}

Overrides:
getCtrlX in class QuadCurve2D

getCtrlY

public double getCtrlY()
{@inheritDoc}

Overrides:
getCtrlY in class QuadCurve2D

getP1

public Point2D getP1()
{@inheritDoc}

Overrides:
getP1 in class QuadCurve2D

getP2

public Point2D getP2()
{@inheritDoc}

Overrides:
getP2 in class QuadCurve2D

getX1

public double getX1()
{@inheritDoc}

Overrides:
getX1 in class QuadCurve2D

getX2

public double getX2()
{@inheritDoc}

Overrides:
getX2 in class QuadCurve2D

getY1

public double getY1()
{@inheritDoc}

Overrides:
getY1 in class QuadCurve2D

getY2

public double getY2()
{@inheritDoc}

Overrides:
getY2 in class QuadCurve2D

setCurve

public void setCurve(double x1,
                     double y1,
                     double ctrlx,
                     double ctrly,
                     double x2,
                     double y2)
{@inheritDoc}

Overrides:
setCurve in class QuadCurve2D
Parameters:
x1
y1
ctrlx
ctrly
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/.