Class RubberbandLivewire.TreeNode

java.lang.Object
gov.nih.mipav.view.RubberbandLivewire.TreeNode
Enclosing class:
RubberbandLivewire

public class RubberbandLivewire.TreeNode extends Object
Tree node. Contains data (the integer position and float cost) and pointers to the left and right children.
  • Field Details

  • Constructor Details

    • TreeNode

      public TreeNode(int position, float cost)
      Creates a new tree node with the given data.
      Parameters:
      position - Position in array seededCosts.
      cost - Cost of node.
  • Method Details

    • toString

      public String toString()
      Returns readable representation of this node.
      Overrides:
      toString in class Object
      Returns:
      Readable representation of node.