java.awt.geom
Class RoundRectangle2D.Float
java.lang.Object
|
+--java.awt.geom.RectangularShape
|
+--java.awt.geom.RoundRectangle2D
|
+--java.awt.geom.RoundRectangle2D.Float
A subclass of RoundRectangle which keeps its parameters as
floats.
Float()
|
Float(float x, float y, float w, float h, float arcWidth, float arcHeight)
|
double | getArcHeight()
|
double | getArcWidth()
|
java.awt.geom.Rectangle2D | getBounds2D()
|
double | getHeight()
|
double | getWidth()
|
double | getX()
|
double | getY()
|
boolean | isEmpty()
|
void | setRoundRect(float x, float y, float w, float h, float arcWidth, float arcHeight)
|
void | setRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)
|
archeight
public float archeightThe height of the corner arc.
arcwidth
public float arcwidthThe width of the corner arc.
height
public float heightThe height of this object.
width
public float widthThe width of this object.
x
public float xThe x coordinate of this object.
y
public float yThe y coordinate of this object.
Float
public Float()Construct a new instance, with all parameters set to 0.
Float
public Float(float x, float y, float w, float h, float arcWidth, float arcHeight)Construct a new instance with the given arguments.
Parameters:
getArcHeight
public double getArcHeight()
getArcWidth
public double getArcWidth()
getBounds2D
public Rectangle2D getBounds2D()
getHeight
public double getHeight()
getWidth
public double getWidth()
getX
public double getX()
getY
public double getY()
isEmpty
public boolean isEmpty()
setRoundRect
public void setRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)Parameters:
setRoundRect
public void setRoundRect(float x, float y, float w, float h, float arcWidth, float arcHeight)Parameters: