freemind.modes.mindmapmode
Class MindMapNodeModel

java.lang.Object
  extended by freemind.modes.NodeAdapter
      extended by freemind.modes.mindmapmode.MindMapNodeModel
All Implemented Interfaces:
MindMapNode, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
Direct Known Subclasses:
EncryptedMindMapNode

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
backgroundColor, children, cloud, color, folded, font, HGAP, icons, LEFT_POSITION, logger, RIGHT_POSITION, stateIcons, style, underlined, UNKNOWN_POSITION, userObject, VGAP
 
Fields inherited from interface freemind.modes.MindMapNode
NODE_STYLES, STYLE_AS_PARENT, STYLE_BUBBLE, STYLE_COMBINED, STYLE_FORK
 
Constructor Summary
MindMapNodeModel(FreeMindMain frame, MindMap map)
           
MindMapNodeModel(java.lang.Object userObject, FreeMindMain frame, MindMap map)
           
 
Method Summary
 void collectColors(java.util.HashSet colors)
           
 java.lang.String getPlainTextContent()
           
 boolean isWriteable()
          Some nodes can't get new children or have other changes (encrypted nodes for example).
 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
acceptViewVisitor, addHook, addIcon, addTreeModelListener, addViewer, calcShiftY, children, childrenFolded, childrenUnfolded, createAttributeTableModel, establishOwnFont, getActivatedHooks, getAdditionalInfo, getAllowsChildren, getAttribute, getAttribute, getAttributeKeyList, getAttributePosition, getAttributes, getAttributeTableLength, getBackgroundColor, getChildAt, getChildCount, getChildPosition, getChildren, getCloud, getColor, getEdge, getFilterInfo, getFont, getFontFamilyName, getFontSize, getFrame, getHGap, getHistoryInformation, getHooks, getIcons, getIndex, getLink, getListeners, getMap, getModeController, getNodeLevel, getNoteText, getObjectId, getParent, getParentNode, getPath, getShiftY, getShortText, getStateIcons, getStyle, getText, getToolTip, getVGap, getViewers, getXmlNoteText, getXmlText, hasChildren, hasFoldedStrictDescendant, hasOneVisibleChild, hasStyle, insert, invokeHook, isBold, isDescendantOf, isFolded, isItalic, isLeaf, isLeft, isNewChildLeft, isRoot, isUnderlined, isVisible, remove, remove, removeFromParent, removeHook, removeIcon, removeTreeModelListener, removeViewer, save, setAdditionalInfo, setAttribute, setBackgroundColor, setBold, setCloud, setColor, setEdge, setFolded, setFont, setFontSize, setHGap, setHistoryInformation, setItalic, setLeft, setLink, setMap, setNoteText, setParent, setParent, setShiftY, setStateIcon, setStyle, setText, setToolTip, setUnderlined, setUserObject, setVGap, setXmlNoteText, setXmlText, 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,
                        MindMap map)

MindMapNodeModel

public MindMapNodeModel(java.lang.Object userObject,
                        FreeMindMain frame,
                        MindMap map)
Method Detail

getPlainTextContent

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

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

isWriteable

public boolean isWriteable()
Description copied from interface: MindMapNode
Some nodes can't get new children or have other changes (encrypted nodes for example).