freemind.modes.filemode
Class FileNodeModel

java.lang.Object
  extended byfreemind.modes.NodeAdapter
      extended byfreemind.modes.filemode.FileNodeModel
All Implemented Interfaces:
MindMapNode, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class FileNodeModel
extends NodeAdapter

This class represents a single Node of a Tree. It contains direct handles to its parent and children and to its view.


Field Summary
 
Fields inherited from class freemind.modes.NodeAdapter
children, folded, font, icons, style, underlined, userObject
 
Fields inherited from interface freemind.modes.MindMapNode
STYLE_BUBBLE, STYLE_FORK
 
Constructor Summary
FileNodeModel(java.io.File file, FreeMindMain frame)
           
 
Method Summary
 java.util.ListIterator childrenFolded()
           
 java.util.ListIterator childrenUnfolded()
           
 java.awt.Color getColor()
          This could be a nice feature.
 java.lang.String getLink()
           
 java.lang.String getStyle()
          A Node-Style like MindMapNode.STYLE_FORK or MindMapNode.STYLE_BUBBLE
 boolean hasChildren()
           
 boolean isLeaf()
           
 java.lang.String toString()
           
 
Methods inherited from class freemind.modes.NodeAdapter
addIcon, basicCopy, children, estabilishOwnFont, getAllowsChildren, getChildAt, getChildCount, getChildPosition, getEdge, getFont, getFontFamilyName, getFontSize, getFrame, getIcons, getIndex, getNodeLevel, getParent, getParentNode, getPath, getPreferredChild, getViewer, hasFoldedStrictDescendant, insert, isBold, isDescendantOf, isFolded, isItalic, isRoot, isUnderlined, remove, remove, removeFromParent, removeLastIcon, setBold, setColor, setEdge, setFolded, setFont, setFontSize, setItalic, setLink, setParent, setParent, setPreferredChild, setStyle, setUnderlined, setUserObject, setViewer, shallowCopy, toggleBold, toggleItalic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileNodeModel

public FileNodeModel(java.io.File file,
                     FreeMindMain frame)
Method Detail

getStyle

public java.lang.String getStyle()
Description copied from class: NodeAdapter
A Node-Style like MindMapNode.STYLE_FORK or MindMapNode.STYLE_BUBBLE

Specified by:
getStyle in interface MindMapNode
Overrides:
getStyle in class NodeAdapter

getColor

public java.awt.Color getColor()
This could be a nice feature. Improve it!

Specified by:
getColor in interface MindMapNode
Overrides:
getColor in class NodeAdapter

toString

public java.lang.String toString()
Specified by:
toString in interface MindMapNode
Overrides:
toString in class NodeAdapter

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in interface MindMapNode
Overrides:
hasChildren in class NodeAdapter

childrenFolded

public java.util.ListIterator childrenFolded()
Specified by:
childrenFolded in interface MindMapNode
Overrides:
childrenFolded in class NodeAdapter

childrenUnfolded

public java.util.ListIterator childrenUnfolded()
Specified by:
childrenUnfolded in interface MindMapNode
Overrides:
childrenUnfolded in class NodeAdapter

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface javax.swing.tree.TreeNode
Overrides:
isLeaf in class NodeAdapter

getLink

public java.lang.String getLink()
Specified by:
getLink in interface MindMapNode
Overrides:
getLink in class NodeAdapter