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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract LytRect
@Nullable LytDocument
Get the document we're a part of, if any.final @Nullable LytNode
@Nullable guideme.libs.mdast.model.MdAstNode
getStyle()
@Nullable Styleable
final String
void
onMouseEnter
(@Nullable LytFlowContent hoveredContent) void
@Nullable LytNode
pickNode
(int x, int y) void
removeChild
(LytNode node) void
setHoverStyle
(TextStyle style) void
setSourceNode
(@Nullable guideme.libs.mdast.model.MdAstNode sourceNode) void
void
tick()
final LytVisitor.Result
visit
(LytVisitor visitor) final LytVisitor.Result
visit
(LytVisitor visitor, boolean includeOutOfTreeContent) protected LytVisitor.Result
visitChildren
(LytVisitor visitor, boolean includeOutOfTreeContent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getHoverStyle
in interfaceStyleable
-
setHoverStyle
- Specified by:
setHoverStyle
in interfaceStyleable
-
getStylingParent
- Specified by:
getStylingParent
in interfaceStyleable
-
getSourceNode
@Nullable public @Nullable guideme.libs.mdast.model.MdAstNode getSourceNode() -
setSourceNode
public void setSourceNode(@Nullable @Nullable guideme.libs.mdast.model.MdAstNode sourceNode)
-