freemind.modes.mindmapmode

Class MindMapNodeModel

Implemented Interfaces:
MindMapNode, MutableTreeNode

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, cloud, color, folded, font, icons, style, underlined, userObject

Fields inherited from interface freemind.modes.MindMapNode

STYLE_BUBBLE, STYLE_FORK

Constructor Summary

MindMapNodeModel(Object userObject, FreeMindMain frame)
MindMapNodeModel(FreeMindMain frame)

Method Summary

protected MindMapNode
basicCopy()
void
collectColors(HashSet colors)
String
getStyle()
A Node-Style like MindMapNode.STYLE_FORK or MindMapNode.STYLE_BUBBLE
void
save(Writer writer, MindMapMapModel model)
int
saveHTML(Writer fileout, String parentID, int lastChildNumber, boolean isRoot, boolean treatAsParagraph, int depth)
String
saveHTML_escapeUnicodeAndSpecialCharacters(String text)
void
saveRTF(Writer fileout, int depth, HashMap colorTable)
void
saveTXT(Writer fileout, int depth)

Methods inherited from class freemind.modes.NodeAdapter

addIcon, basicCopy, children, childrenFolded, childrenUnfolded, estabilishOwnFont, getAllowsChildren, getChildAt, getChildCount, getChildPosition, getCloud, getColor, getEdge, getFont, getFontFamilyName, getFontSize, getFrame, getIcons, getIndex, getLink, getNodeLevel, getParent, getParentNode, getPath, getPreferredChild, getStyle, getViewer, hasChildren, hasFoldedStrictDescendant, insert, isBold, isDescendantOf, isFolded, isItalic, isLeaf, isLeft, isRoot, isUnderlined, remove, remove, removeFromParent, removeLastIcon, setBold, setCloud, setColor, setEdge, setFolded, setFont, setFontSize, setItalic, setLeft, setLink, setParent, setParent, setPreferredChild, setStyle, setUnderlined, setUserObject, setViewer, shallowCopy, toString, toggleBold, toggleItalic

Constructor Details

MindMapNodeModel

public MindMapNodeModel(Object userObject,
                        FreeMindMain frame)

MindMapNodeModel

public MindMapNodeModel(FreeMindMain frame)

Method Details

basicCopy

protected MindMapNode basicCopy()
Overrides:
basicCopy in interface NodeAdapter

collectColors

public void collectColors(HashSet colors)

getStyle

public String getStyle()
A Node-Style like MindMapNode.STYLE_FORK or MindMapNode.STYLE_BUBBLE
Specified by:
getStyle in interface MindMapNode
Overrides:
getStyle in interface NodeAdapter

save

public void save(Writer writer,
                 MindMapMapModel model)
            throws IOException

saveHTML

public int saveHTML(Writer fileout,
                    String parentID,
                    int lastChildNumber,
                    boolean isRoot,
                    boolean treatAsParagraph,
                    int depth)
            throws IOException

saveHTML_escapeUnicodeAndSpecialCharacters

public String saveHTML_escapeUnicodeAndSpecialCharacters(String text)

saveRTF

public void saveRTF(Writer fileout,
                    int depth,
                    HashMap colorTable)
            throws IOException

saveTXT

public void saveTXT(Writer fileout,
                    int depth)
            throws IOException