Package guideme.document.block
Class LytDocument
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytDocument
- All Implemented Interfaces:
LytBlockContainer,LytErrorSink,Styleable
Layout document. Has a viewport and an overall size which may exceed the document size vertically, but not
horizontally.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintintbooleanvoidvoidonMouseEnter(@Nullable LytFlowContent hoveredContent) pick(int x, int y) voidremoveChild(LytNode node) voidrender(RenderContext context) voidrender(SimpleRenderContext context) Deprecated, for removal: This API element is subject to removal in a future version.voidsetHoveredElement(LytDocument.HitTestResult hoveredElement) voidupdateLayout(LayoutContext context, int availableWidth) Methods inherited from class guideme.document.block.LytNode
getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, 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
-
Constructor Details
-
LytDocument
public LytDocument()
-
-
Method Details
-
getAvailableWidth
public int getAvailableWidth() -
getContentHeight
public int getContentHeight() -
getBlocks
-
getChildren
- Overrides:
getChildrenin classLytNode
-
getBounds
-
removeChild
- Overrides:
removeChildin classLytNode
-
append
- Specified by:
appendin interfaceLytBlockContainer
-
clearContent
public void clearContent() -
hasLayout
public boolean hasLayout() -
invalidateLayout
public void invalidateLayout() -
updateLayout
-
render
Deprecated, for removal: This API element is subject to removal in a future version. -
render
-
getHoveredElement
-
setHoveredElement
-
pick
-
onMouseEnter
- Overrides:
onMouseEnterin classLytNode
-