Interface TreeNode

    • Method Detail

      • content

        java.lang.String content()
        Gets the content of this node.
      • children

        java.util.List<TreeNode> children()
        Gets the list of child nodes of this node.
      • originalNode

        default TreeNode originalNode()
        Gets the original node object. By default, returns with this. Decorators should return with the most inner decorated node.
      • insets

        default Insets insets()
        Gets the content insets. Returns with the sizes of the visual decoration around the main content. By default, this is fully zero. Visually extending decorators (border, shadow etc.) should extend the insets with the sizes of the visual extension.
      • isDecorable

        default boolean isDecorable()
        Checks if this node can be decorated. By default, decorators should keep non-decorable nodes untouched.
      • isPlaceholder

        default boolean isPlaceholder()
        Checks if this node is a placeholder. By default, generic TreePrinter implementations hide placeholder nodes. Some types of implementation (e. g. n-ary trees) should take these into account anyway.