Class Pane
java.lang.Object
io.github.somesourcecode.someguiapi.scene.Node
io.github.somesourcecode.someguiapi.scene.Parent
io.github.somesourcecode.someguiapi.scene.layout.Region
io.github.somesourcecode.someguiapi.scene.layout.Pane
Pane does not modify the layout of its children in any way.
However, it is exposing the children list, so child nodes
can be added and removed freely.
Layout panes should extend this class.
For more complex layouts, use different panes, e.g.
VBox,
HBox,
FlowPane, etc.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of children of this parent.Methods inherited from class io.github.somesourcecode.someguiapi.scene.layout.Region
getHeight, getPadding, getWidth, resize, resizeRelocate, setHeight, setPadding, setWidthMethods inherited from class io.github.somesourcecode.someguiapi.scene.Parent
getBackground, isSceneRoot, layout, layoutChildren, lookup, lookupAll, needsLayout, nodeAt, renderPixelAt, requestLayout, setBackgroundMethods inherited from class io.github.somesourcecode.someguiapi.scene.Node
getId, getLayoutX, getLayoutY, getOnClick, getOnHotBarClick, getOnLeftClick, getOnRightClick, getOnShiftClick, getParent, getScene, getTranslateX, getTranslateY, isClipping, isVisible, lookupAll, relocate, requestParentLayout, setClipping, setId, setLayoutX, setLayoutY, setOnClick, setOnHotBarClick, setOnLeftClick, setOnRightClick, setOnShiftClick, setTranslateX, setTranslateY, setVisible
-
Constructor Details
-
Pane
public Pane()Constructs a new pane empty.- Since:
- 1.0.0
-
Pane
Constructs a new pane with the given children.- Parameters:
children- the children of the pane- Since:
- 1.0.0
-
-
Method Details
-
getChildren
Description copied from class:ParentReturns the list of children of this parent.- Overrides:
getChildrenin classParent- Returns:
- the list of children
-