freemind.modes.mindmapmode
Class MindMapNodeModel

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

public class MindMapNodeModel
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, color, folded, font, icons, style, underlined, userObject
 
Fields inherited from interface freemind.modes.MindMapNode
STYLE_BUBBLE, STYLE_FORK
 
Constructor Summary
MindMapNodeModel(FreeMindMain frame)
           
MindMapNodeModel(java.lang.Object userObject, FreeMindMain frame)
           
 
Method Summary
protected  MindMapNode basicCopy()
           
 void collectColors(java.util.HashSet colors)
           
 java.lang.String getStyle()
          A Node-Style like MindMapNode.STYLE_FORK or MindMapNode.STYLE_BUBBLE
 void save(java.io.Writer writer)
           
 java.lang.String saveHTML_escapeUnicodeAndSpecialCharacters(java.lang.String text)
           
 int saveHTML(java.io.Writer fileout, java.lang.String parentID, int lastChildNumber, boolean isRoot, boolean treatAsParagraph, int depth)
           
 void saveRTF(java.io.Writer fileout, int depth, java.util.HashMap colorTable)
           
 void saveTXT(java.io.Writer fileout, int depth)
           
 
Methods inherited from class freemind.modes.NodeAdapter
addIcon, children, childrenFolded, childrenUnfolded, estabilishOwnFont, getAllowsChildren, getChildAt, getChildCount, getChildPosition, getColor, getEdge, getFont, getFontFamilyName, getFontSize, getFrame, getIcons, getIndex, getLink, getNodeLevel, getParent, getParentNode, getPath, getPreferredChild, getViewer, hasChildren, hasFoldedStrictDescendant, insert, isBold, isDescendantOf, isFolded, isItalic, isLeaf, isRoot, isUnderlined, remove, remove, removeFromParent, removeLastIcon, setBold, setColor, setEdge, setFolded, setFont, setFontSize, setItalic, setLink, setParent, setParent, setPreferredChild, setStyle, setUnderlined, setUserObject, setViewer, shallowCopy, toggleBold, toggleItalic, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MindMapNodeModel

public MindMapNodeModel(FreeMindMain frame)

MindMapNodeModel

public MindMapNodeModel(java.lang.Object userObject,
                        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

basicCopy

protected MindMapNode basicCopy()
Overrides:
basicCopy in class NodeAdapter

saveHTML_escapeUnicodeAndSpecialCharacters

public java.lang.String saveHTML_escapeUnicodeAndSpecialCharacters(java.lang.String text)

saveHTML

public int saveHTML(java.io.Writer fileout,
                    java.lang.String parentID,
                    int lastChildNumber,
                    boolean isRoot,
                    boolean treatAsParagraph,
                    int depth)
             throws java.io.IOException
Throws:
java.io.IOException

saveTXT

public void saveTXT(java.io.Writer fileout,
                    int depth)
             throws java.io.IOException
Throws:
java.io.IOException

collectColors

public void collectColors(java.util.HashSet colors)

saveRTF

public void saveRTF(java.io.Writer fileout,
                    int depth,
                    java.util.HashMap colorTable)
             throws java.io.IOException
Throws:
java.io.IOException

save

public void save(java.io.Writer writer)
          throws java.io.IOException
Throws:
java.io.IOException