public final class Rectangle extends Shape
Represents rectangle.
Constructor and Description |
---|
Rectangle()
Constructor
|
Rectangle(float left,
float bottom,
float width,
float height)
Initializes a new instance of the
Rectangle class. |
Modifier and Type | Method and Description |
---|---|
double |
getBottom()
Gets float value that indicates the bottom position of the rectangle.
|
double |
getHeight()
Gets float value that indicates the height of the rectangle.
|
double |
getLeft()
Gets float value that indicates the left position of the rectangle.
|
double |
getRoundedCornerRadius()
Gets float value that indicates the radius of rectangle corners.
|
double |
getWidth()
Gets float value that indicates the width of the rectangle.
|
void |
setBottom(double value)
Sets float value that indicates the bottom position of the rectangle.
|
void |
setHeight(double value)
Sets float value that indicates the height of the rectangle.
|
void |
setLeft(double value)
Sets float value that indicates the left position of the rectangle.
|
void |
setRoundedCornerRadius(double value)
Sets float value that indicates the radius of rectangle corners.
|
void |
setWidth(double value)
Sets float value that indicates the width of the rectangle.
|
getGraphInfo, getText, setGraphInfo, setText
public Rectangle()
public Rectangle(float left, float bottom, float width, float height)
Initializes a new instance of the Rectangle
class.
left
- The left position of the rectangle.bottom
- The bottom position of the rectangle.width
- The width of the rectangle.height
- The height of the rectangle.public double getRoundedCornerRadius()
Gets float value that indicates the radius of rectangle corners.
public void setRoundedCornerRadius(double value)
Sets float value that indicates the radius of rectangle corners.
value
- that indicates the radius of rectangle corners.public double getLeft()
Gets float value that indicates the left position of the rectangle.
public void setLeft(double value)
Sets float value that indicates the left position of the rectangle.
value
- float value that indicates the left position of the rectangle.public double getBottom()
Gets float value that indicates the bottom position of the rectangle.
public void setBottom(double value)
Sets float value that indicates the bottom position of the rectangle.
value
- value that indicates the bottom position of the rectangle.public double getWidth()
Gets float value that indicates the width of the rectangle.
public void setWidth(double value)
Sets float value that indicates the width of the rectangle.
value
- that indicates the width of the rectangle.public double getHeight()
Gets float value that indicates the height of the rectangle.
public void setHeight(double value)
Sets float value that indicates the height of the rectangle.
value
- value that indicates the height of the rectangle.