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.Float

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

public static class QuadCurve2D.Float
extends QuadCurve2D
implements Serializable

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


Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.QuadCurve2D
QuadCurve2D.Double, QuadCurve2D.Float
   
Field Summary
 float ctrlx
          The X coordinate of the control point of the quadratic curve segment.
 float ctrly
          The Y coordinate of the control point of the quadratic curve segment.
 float x1
          The X coordinate of the start point of the quadratic curve segment.
 float x2
          The X coordinate of the end point of the quadratic curve segment.
 float y1
          The Y coordinate of the start point of the quadratic curve segment.
 float 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.Float(float x1, float y1, float ctrlx, float ctrly, float x2, float 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.
 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 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 float ctrlx
The X coordinate of the control point of the quadratic curve segment.

ctrly

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

x1

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

x2

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

y1

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

y2

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

QuadCurve2D.Float

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


QuadCurve2D.Float

public QuadCurve2D.Float(float x1,
                         float y1,
                         float ctrlx,
                         float ctrly,
                         float x2,
                         float y2)
Constructs and initializes a QuadCurve2D from the specified {@code float} 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

setCurve

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 {@code float} 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


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/.