Package com.spinyowl.legui.component
Class SplitPanel
java.lang.Object
com.spinyowl.legui.component.Component
com.spinyowl.legui.component.Panel
com.spinyowl.legui.component.SplitPanel
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetRatio()floatvoidvoidsetBottomRight(Component bottomRight) voidsetOrientation(Orientation orientation) voidsetRatio(float ratio) voidsetSeparatorThickness(float separatorThickness) voidsetSize(float width, float height) Used to set size vector.voidsetSize(org.joml.Vector2f size) Used to set size vector.voidsetTopLeft(Component topLeft) Methods inherited from class com.spinyowl.legui.component.Component
add, add, addAll, clearChildComponents, containerIterator, contains, containsAll, count, equals, forEach, getAbsolutePosition, getChildComponents, getFocusedStyle, getFrame, getHoveredStyle, getIntersector, getLayer, getListenerMap, getMetadata, getParent, getPosition, getPressedStyle, getSize, getStyle, getTabIndex, getTooltip, hashCode, indexOfChild, intersects, isEmpty, isEnabled, isFocusable, isFocused, isHovered, isPressed, isTabFocusable, isVisible, keepRendering, keepRendering, parallelStream, remove, remove, removeAll, removeIf, setEnabled, setFocusable, setFocused, setHovered, setIntersector, setListenerMap, setParent, setPosition, setPosition, setPressed, setStyle, setTabFocusable, setTabIndex, setTooltip, stream, toString
-
Constructor Details
-
SplitPanel
Default constructor. Used to create component instance without any parameters.Also if you want to make it easy to use with Json marshaller/unmarshaller component should contain empty constructor.
- Parameters:
orientation- used to specify orientation of split panel. If orientation is VERTICAL then two components will be located vertically.
-
-
Method Details
-
setSize
public void setSize(org.joml.Vector2f size) Description copied from class:ComponentUsed to set size vector. -
setSize
public void setSize(float width, float height) Description copied from class:ComponentUsed to set size vector. -
resetStyle
public void resetStyle() -
getSeparatorThickness
public float getSeparatorThickness() -
setSeparatorThickness
public void setSeparatorThickness(float separatorThickness) -
getTopLeft
-
setTopLeft
-
getBottomRight
-
setBottomRight
-
getRatio
public float getRatio() -
setRatio
public void setRatio(float ratio) -
getSeparator
-
getOrientation
-
setOrientation
-