public static class Arc2D.Float extends Arc2D implements Serializable
float精度的弧。
Arc2D.Double, Arc2D.Float| Modifier and Type | Field and Description |
|---|---|
float |
extent
电弧的角度范围为度。
|
float |
height
整个椭圆的整体高度,其圆弧为局部剖面(不考虑角度范围)。
|
float |
start
电弧的起始角度以度为单位。
|
float |
width
整个椭圆的整个宽度,其圆弧是部分截面(不考虑角度范围)。
|
float |
x
圆弧框架矩形左上角的X坐标。
|
float |
y
圆弧框架矩形左上角的Y坐标。
|
| Constructor and Description |
|---|
Float()
构造一个新的OPEN弧,初始化为位置(0,0),大小(0,0),角度范围(起始= 0,范围= 0)。
|
Float(float x, float y, float w, float h, float start, float extent, int type)
构造一个新弧,初始化为指定的位置,大小,角度范围和关闭类型。
|
Float(int type)
构造一个新弧,初始化为位置(0,0),大小(0,0),角度范围(起始= 0,范围= 0)以及指定的闭合类型。
|
Float(Rectangle2D ellipseBounds, float start, float extent, int type)
构造一个新弧,初始化为指定的位置,大小,角度范围和关闭类型。
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAngleExtent()
返回弧的角度范围。
|
double |
getAngleStart()
返回弧的起始角度。
|
double |
getHeight()
返回
double精度框架矩形的高度。
|
double |
getWidth()
返回
double精度框架矩形的宽度。
|
double |
getX()
返回double精度的框架矩形左上角的
double坐标。
|
double |
getY()
以double精度返回框架矩形左上角的
double坐标。
|
boolean |
isEmpty()
确定是否
RectangularShape是空的。
|
protected Rectangle2D |
makeBounds(double x, double y, double w, double h)
构造一个
Rectangle2D精度的
Rectangle2D ,以将计算的参数保持为该弧的框架矩形。
|
void |
setAngleExtent(double angExt)
将此弧的角度范围设置为指定的双精度值。
|
void |
setAngleStart(double angSt)
将此弧的起始角度设置为指定的双精度值。
|
void |
setArc(double x, double y, double w, double h, double angSt, double angExt, int closure)
将此弧的位置,大小,角度范围和闭合类型设置为指定的双精度值。
|
contains, contains, contains, containsAngle, equals, getArcType, getBounds2D, getEndPoint, getPathIterator, getStartPoint, hashCode, intersects, setAngles, setAngles, setAngleStart, setArc, setArc, setArc, setArcByCenter, setArcByTangent, setArcType, setFrameclone, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalpublic float x
public float y
public float width
public float height
public float start
public float extent
public Float()
public Float(int type)
type -闭合型的弧线:
Arc2D.OPEN ,
Arc2D.CHORD ,或
Arc2D.PIE 。
public Float(float x,
float y,
float w,
float h,
float start,
float extent,
int type)
x - 圆弧框架矩形左上角的X坐标。
y - 圆弧框架矩形左上角的Y坐标。
w - 整个椭圆的整体宽度,这个圆弧是局部剖面。
h - 整个椭圆的整体高度,其中该弧为部分截面。
start - 圆弧的起始角度,以度为单位。
extent - 弧度的角度范围。
type -闭合型的弧线:
Arc2D.OPEN ,
Arc2D.CHORD ,或
Arc2D.PIE 。
public Float(Rectangle2D ellipseBounds, float start, float extent, int type)
ellipseBounds - 定义整个椭圆的外边界的框架矩形,其中该弧是部分截面。
start - 圆弧的起始角度,以度为单位。
extent - 弧度的角度范围。
type -闭合型的弧线:
Arc2D.OPEN ,
Arc2D.CHORD ,或
Arc2D.PIE 。
public double getX()
double坐标。
请注意,这个RectangularShape的框架矩形RectangularShape 。
getX在
RectangularShape
public double getY()
double坐标。
请注意,这个RectangularShape的框架矩形RectangularShape 。
getY在类别
RectangularShape
public double getWidth()
double精度框架矩形的宽度。
请注意,这个RectangularShape的框架矩形RectangularShape 。
getWidth在类别
RectangularShape
public double getHeight()
double精度框架矩形的高度。
请注意,这个RectangularShape的框架矩形RectangularShape 。
getHeight在类别
RectangularShape
public double getAngleStart()
getAngleStart在类别
Arc2D
Arc2D.setAngleStart(double)
public double getAngleExtent()
getAngleExtent在类别
Arc2D
Arc2D.setAngleExtent(double)
public boolean isEmpty()
RectangularShape是空的。
RectangularShape为空时,不包含区域。
isEmpty在类别
RectangularShape
true如果RectangularShape是空的;
false否则。
public void setArc(double x,
double y,
double w,
double h,
double angSt,
double angExt,
int closure)
setArc在类别
Arc2D
x - 圆弧左上角的X坐标。
y - 圆弧左上角的Y坐标。
w - 整个椭圆的整体宽度,这个圆弧是局部剖面。
h - 整个椭圆的整体高度,其圆弧为部分截面。
angSt - 圆弧的起始角度,以度为单位。
angExt - 弧度的角度范围。
closure -闭合型的弧线:
Arc2D.OPEN ,
Arc2D.CHORD ,或
Arc2D.PIE 。
public void setAngleStart(double angSt)
setAngleStart在
Arc2D
angSt - 圆弧的起始角度,以度为单位。
Arc2D.getAngleStart()
public void setAngleExtent(double angExt)
setAngleExtent在类别
Arc2D
angExt - 弧度的角度范围。
Arc2D.getAngleExtent()
protected Rectangle2D makeBounds(double x, double y, double w, double h)
Rectangle2D精度的Rectangle2D,以将计算的参数保存为该弧的框架矩形。
makeBounds在类别
Arc2D
x - 框架矩形左上角的X坐标。
y - 框架矩形左上角的Y坐标。
w - 框架矩形的宽度。
h - 框架矩形的高度。
Rectangle2D是这个弧的框架矩形。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.