Package guideme.document.block
Class LytBox
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.block.LytBox
- All Implemented Interfaces:
LytBlockContainer,LytErrorSink,Styleable
- Direct Known Subclasses:
LytAxisBox,LytGuidebookScene,LytItemGrid,LytSlotGrid
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected abstract LytRectcomputeBoxLayout(LayoutContext context, int x, int y, int availableWidth) protected final LytRectcomputeLayout(LayoutContext context, int x, int y, int availableWidth) @Nullable SymbolicColorprotected voidonLayoutMoved(int deltaX, int deltaY) Implement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)being moved.voidremoveChild(LytNode node) voidrender(RenderContext context) voidsetBackgroundColor(@Nullable SymbolicColor backgroundColor) final voidsetPadding(int padding) voidsetPaddingBottom(int paddingBottom) voidsetPaddingLeft(int paddingLeft) voidsetPaddingRight(int paddingRight) voidsetPaddingTop(int paddingTop) Methods inherited from class guideme.document.block.LytBlock
getBorderBottom, getBorderLeft, getBorderRight, getBorderTop, getBounds, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, isCulled, isFullWidth, layout, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setFullWidth, setLayoutPos, setMarginBottom, setMarginLeft, setMarginRight, setMarginTopMethods inherited from class guideme.document.block.LytNode
getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, onMouseEnter, onMouseLeave, pickNode, setHoverStyle, setSourceNode, setStyle, tick, visit, visit, visitChildrenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface guideme.document.block.LytBlockContainer
appendErrorMethods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Field Details
-
children
-
paddingLeft
protected int paddingLeft -
paddingTop
protected int paddingTop -
paddingRight
protected int paddingRight -
paddingBottom
protected int paddingBottom
-
-
Constructor Details
-
LytBox
public LytBox()
-
-
Method Details
-
removeChild
- Overrides:
removeChildin classLytNode
-
append
- Specified by:
appendin interfaceLytBlockContainer
-
clearContent
public void clearContent() -
computeBoxLayout
protected abstract LytRect computeBoxLayout(LayoutContext context, int x, int y, int availableWidth) -
computeLayout
- Specified by:
computeLayoutin classLytBlock
-
onLayoutMoved
protected void onLayoutMoved(int deltaX, int deltaY) Description copied from class:LytBlockImplement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)being moved.- Specified by:
onLayoutMovedin classLytBlock
-
setPadding
public final void setPadding(int padding) -
setPaddingLeft
public void setPaddingLeft(int paddingLeft) -
setPaddingTop
public void setPaddingTop(int paddingTop) -
setPaddingRight
public void setPaddingRight(int paddingRight) -
setPaddingBottom
public void setPaddingBottom(int paddingBottom) -
getBackgroundColor
-
setBackgroundColor
-
getChildren
- Overrides:
getChildrenin classLytNode
-
render
-