Class HorizontalSplitGUIPane
java.lang.Object
de.placeblock.betterinventories.content.GUISection
de.placeblock.betterinventories.content.pane.GUIPane
de.placeblock.betterinventories.content.pane.impl.HorizontalSplitGUIPane
- All Implemented Interfaces:
Sizeable
- Direct Known Subclasses:
PaginatorGUIPane
A
Builder:
GUIPane with an upper and lower pane.
Renders the lower pane always below the upper pane.
Builder:
HorizontalSplitGUIPaneBuilder-
Field Summary
Fields inherited from class de.placeblock.betterinventories.content.GUISection
maxSize, minSize -
Constructor Summary
ConstructorsConstructorDescriptionHorizontalSplitGUIPane(GUI gui, Vector2d minSize, Vector2d maxSize) Creates a new HorizontalSplitGUIPane -
Method Summary
Modifier and TypeMethodDescriptionImplemented by GUIPanes Should return all children sectionsgetSectionAt(Vector2d position) Returns the GUISection at a specific position.List<org.bukkit.inventory.ItemStack>render()Renders the Pane on a listvoidupdateSize(Sizeable parent) Updates the size of the Pane based on the height of upper and lower Pane.voidupdateSizeRecursive(Sizeable parent) Is called to recursively update the size of allGUIPanesMethods inherited from class de.placeblock.betterinventories.content.pane.GUIPane
onSizeChange, renderOnList, setHeight, setSize, setWidth, updateChildrenRecursiveMethods inherited from class de.placeblock.betterinventories.content.GUISection
getEmptyContentList, getHeight, getSectionAt, getSlots, getWidth, slotToVector, vectorToSlotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.placeblock.betterinventories.Sizeable
clampSize, getMaxSize, getMinSize, getSize
-
Constructor Details
-
HorizontalSplitGUIPane
Creates a new HorizontalSplitGUIPane- Parameters:
gui- The GUIminSize- The minimum size of the PanemaxSize- The maximum size of the Pane
-
-
Method Details
-
updateSizeRecursive
Is called to recursively update the size of allGUIPanes- Specified by:
updateSizeRecursivein classGUIPane- Parameters:
parent- The parent Pane or GUI (Sizeable)
-
updateSize
Updates the size of the Pane based on the height of upper and lower Pane.- Specified by:
updateSizein classGUIPane- Parameters:
parent- The parent Pane or GUI (Sizeable)
-
getChildren
Description copied from class:GUIPaneImplemented by GUIPanes Should return all children sections- Specified by:
getChildrenin classGUIPane- Returns:
- All children (upper and lower Pane)
-
render
Renders the Pane on a list- Specified by:
renderin classGUISection- Returns:
- The List
-
getLowerPanePos
- Returns:
- The position of the lower Pane taking the height of the upper Pane into account
-
getSectionAt
Returns the GUISection at a specific position.- Specified by:
getSectionAtin classGUISection- Parameters:
position- The position- Returns:
- The GUISection
-