所有类


java.awt.geom
类 Arc2D.Float

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

public static class Arc2D.Float
   
   
   
   
   
extends Arc2D

此类定义以 float 精度指定的弧。


嵌套类摘要
 
从类 java.awt.geom.Arc2D 继承的嵌套类/接口
Arc2D.Double, Arc2D.Float
 
字段摘要
 floatextent
          以度数表示的弧的角跨越。
 floatheight
          整个椭圆(此弧是其一部分)的总高度(不考虑角跨越)。
 floatstart
          以度数表示的弧起始角度。
 floatwidth
          整个椭圆(此弧是其一部分)的总宽度(不考虑角跨越)。
 floatx
          弧左上角的 X 坐标。
 floaty
          弧左上角的 Y 坐标。
 
从类 java.awt.geom.Arc2D 继承的字段
CHORD, OPEN, PIE
 
构造方法摘要
Arc2D.Float()
          构造一个新 OPEN 弧,并将其初始化为:位置 (0, 0)、大小 (0, 0)、角跨越 (start = 0, extent = 0)。
Arc2D.Float(float x, float y, float w, float h, float start, float extent, int type)
          构造一个新弧,并将其初始化为指定的位置、大小、角跨越和闭合类型。
Arc2D.Float(int type)
          构造一个新弧,并将其初始化为:位置 (0, 0)、大小 (0, 0),角跨越 (start = 0, extent = 0)、指定的闭合类型。
Arc2D.Float(Rectangle2D ellipseBounds, float start, float extent, int type)
          构造一个新弧,并将其初始化为指定的位置、大小、角跨越和闭合类型。
 
方法摘要
 doublegetAngleExtent()
          返回弧的角跨越。
 doublegetAngleStart()
          返回弧的起始角度。
 doublegetHeight()
          返回椭圆(此弧是其一部分)的高度。
 doublegetWidth()
          返回椭圆(此弧是其一部分)的宽度。
 doublegetX()
          返回弧左上角的 X 坐标。
 doublegetY()
          返回弧左上角的 Y 坐标。
 booleanisEmpty()
          确定弧是否为空。
protected  Rectangle2DmakeBounds(double x, double y, double w, double h)
          返回弧的高精度边界框。
 voidsetAngleExtent(double angExt)
          将此弧的角跨越设置为指定的 double 值。
 voidsetAngleStart(double angSt)
          将此弧的起始角度设置为指定的 double 值。
 voidsetArc(double x, double y, double w, double h, double angSt, double angExt, int closure)
          将此弧的位置、大小、角跨越和闭合类型设置为指定的 double 值。
 
从类 java.awt.geom.Arc2D 继承的方法
contains, contains, contains, containsAngle, getArcType, getBounds2D, getEndPoint, getPathIterator, getStartPoint, intersects, setAngles, setAngles, setAngleStart, setArc, setArc, setArc, setArcByCenter, setArcByTangent, setArcType, setFrame
 
从类 java.awt.geom.RectangularShape 继承的方法
clone, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

x

public float x
弧左上角的 X 坐标。


y

public float y
弧左上角的 Y 坐标。


width

public float width
整个椭圆(此弧是其一部分)的总宽度(不考虑角跨越)。


height

public float height
整个椭圆(此弧是其一部分)的总高度(不考虑角跨越)。


start

public float start
以度数表示的弧起始角度。


extent

public float extent
以度数表示的弧的角跨越。

构造方法详细信息

Arc2D.Float

public Arc2D.Float()
构造一个新 OPEN 弧,并将其初始化为:位置 (0, 0)、大小 (0, 0)、角跨越 (start = 0, extent = 0)。


Arc2D.Float

public Arc2D.Float(int type)
构造一个新弧,并将其初始化为:位置 (0, 0)、大小 (0, 0),角跨越 (start = 0, extent = 0)、指定的闭合类型。

参数:
type - 弧的闭合类型:OPENCHORDPIE