Package com.avrix.ui.widgets
Class VerticalBoxWidget
java.lang.Object
com.avrix.ui.widgets.Widget
com.avrix.ui.widgets.BoxLayoutWidget
com.avrix.ui.widgets.VerticalBoxWidget
A
Widget
that arranges its children vertically with a specified margin between them.
It can also resize itself to fit its children if the autoresize option is enabled.-
Field Summary
-
Constructor Summary
ConstructorDescriptionVerticalBoxWidget
(int x, int y, int width, int height, boolean autoresize) Constructs aVerticalBoxWidget
with the specified position, size, and autoresize option. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Updates the layout of theWidget
, positioning its children vertically with the specified margin between them.Methods inherited from class com.avrix.ui.widgets.BoxLayoutWidget
addChild, getMargin, isAutoresize, isUpdatingLayout, removeChild, render, setAutoresize, setMargin, setUpdatingLayout
Methods inherited from class com.avrix.ui.widgets.Widget
addToScreen, bringToTop, drawArc, drawArc, drawCircle, drawEllipse, drawImage, drawLine, drawRect, drawRectOutline, drawRoundedRect, drawRoundedRectOutline, drawText, getAbsoluteParent, getChildren, getHeight, getMaxScrollX, getMaxScrollY, getParent, getScrollSpeed, getScrollX, getScrollY, getWidth, getX, getXA, getY, getYA, intersectScissor, isAlwaysOnTop, isHovered, isPointOver, isScrollable, isScrollLock, isVisible, isVisibleWithinParent, isVisibleWithinWindow, onInitialize, onKeyPress, onKeyRelease, onKeyRepeat, onLeftMouseDown, onLeftMouseDownOutside, onLeftMouseUp, onLeftMouseUpOutside, onMouseEnter, onMouseExit, onMouseMove, onMouseMoveOutside, onMouseWheel, onRightMouseDown, onRightMouseDownOutside, onRightMouseUp, onRightMouseUpOutside, postRender, preRender, removeFromScreen, renderChildren, setAlwaysOnTop, setHeight, setMaxScrollX, setMaxScrollY, setScrollable, setScrollLock, setScrollSpeed, setScrollX, setScrollY, setVisible, setWidth, setX, setXA, setY, setYA, update
-
Constructor Details
-
VerticalBoxWidget
public VerticalBoxWidget(int x, int y, int width, int height, boolean autoresize) Constructs aVerticalBoxWidget
with the specified position, size, and autoresize option.
-
-
Method Details
-
updateLayout
public void updateLayout()Updates the layout of theWidget
, positioning its children vertically with the specified margin between them. Adjusts the size of the widget if autoresize is enabled.- Overrides:
updateLayout
in classBoxLayoutWidget
-