Class VisualLexiconNode

  • All Implemented Interfaces:

    public final class VisualLexiconNode
    extends Object
    implements Comparable<VisualLexiconNode>
    A node in the visual property tree (lexicon).

    Wrapping a VisualProperty and holding parent-child relationships.

    All data fields are immutable.

    Module: viewmodel-api

    To use this in your app, include the following dependency in your POM:


    Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
    • Constructor Detail

      • VisualLexiconNode

        public VisualLexiconNode​(VisualProperty<?> vp,
                                 VisualLexiconNode parent)
        Constructs this VisualLexiconNode.
        vp - the VisualProperty to wrap.
        parent - this VisualLexiconNodes parent VisualLexiconNode.
    • Method Detail

      • getVisualProperty

        public VisualProperty<?> getVisualProperty()
        Returns wrapped VisualProperty object. Since VisualProperty itself does not have any hierarchical structure, such relationship is implemented by this wrapper.
        wrapped VisualProperty object.
      • getParent

        public VisualLexiconNode getParent()
        Get the parent of this VP node. The relationship is immutable, i.e., cannot change parent/child relationship.
        parent VisualProperty object.
      • getChildren

        public Collection<VisualLexiconNode> getChildren()
        Returns collection of all children of this node.
        collection of all children of this node.
      • visitDescendants

        public void visitDescendants​(Consumer<VisualLexiconNode> visitor)
        The given visitor function will be applied to this node and all its children recursively.