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()
构造一个新的开放的弧线,初始化为位置(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 精度框架矩形左上角的x坐标。
|
double |
getY()
返回的
double 精度框架矩形左上角的Y坐标。
|
boolean |
isEmpty()
确定
RectangularShape 是空的。
|
protected Rectangle2D |
makeBounds(double x, double y, double w, double h)
构建了一个
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, setFrame
clone, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
public 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()
getX
方法重写,继承类
RectangularShape
public double getY()
getY
方法重写,继承类
RectangularShape
public double getWidth()
getWidth
方法重写,继承类
RectangularShape
public double getHeight()
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
适当的精度保持计算为该弧的框架矩形参数。
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.