Documentation of 'org.jgap.gp.impl.JGAPTreeNode' Java class
JGAPTreeNode
org.jgap.gp.impl

Class JGAPTreeNode

  • All Implemented Interfaces:
    javax.swing.tree.TreeNode


    public class JGAPTreeNode
    extends java.lang.Object
    implements javax.swing.tree.TreeNode
    A CommandGene represented as a tree node.
    Since:
    3.0
    • Constructor Detail

    • Method Detail

      • getName

        public java.lang.String getName()
      • getChildAt

        public javax.swing.tree.TreeNode getChildAt(int a_childIndex)
        Specified by:
        getChildAt in interface javax.swing.tree.TreeNode
        Parameters:
        a_childIndex - index of the child to get
        Returns:
        the child TreeNode at index a_childIndex
      • getChildCount

        public int getChildCount()
        Specified by:
        getChildCount in interface javax.swing.tree.TreeNode
        Returns:
        the number of children TreeNodes the receiver contains
      • getParent

        public javax.swing.tree.TreeNode getParent()
        Specified by:
        getParent in interface javax.swing.tree.TreeNode
        Returns:
        the parent TreeNode of the receiver
      • getIndex

        public int getIndex(javax.swing.tree.TreeNode a_node)
        Specified by:
        getIndex in interface javax.swing.tree.TreeNode
        Parameters:
        a_node - the node to retrieve the index for
        Returns:
        the index of node in the receivers children. If the receiver does not contain node, -1 will be returned
      • getAllowsChildren

        public boolean getAllowsChildren()
        Specified by:
        getAllowsChildren in interface javax.swing.tree.TreeNode
        Returns:
        true if the receiver allows children
      • isLeaf

        public boolean isLeaf()
        Specified by:
        isLeaf in interface javax.swing.tree.TreeNode
        Returns:
        true if the receiver is a leaf
      • children

        public java.util.Enumeration children()
        Specified by:
        children in interface javax.swing.tree.TreeNode
        Returns:
        the children of the receiver as an Enumeration

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.