public class Panel<T extends Component> extends Component<T>
Constructor and Description |
---|
Panel()
Default constructor.
|
Panel(float x,
float y,
float width,
float height)
Constructor with position and size parameters.
|
Panel(org.joml.Vector2f position,
org.joml.Vector2f size)
Constructor with position and size parameters.
|
add, addAll, clearChilds, containerIterator, contains, containsAll, count, equals, forEach, getAbsolutePosition, getBackgroundColor, getBorder, getChilds, getCornerRadius, getFocusedStrokeColor, getIntersector, getListenerMap, getMetadata, getParent, getPosition, getSize, getTooltip, hashCode, intersects, isEmpty, isEnabled, isFocused, isHovered, isPressed, isVisible, parallelStream, remove, removeAll, removeIf, setBackgroundColor, setBackgroundColor, setBorder, setCornerRadius, setEnabled, setFocused, setFocusedStrokeColor, setFocusedStrokeColor, setHovered, setIntersector, setListenerMap, setParent, setPosition, setPosition, setPressed, setSize, setSize, setTooltip, setVisible, stream, toString
public Panel()
Also if you want to make it easy to use with Json marshaller/unmarshaller component should contain empty constructor.
public Panel(float x, float y, float width, float height)
x
- x position position in parent component.y
- y position position in parent component.width
- width of component.height
- height of component.public Panel(org.joml.Vector2f position, org.joml.Vector2f size)
position
- position position in parent component.size
- size of component.