Package guideme.document.block
Class LytNode
java.lang.Object
guideme.document.block.LytNode
- All Implemented Interfaces:
Styleable
- Direct Known Subclasses:
LytBlock,LytDocument,LytTableRow
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract LytRect@Nullable LytDocumentGet the document we're a part of, if any.final @Nullable LytNode@Nullable guideme.libs.mdast.model.MdAstNodegetStyle()@Nullable Styleablefinal StringvoidonMouseEnter(@Nullable LytFlowContent hoveredContent) void@Nullable LytNodepickNode(int x, int y) voidremoveChild(LytNode node) voidsetHoverStyle(TextStyle style) voidsetSourceNode(@Nullable guideme.libs.mdast.model.MdAstNode sourceNode) voidvoidtick()final LytVisitor.Resultvisit(LytVisitor visitor) final LytVisitor.Resultvisit(LytVisitor visitor, boolean includeOutOfTreeContent) protected LytVisitor.ResultvisitChildren(LytVisitor visitor, boolean includeOutOfTreeContent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Field Details
-
parent
-
-
Constructor Details
-
LytNode
public LytNode()
-
-
Method Details
-
removeChild
-
getChildren
-
getDocument
Get the document we're a part of, if any. -
getParent
-
getBounds
-
onMouseEnter
-
onMouseLeave
public void onMouseLeave() -
tick
public void tick() -
pickNode
-
getTextContent
-
visit
-
visit
- Parameters:
includeOutOfTreeContent- If true, the visitor will also be passed content that is not part of the document tree, such as tooltips, popups, etc.
-
visitChildren
-
getStyle
-
setStyle
-
getHoverStyle
- Specified by:
getHoverStylein interfaceStyleable
-
setHoverStyle
- Specified by:
setHoverStylein interfaceStyleable
-
getStylingParent
- Specified by:
getStylingParentin interfaceStyleable
-
getSourceNode
@Nullable public @Nullable guideme.libs.mdast.model.MdAstNode getSourceNode() -
setSourceNode
public void setSourceNode(@Nullable @Nullable guideme.libs.mdast.model.MdAstNode sourceNode)
-