Package space.maxus.flare.ui.space
Class Slot
java.lang.Object
space.maxus.flare.ui.space.Slot
- All Implemented Interfaces:
Comparable<Slot>,ComposableSpace
A single slot inside a frame
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Rectstatic final Rectstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Rectstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Rectstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Rectstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Rectstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Rectstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slotstatic final Slot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanintbooleanintintgetRow()inthashCode()static Slotof(@org.jetbrains.annotations.Range(from=1L, to=6L) int row, @org.jetbrains.annotations.Range(from=1L, to=9L) int column) Constructs a new slot from row and columnstatic SlotofRaw(@org.jetbrains.annotations.Range(from=0L, to=54L) int raw) Constructs a new slot from raw coordinatepoints()Returns the first and last points of this space.intrawSlot()Gets the raw coordinate of this slotslots()Enumerates all slots inside this spacetoString()
-
Field Details
-
ROW_ONE_SLOT_ONE
-
ROW_ONE_SLOT_TWO
-
ROW_ONE_SLOT_THREE
-
ROW_ONE_SLOT_FOUR
-
ROW_ONE_SLOT_FIVE
-
ROW_ONE_SLOT_SIX
-
ROW_ONE_SLOT_SEVEN
-
ROW_ONE_SLOT_EIGHT
-
ROW_ONE_SLOT_NINE
-
ROW_TWO_SLOT_ONE
-
ROW_TWO_SLOT_TWO
-
ROW_TWO_SLOT_THREE
-
ROW_TWO_SLOT_FOUR
-
ROW_TWO_SLOT_FIVE
-
ROW_TWO_SLOT_SIX
-
ROW_TWO_SLOT_SEVEN
-
ROW_TWO_SLOT_EIGHT
-
ROW_TWO_SLOT_NINE
-
ROW_THREE_SLOT_ONE
-
ROW_THREE_SLOT_TWO
-
ROW_THREE_SLOT_THREE
-
ROW_THREE_SLOT_FOUR
-
ROW_THREE_SLOT_FIVE
-
ROW_THREE_SLOT_SIX
-
ROW_THREE_SLOT_SEVEN
-
ROW_THREE_SLOT_EIGHT
-
ROW_THREE_SLOT_NINE
-
ROW_FOUR_SLOT_ONE
-
ROW_FOUR_SLOT_TWO
-
ROW_FOUR_SLOT_THREE
-
ROW_FOUR_SLOT_FOUR
-
ROW_FOUR_SLOT_FIVE
-
ROW_FOUR_SLOT_SIX
-
ROW_FOUR_SLOT_SEVEN
-
ROW_FOUR_SLOT_EIGHT
-
ROW_FOUR_SLOT_NINE
-
ROW_FIVE_SLOT_ONE
-
ROW_FIVE_SLOT_TWO
-
ROW_FIVE_SLOT_THREE
-
ROW_FIVE_SLOT_FOUR
-
ROW_FIVE_SLOT_FIVE
-
ROW_FIVE_SLOT_SIX
-
ROW_FIVE_SLOT_SEVEN
-
ROW_FIVE_SLOT_EIGHT
-
ROW_FIVE_SLOT_NINE
-
ROW_SIX_SLOT_ONE
-
ROW_SIX_SLOT_TWO
-
ROW_SIX_SLOT_THREE
-
ROW_SIX_SLOT_FOUR
-
ROW_SIX_SLOT_FIVE
-
ROW_SIX_SLOT_SIX
-
ROW_SIX_SLOT_SEVEN
-
ROW_SIX_SLOT_EIGHT
-
ROW_SIX_SLOT_NINE
-
ALL
-
ROW_ONE
-
ROW_TWO
-
ROW_THREE
-
ROW_FOUR
-
ROW_FIVE
-
ROW_SIX
-
-
Constructor Details
-
Slot
public Slot(int row, int column)
-
-
Method Details
-
of
public static Slot of(@org.jetbrains.annotations.Range(from=1L, to=6L) int row, @org.jetbrains.annotations.Range(from=1L, to=9L) int column) Constructs a new slot from row and column- Parameters:
row- Row of the slotcolumn- Column of the slot- Returns:
- A new slot with provided row and slot
-
ofRaw
Constructs a new slot from raw coordinate- Parameters:
raw- Raw slot value- Returns:
- A new Slot
-
rawSlot
public int rawSlot()Gets the raw coordinate of this slot- Returns:
- The raw coordinate of this slot
-
compareTo
- Specified by:
compareToin interfaceComparable<Slot>
-
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
-
getRow
public int getRow() -
getColumn
public int getColumn() -
equals
-
canEqual
-
hashCode
public int hashCode()
-