java.applet

java.awt

java.awt.color

java.awt.datatransfer

java.awt.dnd

java.awt.event

java.awt.font

java.awt.geom

java.awt.im

java.awt.im.spi

java.awt.image

java.awt.image.renderable

java.awt.print

java.beans

java.beans.beancontext

java.io

java.lang

java.lang.annotation

java.lang.instrument

java.lang.management

java.lang.ref

java.lang.reflect

java.math

java.net

java.nio

java.nio.channels

java.nio.channels.spi

java.nio.charset

java.nio.charset.spi

java.rmi

java.rmi.activation

java.rmi.dgc

java.rmi.registry

java.rmi.server

java.security

java.security.acl

java.security.cert

java.security.interfaces

java.security.spec

java.sql

java.text

java.util

java.util.concurrent

java.util.concurrent.atomic

java.util.concurrent.locks

java.util.jar

java.util.logging

java.util.prefs

java.util.regex

java.util.zip

javax.accessibility

javax.activity

javax.crypto

javax.crypto.interfaces

javax.crypto.spec

javax.imageio

javax.imageio.event

javax.imageio.metadata

javax.imageio.plugins.bmp

javax.imageio.plugins.jpeg

javax.imageio.spi

javax.imageio.stream

javax.management

javax.management.loading

javax.management.modelmbean

javax.management.monitor

javax.management.openmbean

javax.management.relation

javax.management.remote

javax.management.remote.rmi

javax.management.timer

javax.naming

javax.naming.directory

javax.naming.event

javax.naming.ldap

javax.naming.spi

javax.net

javax.net.ssl

javax.print

javax.print.attribute

javax.print.attribute.standard

javax.print.event

javax.rmi

javax.rmi.CORBA

javax.rmi.ssl

javax.security.auth

javax.security.auth.callback

javax.security.auth.kerberos

javax.security.auth.login

javax.security.auth.spi

javax.security.auth.x500

javax.security.cert

javax.security.sasl

javax.sound.midi

javax.sound.midi.spi

javax.sound.sampled

javax.sound.sampled.spi

javax.sql

javax.sql.rowset

javax.sql.rowset.serial

javax.sql.rowset.spi

javax.swing

javax.swing.border

javax.swing.colorchooser

javax.swing.event

javax.swing.filechooser

javax.swing.plaf

javax.swing.plaf.basic

javax.swing.plaf.metal

javax.swing.plaf.multi

javax.swing.plaf.synth

javax.swing.table

javax.swing.text

javax.swing.text

javax.swing.text.parser

javax.swing.text.rtf

javax.swing.tree

javax.swing.undo

javax.transaction

javax.transaction.xa

javax.xml

javax.xml.datatype

javax.xml.namespace

javax.xml.parsers

javax.xml.transform

javax.xml.transform.dom

javax.xml.transform.sax

javax.xml.transform.stream

javax.xml.validation

javax.xml.xpath

org.ietf.jgss

org.omg.CORBA

org.omg.CORBA_2_3

org.omg.CORBA_2_3.portable

org.omg.CORBA.DynAnyPackage

org.omg.CORBA.ORBPackage

org.omg.CORBA.portable

org.omg.CORBA.TypeCodePackage

org.omg.CosNaming

org.omg.CosNaming.NamingContextExtPackage

org.omg.CosNaming.NamingContextPackage

org.omg.Dynamic

org.omg.DynamicAny

org.omg.DynamicAny.DynAnyFactoryPackage

org.omg.DynamicAny.DynAnyPackage

org.omg.IOP

org.omg.IOP.CodecFactoryPackage

org.omg.IOP.CodecPackage

org.omg.Messaging

org.omg.PortableInterceptor

org.omg.PortableInterceptor.ORBInitInfoPackage

org.omg.PortableServer

org.omg.PortableServer.CurrentPackage

org.omg.PortableServer.POAManagerPackage

org.omg.PortableServer.POAPackage

org.omg.PortableServer.portable

org.omg.PortableServer.ServantLocatorPackage

org.omg.SendingContext

org.omg.stub.java.rmi

org.w3c.dom

org.w3c.dom.bootstrap

org.w3c.dom.events

org.w3c.dom.ls

org.xml.sax

org.xml.sax.ext

org.xml.sax.helpers

allclasses-frame

allclasses-noframe

constant-values

deprecated-list

help-doc

JavaTM 2 Platform
Standard Ed. 5.0

java.awt.geom
类 RoundRectangle2D.Float

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

public static class RoundRectangle2D.Float
extends RoundRectangle2D

Float 类定义了一个所有坐标都是 float 值的圆角矩形。


嵌套类摘要
 
从类 java.awt.geom.RoundRectangle2D 继承的嵌套类/接口
RoundRectangle2D.Double, RoundRectangle2D.Float
 
字段摘要
 float archeight
          圆角弧的高度。
 float arcwidth
          圆角弧的宽度。
 float height
          此 RoundRectangle2D 的高度。
 float width
          此 RoundRectangle2D 的宽度。
 float x
          此 RoundRectangle2D 的 X 坐标。
 float y
          此 RoundRectangle2D 的 Y 坐标。
 
构造方法摘要
RoundRectangle2D.Float()
          构造一个位置在 (0.0,0),大小为 (0.0,0.0),并且圆角弧半径为 0.0 的新 RoundRectangle2D
RoundRectangle2D.Float(float x, float y, float w, float h, float arcw, float arch)
          构造并初始化一个具有指定坐标的 RoundRectangle2D
 
方法摘要
 double getArcHeight()
          返回圆角弧的高度。
 double getArcWidth()
          返回圆角弧的宽度。
 Rectangle2D getBounds2D()
          返回此 RoundRectangle2D 的高精度的边界框。
 double getHeight()
          以 double 精度返回此 RoundRectangle2D 的高度。
 double getWidth()
          以 double 精度返回此 RoundRectangle2D 的宽度。
 double getX()
          以 double 精度返回此 RoundRectangle2D 的 X 坐标。
 double getY()
          以 double 精度返回此 RoundRectangle2D 的 Y 坐标。
 boolean isEmpty()
          确定此 RoundRectangle2D 是否为空。
 void setRoundRect(double x, double y, double w, double h, double arcw, double arch)
          将此 RoundRectangle2D 的位置、大小和圆角半径设置为指定的 double 值。
 void setRoundRect(float x, float y, float w, float h, float arcw, float arch)
          将此 RoundRectangle2D 的位置、大小和圆角半径设置为指定的 float 值。
 void setRoundRect(RoundRectangle2D rr)
          将此 RoundRectangle2D 设置为与指定 RoundRectangle2D 相同。
 
从类 java.awt.geom.RoundRectangle2D 继承的方法
contains, contains, getPathIterator, intersects, setFrame
 
从类 java.awt.geom.RectangularShape 继承的方法
clone, contains, 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
RoundRectangle2D 的 X 坐标。


y

public float y
RoundRectangle2D 的 Y 坐标。


width

public float width
RoundRectangle2D 的宽度。


height

public float height
RoundRectangle2D 的高度。


arcwidth

public float arcwidth
圆角弧的宽度。


archeight

public float archeight
圆角弧的高度。

构造方法详细信息

RoundRectangle2D.Float

public RoundRectangle2D.Float()
构造一个位置在 (0.0,0),大小为 (0.0,0.0),并且圆角弧半径为 0.0 的新 RoundRectangle2D


RoundRectangle2D.Float

public RoundRectangle2D.Float(float x,
                              float y,
                              float w,
                              float h,
                              float arcw,
                              float arch)
构造并初始化一个具有指定坐标的 RoundRectangle2D

参数:
x, y - 设置新构造的 RoundRectangle2D 的坐标
w - 设置新构造的 RoundRectangle2D 的宽度
h - 设置新构造的 RoundRectangle2D 高度
arcw - 新构造的 RoundRectangle2D 的圆角弧宽度
arch - 新构造的 RoundRectangle2D 的圆角弧高度
方法详细信息

getX

public double getX()
double 精度返回此 RoundRectangle2D 的 X 坐标。

指定者:
RectangularShape 中的 getX
返回:
RoundRectangle2D 的 X 坐标。

getY

public double getY()
double 精度返回此 RoundRectangle2D 的 Y 坐标。

指定者:
RectangularShape 中的 getY
返回:
RoundRectangle2D 的 Y 坐标。

getWidth

public double getWidth()
double 精度返回此 RoundRectangle2D 的宽度。

指定者:
RectangularShape 中的 getWidth
返回:
RoundRectangle2D 的宽度。

getHeight

public double getHeight()
double 精度返回此 RoundRectangle2D 的高度。

指定者:
RectangularShape 中的 getHeight
返回:
RoundRectangle2D 的高度。

getArcWidth

public double getArcWidth()
返回圆角弧的宽度。

指定者:
RoundRectangle2D 中的 getArcWidth
返回:
RoundRectangle2D 的圆角弧宽度。

getArcHeight

public double getArcHeight()
返回圆角弧的高度。

指定者:
RoundRectangle2D 中的 getArcHeight
返回:
RoundRectangle2D 的圆角弧的高度。

isEmpty

public boolean isEmpty()
确定此 RoundRectangle2D 是否为空。

指定者:
RectangularShape 中的 isEmpty
返回:
如果此 RoundRectangle2D 为空,则返回 true;否则返回 false

setRoundRect

public void setRoundRect(float x,
                         float y,
                         float w,
                         float h,
                         float arcw,
                         float arch)
将此 RoundRectangle2D 的位置、大小和圆角半径设置为指定的 float 值。

参数:
x, y - 设置此 RoundRectangle2D 位置的坐标
w - 设置此 RoundRectangle2D 的宽度
h - 设置此 RoundRectangle2D 的高度
arcw - 设置此 RoundRectangle2D 的弧宽
arch - 设置此 RoundRectangle2D 的弧高

setRoundRect

public void setRoundRect(double x,
                         double y,
                         double w,
                         double h,
                         double arcw,
                         double arch)
将此 RoundRectangle2D 的位置、大小和圆角半径设置为指定的 double 值。

指定者:
RoundRectangle2D 中的 setRoundRect
参数:
x, y - 设置此 RoundRectangle2D 位置的坐标
w - 设置此 RoundRectangle2D 的宽度
h - 设置此 RoundRectangle2D 的高度
arcw - 设置此 RoundRectangle2D 的弧宽
arch - 设置此 RoundRectangle2D 的弧高

setRoundRect

public void setRoundRect(RoundRectangle2D rr)
将此 RoundRectangle2D 设置为与指定 RoundRectangle2D 相同。

覆盖:
RoundRectangle2D 中的 setRoundRect
参数:
rr - 指定的 RoundRectangle2D

getBounds2D

public Rectangle2D getBounds2D()
返回此 RoundRectangle2D 的高精度的边界框。

返回:
作为此 RoundRectangle2D 边界框的 Rectangle2D
另请参见:
Shape.getBounds()

JavaTM 2 Platform
Standard Ed. 5.0

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策