freemind.modes.filemode
Class FileNodeModel
java.lang.Object
freemind.modes.NodeAdapter
freemind.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.
Fields inherited from class freemind.modes.NodeAdapter |
backgroundColor, children, cloud, folded, font, HGAP, icons, LEFT_POSITION, logger, RIGHT_POSITION, stateIcons, style, underlined, UNKNOWN_POSITION, userObject, VGAP |
Methods inherited from class freemind.modes.NodeAdapter |
acceptViewVisitor, addHook, addIcon, addTreeModelListener, addViewer, calcShiftY, children, createAttributeTableModel, establishOwnFont, getActivatedHooks, getAdditionalInfo, getAllowsChildren, getAttribute, getAttribute, getAttributeKeyList, getAttributePosition, getAttributes, getAttributeTableLength, getBackgroundColor, getChildAt, getChildCount, getChildPosition, getChildren, getCloud, getEdge, getFilterInfo, getFont, getFontFamilyName, getFontSize, getFrame, getHGap, getHistoryInformation, getHooks, getIcons, getIndex, getListeners, getMap, getModeController, getNodeLevel, getNoteText, getObjectId, getParent, getParentNode, getPath, getPlainTextContent, getShiftY, getShortText, getStateIcons, getToolTip, getVGap, getViewers, getXmlNoteText, getXmlText, hasFoldedStrictDescendant, hasOneVisibleChild, hasStyle, insert, invokeHook, isBold, isDescendantOf, isFolded, isItalic, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileNodeModel
public FileNodeModel(java.io.File file,
FreeMindMain frame,
MindMap map)
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
getText
public java.lang.String getText()
- Specified by:
getText
in interface MindMapNode
- Overrides:
getText
in class NodeAdapter
- Returns:
- the text representation of the nodes content. HTML is represented as ....
see getXmlText
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
- Returns:
- returns a ListIterator of all children of the node if the node is unfolded.
EMPTY_LIST_ITERATOR otherwise.
childrenUnfolded
public java.util.ListIterator childrenUnfolded()
- Specified by:
childrenUnfolded
in interface MindMapNode
- Overrides:
childrenUnfolded
in class NodeAdapter
- Returns:
- returns a ListIterator of all (and not only the unfolded ones!!) children of the node.
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
isWriteable
public boolean isWriteable()
- Description copied from interface:
MindMapNode
- Some nodes can't get new children or have other changes (encrypted nodes for example).