Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt.geom

Class RoundRectangle2D.Double

java.lang.Object
|
+--java.awt.geom.RectangularShape
   |
   +--java.awt.geom.RoundRectangle2D
      |
      +--java.awt.geom.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()

java.awt.geom.Rectangle2DgetBounds2D()

doublegetHeight()

doublegetWidth()

doublegetX()

doublegetY()

booleanisEmpty()

voidsetRoundRect(double x, double y, double w, double h, double arcWidth, double arcHeight)

Field Details

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 Details

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:


Method Details

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: