Package gov.nih.mipav.view
Class VOIOrientationNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- gov.nih.mipav.view.VOIOrientationNode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,javax.swing.tree.MutableTreeNode
,javax.swing.tree.TreeNode
public class VOIOrientationNode extends javax.swing.tree.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
orientation
private static long
serialVersionUID
Use serialVersionUID for interoperability.private java.lang.String
voiName
Name of parent voi
-
Constructor Summary
Constructors Constructor Description VOIOrientationNode(java.lang.String voiName, java.lang.String orientation, java.util.Vector<VOIBase>[] sortedCurves)
Creates a new VOIFrameNode object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
explore()
Adds the children of this file to the this FileNode for display in a JTree. adjusts theexplored
variable.java.lang.String
getName()
the string returned is the name of the VOI returns the name of the VOI if the VOI exists, ornull
if it doesn't.java.util.Vector<VOIBase>[]
getVOI()
Returns this node's user object.java.lang.String
getVOIname()
Returns the name of the parent voijava.lang.String
toString()
the string returned is the name of the VOI returns the name of the VOI if it exists, ornull
if it doesn't.-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
orientation
private java.lang.String orientation
-
voiName
private java.lang.String voiName
Name of parent voi
-
-
Constructor Detail
-
VOIOrientationNode
public VOIOrientationNode(java.lang.String voiName, java.lang.String orientation, java.util.Vector<VOIBase>[] sortedCurves)
Creates a new VOIFrameNode object.- Parameters:
node
- File for tree leaf.fNumber
- The slice number of this VOI component
-
-
Method Detail
-
explore
public void explore()
Adds the children of this file to the this FileNode for display in a JTree. adjusts theexplored
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 java.util.Vector<VOIBase>[] getVOI()
Returns this node's user object.Overrides:
getUserObject
in javax.swing.tree.DefaultMutableTree#getUserObject()- See Also:
gov.nih.mipav.structures.VOI
-
getVOIname
public java.lang.String getVOIname()
Returns the name of the parent voi- Returns:
-
getName
public java.lang.String getName()
the string returned is the name of the VOI returns the name of the VOI if the VOI exists, ornull
if it doesn't.Explicitly calls DefaultMutableTreeNode.toString()
- Returns:
- Name of the file.
- See Also:
DefaultMutableTreeNode.toString()
-
toString
public java.lang.String toString()
the string returned is the name of the VOI returns the name of the VOI if it exists, ornull
if it doesn't.- Overrides:
toString
in classjavax.swing.tree.DefaultMutableTreeNode
- Returns:
- Name of the file.
- See Also:
DefaultMutableTreeNode.toString()
-
-