Class VOIOrientationNode

java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
gov.nih.mipav.view.VOIOrientationNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class VOIOrientationNode extends DefaultMutableTreeNode
This class is used to represent the orientation of a set of VOI curves. This is a node of the overall VOI. It has a gov.nih.mipav.structure.VOIBase set as its object.

Nodes in the tree are expanded by calling this class's explore method.

Author:
Justin Senseney
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • orientation

      private String orientation
    • voiName

      private String voiName
      Name of parent voi
  • Constructor Details

    • VOIOrientationNode

      public VOIOrientationNode(String voiName, String orientation, Vector<VOIBase>[] sortedCurves)
      Creates a new VOIFrameNode object.
      Parameters:
      node - File for tree leaf.
      fNumber - The slice number of this VOI component
  • Method Details

    • explore

      public void explore()
      Adds the children of this file to the this FileNode for display in a JTree. adjusts the explored variable. Does nothing if the FileNode is not a directory or if the node has already been explored. If directories only are to be explored, then the only children to be added will be directories. Otherwise, if the file filter is not null, only the files that satisfy the filter will be added. If the filter is null, all files will be added.

      Implementation of this is different from the Sun Books' code.

    • getVOI

      public Vector<VOIBase>[] getVOI()
      Returns this node's user object.

      Overrides:
      getUserObject in javax.swing.tree.DefaultMutableTree#getUserObject()

      See Also:
      • invalid reference
        gov.nih.mipav.structures.VOI
    • getVOIname

      public String getVOIname()
      Returns the name of the parent voi
      Returns:
    • getName

      public String getName()
      the string returned is the name of the VOI returns the name of the VOI if the VOI exists, or null if it doesn't.

      Explicitly calls DefaultMutableTreeNode.toString()

      Returns:
      Name of the file.
      See Also:
    • toString

      public String toString()
      the string returned is the name of the VOI returns the name of the VOI if it exists, or null if it doesn't.
      Overrides:
      toString in class DefaultMutableTreeNode
      Returns:
      Name of the file.
      See Also: