pythagoras.d

## Class RoundRectangle

• ### Field Summary

Fields
Modifier and Type Field and Description
`double` `archeight`
The height of the arc that defines the rounded corners.
`double` `arcwidth`
The width of the arc that defines the rounded corners.
`double` `height`
The height of the framing rectangle.
`double` `width`
The width of the framing rectangle.
`double` `x`
The x-coordinate of the framing rectangle.
`double` `y`
The y-coordinate of the framing rectangle.
• ### Constructor Summary

Constructors
Constructor and Description
`RoundRectangle()`
Creates a rounded rectangle with frame (0x0+0+0) and corners of size (0x0).
```RoundRectangle(double x, double y, double width, double height, double arcwidth, double archeight)```
Creates a rounded rectangle with the specified frame and corner dimensions.
• ### Method Summary

All Methods
Modifier and Type Method and Description
`double` `arcHeight()`
Returns the height of the corner arc.
`double` `arcWidth()`
Returns the width of the corner arc.
`double` `height()`
Returns the height of the framing rectangle.
`void` ```setFrame(double x, double y, double width, double height)```
Sets the location and size of the framing rectangle of this shape to the specified values.
`void` ```setRoundRect(double x, double y, double width, double height, double arcwidth, double archeight)```
Sets the frame and corner dimensions of this rectangle to the specified values.
`void` `setRoundRect(IRoundRectangle rr)`
Sets the frame and corner dimensions of this rectangle to be equal to those of the supplied rectangle.
`double` `width()`
Returns the width of the framing rectangle.
`double` `x()`
Returns the x-coordinate of the upper-left corner of the framing rectangle.
`double` `y()`
Returns the y-coordinate of the upper-left corner of the framing rectangle.
• ### Methods inherited from class pythagoras.d.AbstractRoundRectangle

`clone, contains, contains, intersects, pathIterator`
• ### Methods inherited from class pythagoras.d.RectangularShape

`bounds, bounds, center, centerX, centerY, contains, contains, frame, frame, intersects, isEmpty, max, maxX, maxY, min, minX, minY, pathIterator, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal`
• ### Methods inherited from class java.lang.Object

`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Methods inherited from interface pythagoras.d.IRectangularShape

`center, centerX, centerY, frame, frame, max, maxX, maxY, min, minX, minY`
• ### Methods inherited from interface pythagoras.d.IShape

`bounds, bounds, contains, contains, intersects, isEmpty, pathIterator`
• ### Field Detail

• #### x

`public double x`
The x-coordinate of the framing rectangle.
• #### y

`public double y`
The y-coordinate of the framing rectangle.
• #### width

`public double width`
The width of the framing rectangle.
• #### height

`public double height`
The height of the framing rectangle.
• #### arcwidth

`public double arcwidth`
The width of the arc that defines the rounded corners.
• #### archeight

`public double archeight`
The height of the arc that defines the rounded corners.
• ### Constructor Detail

• #### RoundRectangle

`public RoundRectangle()`
Creates a rounded rectangle with frame (0x0+0+0) and corners of size (0x0).
• #### RoundRectangle

```public RoundRectangle(double x,
double y,
double width,
double height,
double arcwidth,
double archeight)```
Creates a rounded rectangle with the specified frame and corner dimensions.
• ### Method Detail

• #### setRoundRect

```public void setRoundRect(double x,
double y,
double width,
double height,
double arcwidth,
double archeight)```
Sets the frame and corner dimensions of this rectangle to the specified values.
• #### setRoundRect

`public void setRoundRect(IRoundRectangle rr)`
Sets the frame and corner dimensions of this rectangle to be equal to those of the supplied rectangle.
• #### arcWidth

`public double arcWidth()`
Description copied from interface: `IRoundRectangle`
Returns the width of the corner arc.
Specified by:
`arcWidth` in interface `IRoundRectangle`
• #### arcHeight

`public double arcHeight()`
Description copied from interface: `IRoundRectangle`
Returns the height of the corner arc.
Specified by:
`arcHeight` in interface `IRoundRectangle`
• #### x

`public double x()`
Description copied from interface: `IRectangularShape`
Returns the x-coordinate of the upper-left corner of the framing rectangle.
Specified by:
`x` in interface `IRectangularShape`
• #### y

`public double y()`
Description copied from interface: `IRectangularShape`
Returns the y-coordinate of the upper-left corner of the framing rectangle.
Specified by:
`y` in interface `IRectangularShape`
• #### width

`public double width()`
Description copied from interface: `IRectangularShape`
Returns the width of the framing rectangle.
Specified by:
`width` in interface `IRectangularShape`
• #### height

`public double height()`
Description copied from interface: `IRectangularShape`
Returns the height of the framing rectangle.
Specified by:
`height` in interface `IRectangularShape`
• #### setFrame

```public void setFrame(double x,
double y,
double width,
double height)```
Description copied from class: `RectangularShape`
Sets the location and size of the framing rectangle of this shape to the specified values.
Specified by:
`setFrame` in class `RectangularShape`

Copyright © 2017. All rights reserved.