public interface PlaneArea extends Copiable, java.awt.Shape
Modifier and Type | Method and Description |
---|---|
PlanePoint[] |
getPoints()
Returns an array of
PlanePoint contained in the PlaneArea. |
boolean |
onBoundaries(double x,
double y)
Controls if a specified point is on the boundary of the PlaneArea.
|
void |
scale(double factor)
Resets the bounding
Rectangle of the planeArea according
to the specified scaling factor. |
void |
setBounds(int x,
int y,
int width,
int height)
Sets the bounding
Rectangle of the planeArea to the
specified x, y, width, and height. |
void setBounds(int x, int y, int width, int height)
Rectangle
of the planeArea to the
specified x, y, width, and height.x
- The x-coordinate of the top-left corner.y
- The y-coordinate of the top-left corner.width
- The width of the area.height
- The height of the area.void scale(double factor)
Rectangle
of the planeArea according
to the specified scaling factor.factor
- The scaling factor.PlanePoint[] getPoints()
PlanePoint
contained in the PlaneArea.boolean onBoundaries(double x, double y)
x
- The x-coordinate of the point.y
- The y-coordinate of the point.true
if the point is on the boundary,
false
otherwise.