public interface Rectangular
Modifier and Type | Method and Description |
---|---|
default double[] |
getCoordinates()
Gets the coordinates of the rectangular shape.
|
double |
getHeight()
Returns the height of the rectangular shape.
|
double |
getWidth()
Returns the width of the rectangular shape.
|
double |
getX()
Returns the x-coordinate of the rectangular shape.
|
double |
getY()
Returns the y coordinate of the rectangular shape.
|
default void |
setCoordinates(double[] coordinates)
Sets the coordinates of the rectangular shape.
|
default void |
setCoordinates(double x,
double y,
double width,
double height)
Sets the coordinates of the rectangular shape.
|
void |
setHeight(double height)
Sets the height of the rectangular shape.
|
void |
setWidth(double width)
Sets width of the rectangular shape.
|
void |
setX(double x)
Sets the x-coordinate of the rectangular shape.
|
void |
setY(double y)
Sets the y-coordinate of the rectangular shape.
|
double getX()
void setX(double x)
x
- See above.double getY()
void setY(double y)
y
- See above.double getWidth()
void setWidth(double width)
width
- See above.double getHeight()
void setHeight(double height)
height
- See above.default void setCoordinates(double x, double y, double width, double height)
x
- The x-coordinate of the top-left corner.y
- The y-coordinate of the top-left corner.width
- The width of the rectangular shape.height
- The height of the rectangular shape.default double[] getCoordinates()
default void setCoordinates(double[] coordinates)
coordinates
- Array of coordinates containing {X,Y,Width,Height}.Copyright © 2020–2023 GReD. All rights reserved.