Class LytNode

java.lang.Object
guideme.document.block.LytNode
All Implemented Interfaces:
Styleable
Direct Known Subclasses:
LytBlock, LytDocument, LytTableRow

public abstract class LytNode extends Object implements Styleable
  • Field Details

    • parent

      @Nullable protected @Nullable LytNode parent
  • Constructor Details

    • LytNode

      public LytNode()
  • Method Details

    • removeChild

      public void removeChild(LytNode node)
    • getChildren

      public List<? extends LytNode> getChildren()
    • getDocument

      @Nullable public @Nullable LytDocument getDocument()
      Get the document we're a part of, if any.
    • getParent

      @Nullable public final @Nullable LytNode getParent()
    • getBounds

      public abstract LytRect getBounds()
    • onMouseEnter

      public void onMouseEnter(@Nullable @Nullable LytFlowContent hoveredContent)
    • onMouseLeave

      public void onMouseLeave()
    • tick

      public void tick()
    • pickNode

      @Nullable public @Nullable LytNode pickNode(int x, int y)
    • getTextContent

      public final String getTextContent()
    • visit

      public final LytVisitor.Result visit(LytVisitor visitor)
    • visit

      public final LytVisitor.Result visit(LytVisitor visitor, boolean includeOutOfTreeContent)
      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

      protected LytVisitor.Result visitChildren(LytVisitor visitor, boolean includeOutOfTreeContent)
    • getStyle

      public TextStyle getStyle()
      Specified by:
      getStyle in interface Styleable
    • setStyle

      public void setStyle(TextStyle style)
      Specified by:
      setStyle in interface Styleable
    • getHoverStyle

      public TextStyle getHoverStyle()
      Specified by:
      getHoverStyle in interface Styleable
    • setHoverStyle

      public void setHoverStyle(TextStyle style)
      Specified by:
      setHoverStyle in interface Styleable
    • getStylingParent

      @Nullable public @Nullable Styleable getStylingParent()
      Specified by:
      getStylingParent in interface Styleable
    • getSourceNode

      @Nullable public @Nullable guideme.libs.mdast.model.MdAstNode getSourceNode()
    • setSourceNode

      public void setSourceNode(@Nullable @Nullable guideme.libs.mdast.model.MdAstNode sourceNode)