IBoundsCheckableItem

public interface IBoundsCheckableItem

Methods

MethodDescription
checkBoundsChecks 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:

ParameterTypeDescription
containerWidthWidth of the container.
containerHeightHeight of the container.

Returns: True if fits; otherwise, false.