Package space.maxus.flare.ui.space
Class Rect
java.lang.Object
space.maxus.flare.ui.space.Rect
- All Implemented Interfaces:
ComposableSpace
A Rect is a ComposableSpace inside a Rectangle defined by first and last points.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Rect
Constructs a new rect with starting and ending slot- Parameters:
from- Strictly smallest first slotto- Strictly biggest last slot
-
-
Method Details
-
of
Constructs a new Rect from starting and ending slots. Slots are ordered usingMinMaxPairand can be passed in any order.- Parameters:
from- First slotto- Second slot- Returns:
- Constructed Rect
-
slots
Description copied from interface:ComposableSpaceEnumerates all slots inside this space- Specified by:
slotsin interfaceComposableSpace- Returns:
- All slots inside this composable space
-
points
Description copied from interface:ComposableSpaceReturns the first and last points of this space. Used mostly withinRect- Specified by:
pointsin interfaceComposableSpace- Returns:
- Pair of first and last points of this space
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-