所有类


java.awt.geom
类 CubicCurve2D.Float

java.lang.Object
  继承者 java.awt.geom.CubicCurve2D
      继承者 java.awt.geom.CubicCurve2D.Float
所有已实现的接口:
Shape, Cloneable
正在封闭类:
CubicCurve2D

public static class CubicCurve2D.Float
   
   
   
   
   
extends CubicCurve2D

使用 float 坐标指定的三次参数曲线段。


嵌套类摘要
 
从类 java.awt.geom.CubicCurve2D 继承的嵌套类/接口
CubicCurve2D.Double, CubicCurve2D.Float
 
字段摘要
 floatctrlx1
          三次曲线段第一个控制点的 X 坐标。
 floatctrlx2
          三次曲线段第二个控制点的 X 坐标。
 floatctrly1
          三次曲线段第一个控制点的 Y 坐标。
 floatctrly2
          三次曲线段第二个控制点的 Y 坐标。
 floatx1
          三次曲线段起始点的 X 坐标。
 floatx2
          三次曲线段结束点的 X 坐标。
 floaty1
          三次曲线段起始点的 Y 坐标。
 floaty2
          三次曲线段结束点的 Y 坐标。
 
构造方法摘要
CubicCurve2D.Float()
          构造并初始化一个具有坐标 (0, 0, 0, 0, 0, 0) 的 CubicCurve。
CubicCurve2D.Float(float x1, float y1, float ctrlx1, float ctrly1, float ctrlx2, float ctrly2, float x2, float y2)
          构造并初始化一个具有指定坐标的 CubicCurve2D
 
方法摘要
 Rectangle2DgetBounds2D()
          返回形状的边界框。
 Point2DgetCtrlP1()
          返回第一个控制点。
 Point2DgetCtrlP2()
          返回第二个控制点。
 doublegetCtrlX1()
          以 double 精度返回第一个控制点的 X 坐标。
 doublegetCtrlX2()
          以 double 精度返回第二个控制点的 X 坐标。
 doublegetCtrlY1()
          以 double 精度返回第一个控制点的 Y 坐标。
 doublegetCtrlY2()
          以 double 精度返回第二个控制点的 Y 坐标。
 Point2DgetP1()
          返回起始点。
 Point2DgetP2()
          返回结束点。
 doublegetX1()
          以 double 精度返回起始点的 X 坐标。
 doublegetX2()
          以 double 精度返回结束点的 X 坐标。
 doublegetY1()
          以 double 精度返回起始点的 Y 坐标。
 doublegetY2()
          以 double 精度返回结束点的 Y 坐标。
 voidsetCurve(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)
          将此 CubicCurve2D 结束点和控制点的位置设置为指定的 double 坐标。
 voidsetCurve(float x1, float y1, float ctrlx1, float ctrly1, float ctrlx2, float ctrly2, float x2, float y2)
          将此曲线结束点和控制点的位置设置为指定的 float 坐标。
 
从类 java.awt.geom.CubicCurve2D 继承的方法
clone, contains, contains, contains, contains, getBounds, getFlatness, getFlatness, getFlatness, getFlatnessSq, getFlatnessSq, getFlatnessSq, getPathIterator, getPathIterator, intersects, intersects, setCurve, setCurve, setCurve, setCurve, solveCubic, solveCubic, subdivide, subdivide, subdivide
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

x1

public float x1
三次曲线段起始点的 X 坐标。


y1

public float y1
三次曲线段起始点的 Y 坐标。


ctrlx1

public float ctrlx1
三次曲线段第一个控制点的 X 坐标。


ctrly1

public float ctrly1
三次曲线段第一个控制点的 Y 坐标。


ctrlx2

public float ctrlx2
三次曲线段第二个控制点的 X 坐标。


ctrly2

public float ctrly2
三次曲线段第二个控制点的 Y 坐标。


x2

public float x2
三次曲线段结束点的 X 坐标。