Package gov.nih.mipav.view
Class RubberbandLivewire.TreeNode
- java.lang.Object
-
- gov.nih.mipav.view.RubberbandLivewire.TreeNode
-
- Enclosing class:
- RubberbandLivewire
public class RubberbandLivewire.TreeNode extends java.lang.ObjectTree node. Contains data (the integer position and float cost) and pointers to the left and right children.
-
-
Field Summary
Fields Modifier and Type Field Description floatcostCost of position.RubberbandLivewire.TreeNodeleftNode to the left in the tree.intpositionPosition in array seededCosts.RubberbandLivewire.TreeNoderightNode to the right in the tree.
-
Constructor Summary
Constructors Constructor Description TreeNode(int position, float cost)Creates a new tree node with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()Returns readable representation of this node.
-
-
-
Field Detail
-
cost
public float cost
Cost of position.
-
left
public RubberbandLivewire.TreeNode left
Node to the left in the tree.
-
position
public int position
Position in array seededCosts.
-
right
public RubberbandLivewire.TreeNode right
Node to the right in the tree.
-
-