jfig.utils
Class FileTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byjfig.utils.FileTreeNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class FileTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
static boolean debug
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
FileTreeNode(java.io.File file)
           
 
Method Summary
 void addSORTED(FileTreeNode node)
          add a new child to this node.
 java.lang.String getFilePath()
           
 java.lang.String getName()
           
static boolean isFigFile(java.io.File file)
           
static void main(java.lang.String[] argv)
           
 java.lang.String toString()
           
static boolean traverseFileSystem(FileTreeNode root)
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

public static boolean debug
Constructor Detail

FileTreeNode

public FileTreeNode(java.io.File file)
Method Detail

toString

public java.lang.String toString()

getName

public java.lang.String getName()

getFilePath

public java.lang.String getFilePath()

addSORTED

public void addSORTED(FileTreeNode node)
add a new child to this node. Unlike DefaultMutableTreeNode, we try to add the child at the position given by an alphabetial ordering of the userObjects.


traverseFileSystem

public static boolean traverseFileSystem(FileTreeNode root)

isFigFile

public static boolean isFigFile(java.io.File file)

main

public static void main(java.lang.String[] argv)