java.awt.geom

Class RoundRectangle2D.Double

public static class RoundRectangle2D.Double extends RoundRectangle2D

A subclass of RoundRectangle which keeps its parameters as doubles.
Field Summary
doublearcheight
The height of the corner arc.
doublearcwidth
The width of the corner arc.
doubleheight
The height of this object.
doublewidth
The width of this object.
doublex
The x coordinate of this object.
doubley
The y coordinate of this object.
Constructor Summary
Double()
Construct a new instance, with all parameters set to 0.
Double(double x, double y, double w, double h, double arcWidth, double arcHeight)
Construct a new instance with the given arguments.
Method Summary
doublegetArcHeight()
doublegetArcWidth()
Rectangle2DgetBounds2D()
doublegetHeight()
doublegetWidth()
doublegetX()
doublegetY()
booleanisEmpty()
voidsetRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)

Field Detail

archeight

public double archeight
The height of the corner arc.

arcwidth

public double arcwidth
The width of the corner arc.

height

public double height
The height of this object.

width

public double width
The width of this object.

x

public double x
The x coordinate of this object.

y

public double y
The y coordinate of this object.

Constructor Detail

Double

public Double()
Construct a new instance, with all parameters set to 0.

Double

public Double(double x, double y, double w, double h, double arcWidth, double arcHeight)
Construct a new instance with the given arguments.

Parameters: x The x coordinate y The y coordinate w The width h The height arcWidth The arc width arcHeight The arc height

Method Detail

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)