public class RoundRectangle extends AbstractRoundRectangle implements Serializable
| Modifier and Type | Field and Description |
|---|---|
float |
archeight
The height of the arc that defines the rounded corners.
|
float |
arcwidth
The width of the arc that defines the rounded corners.
|
float |
height
The height of the framing rectangle.
|
float |
width
The width of the framing rectangle.
|
float |
x
The x-coordinate of the framing rectangle.
|
float |
y
The y-coordinate of the framing rectangle.
|
| Constructor and Description |
|---|
RoundRectangle()
Creates a rounded rectangle with frame (0x0+0+0) and corners of size (0x0).
|
RoundRectangle(float x,
float y,
float width,
float height,
float arcwidth,
float archeight)
Creates a rounded rectangle with the specified frame and corner dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
float |
arcHeight()
Returns the height of the corner arc.
|
float |
arcWidth()
Returns the width of the corner arc.
|
float |
height()
Returns the height of the framing rectangle.
|
void |
setFrame(float x,
float y,
float width,
float height)
Sets the location and size of the framing rectangle of this shape to the specified values.
|
void |
setRoundRect(float x,
float y,
float width,
float height,
float arcwidth,
float 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.
|
float |
width()
Returns the width of the framing rectangle.
|
float |
x()
Returns the x-coordinate of the upper-left corner of the framing rectangle.
|
float |
y()
Returns the y-coordinate of the upper-left corner of the framing rectangle.
|
clone, contains, contains, intersects, pathIteratorbounds, bounds, center, centerX, centerY, contains, contains, frame, frame, intersects, isEmpty, max, maxX, maxY, min, minX, minY, pathIterator, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcenter, centerX, centerY, frame, frame, max, maxX, maxY, min, minX, minYbounds, bounds, contains, contains, intersects, isEmpty, pathIteratorpublic float x
public float y
public float width
public float height
public float arcwidth
public float archeight
public RoundRectangle()
public RoundRectangle(float x,
float y,
float width,
float height,
float arcwidth,
float archeight)
public void setRoundRect(float x,
float y,
float width,
float height,
float arcwidth,
float archeight)
public void setRoundRect(IRoundRectangle rr)
public float arcWidth()
IRoundRectanglearcWidth in interface IRoundRectanglepublic float arcHeight()
IRoundRectanglearcHeight in interface IRoundRectanglepublic float x()
IRectangularShapex in interface IRectangularShapepublic float y()
IRectangularShapey in interface IRectangularShapepublic float width()
IRectangularShapewidth in interface IRectangularShapepublic float height()
IRectangularShapeheight in interface IRectangularShapepublic void setFrame(float x,
float y,
float width,
float height)
RectangularShapesetFrame in class RectangularShapeCopyright © 2017. All rights reserved.