public class RoundRectangle extends AbstractRoundRectangle implements Serializable
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 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.
|
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.
|
clone, contains, contains, intersects, pathIterator
bounds, bounds, center, centerX, centerY, contains, contains, frame, frame, intersects, isEmpty, max, maxX, maxY, min, minX, minY, pathIterator, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
center, centerX, centerY, frame, frame, max, maxX, maxY, min, minX, minY
bounds, bounds, contains, contains, intersects, isEmpty, pathIterator
public double x
public double y
public double width
public double height
public double arcwidth
public double archeight
public RoundRectangle()
public RoundRectangle(double x, double y, double width, double height, double arcwidth, double archeight)
public void setRoundRect(double x, double y, double width, double height, double arcwidth, double archeight)
public void setRoundRect(IRoundRectangle rr)
public double arcWidth()
IRoundRectangle
arcWidth
in interface IRoundRectangle
public double arcHeight()
IRoundRectangle
arcHeight
in interface IRoundRectangle
public double x()
IRectangularShape
x
in interface IRectangularShape
public double y()
IRectangularShape
y
in interface IRectangularShape
public double width()
IRectangularShape
width
in interface IRectangularShape
public double height()
IRectangularShape
height
in interface IRectangularShape
public void setFrame(double x, double y, double width, double height)
RectangularShape
setFrame
in class RectangularShape
Copyright © 2017. All rights reserved.