IBoundsCheckableItem
public interface IBoundsCheckableItem
Methods
| Method | Description |
|---|---|
| checkBounds | Checks if the item fits within the given container dimensions (inclusive). |
checkBounds
boolean checkBounds(double containerWidth, double containerHeight)
Checks if the item fits within the given container dimensions (inclusive).
Parameters:
| Parameter | Type | Description |
|---|---|---|
| containerWidth | Width of the container. | |
| containerHeight | Height of the container. |
Returns: True if fits; otherwise, false.