Package com.spinyowl.legui.component
Class Panel
java.lang.Object
com.spinyowl.legui.component.Component
com.spinyowl.legui.component.Panel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExampleGui,ScrollablePanel.ScrollablePanelContainer,ScrollablePanel.ScrollablePanelViewport,SplitPanel,TextArea.TextAreaViewport
Default Container implementation. Used to hold components.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
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, setSize, setSize, setStyle, setTabFocusable, setTabIndex, setTooltip, stream, toString
-
Constructor Details
-
Panel
public Panel()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.
-
Panel
public Panel(float x, float y, float width, float height) Constructor with position and size parameters.- Parameters:
x- x position position in parent component.y- y position position in parent component.width- width of component.height- height of component.
-
Panel
public Panel(org.joml.Vector2f position, org.joml.Vector2f size) Constructor with position and size parameters.- Parameters:
position- position position in parent component.size- size of component.
-