| |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.awt.geom
类 CubicCurve2D.Float
java.lang.Object java.awt.geom.CubicCurve2D java.awt.geom.CubicCurve2D.Float
- 正在封闭类:
- CubicCurve2D
public static class CubicCurve2D.Float
- extends CubicCurve2D
使用 float 坐标指定的三次参数曲线段。
嵌套类摘要 |
---|
从类 java.awt.geom.CubicCurve2D 继承的嵌套类/接口 |
---|
CubicCurve2D.Double, CubicCurve2D.Float |
字段摘要 | |
---|---|
float | ctrlx1 三次曲线段第一个控制点的 X 坐标。 |
float | ctrlx2 三次曲线段第二个控制点的 X 坐标。 |
float | ctrly1 三次曲线段第一个控制点的 Y 坐标。 |
float | ctrly2 三次曲线段第二个控制点的 Y 坐标。 |
float | x1 三次曲线段起始点的 X 坐标。 |
float | x2 三次曲线段结束点的 X 坐标。 |
float | y1 三次曲线段起始点的 Y 坐标。 |
float | y2 三次曲线段结束点的 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 。 |
方法摘要 | |
---|---|
Rectangle2D | getBounds2D() 返回形状的边界框。 |
Point2D | getCtrlP1() 返回第一个控制点。 |
Point2D | getCtrlP2() 返回第二个控制点。 |
double | getCtrlX1() 以 double 精度返回第一个控制点的 X 坐标。 |
double | getCtrlX2() 以 double 精度返回第二个控制点的 X 坐标。 |
double | getCtrlY1() 以 double 精度返回第一个控制点的 Y 坐标。 |
double | getCtrlY2() 以 double 精度返回第二个控制点的 Y 坐标。 |
Point2D | getP1() 返回起始点。 |
Point2D | getP2() 返回结束点。 |
double | getX1() 以 double 精度返回起始点的 X 坐标。 |
double | getX2() 以 double 精度返回结束点的 X 坐标。 |
double | getY1() 以 double 精度返回起始点的 Y 坐标。 |
double | getY2() 以 double 精度返回结束点的 Y 坐标。 |
void | setCurve(double x1, double y1, double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2) 将此 CubicCurve2D 结束点和控制点的位置设置为指定的 double 坐标。 |
void | setCurve(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 坐标。