freemind.modes.mindmapmode
Class MindMapMapModel
java.lang.Object
freemind.modes.MapAdapter
freemind.modes.mindmapmode.MindMapMapModel
- All Implemented Interfaces:
- MindMap, javax.swing.tree.TreeModel
- public class MindMapMapModel
- extends MapAdapter
|
Method Summary |
void |
addIcon(MindMapNodeModel node,
MindIcon icon)
|
void |
blendNodeColor(MindMapNodeModel node)
|
java.awt.datatransfer.Transferable |
copy(MindMapNode node)
|
void |
destroy()
Destroy everything you have created upon opening. |
java.lang.String |
getAsPlainText(java.util.List mindMapNodes)
|
java.lang.String |
getAsRTF(java.util.List mindMapNodes)
|
java.lang.String |
getRestoreable()
Returns a string that may be given to the modes restore()
to get this map again. |
boolean |
importExplorerFavorites(java.io.File folder,
MindMapNode target,
boolean redisplay)
|
void |
importFolderStructure(java.io.File folder,
MindMapNode target,
boolean redisplay)
|
void |
increaseFontSize(MindMapNodeModel node,
int increment)
|
void |
joinNodes()
|
void |
load(java.io.File file)
|
void |
paste(java.awt.datatransfer.Transferable t,
MindMapNode target,
boolean asSibling)
|
int |
removeLastIcon(MindMapNodeModel node)
|
boolean |
save(java.io.File file)
Return the success of saving |
boolean |
saveHTML(MindMapNodeModel rootNodeOfBranch,
java.io.File file)
|
boolean |
saveRTF(java.util.List mindMapNodes,
java.io.BufferedWriter fileout)
|
boolean |
saveTXT(MindMapNodeModel rootNodeOfBranch,
java.io.File file)
|
void |
setBold(MindMapNodeModel node)
|
void |
setEdgeColor(MindMapNodeModel node,
java.awt.Color color)
|
void |
setEdgeStyle(MindMapNodeModel node,
java.lang.String style)
|
void |
setEdgeWidth(MindMapNodeModel node,
int width)
|
void |
setFontFamily(MindMapNodeModel node,
java.lang.String fontFamily)
|
void |
setFontSize(MindMapNodeModel node,
int fontSize)
|
void |
setItalic(MindMapNodeModel node)
|
void |
setNodeColor(MindMapNodeModel node,
java.awt.Color color)
|
void |
setNodeFont(MindMapNodeModel node,
java.awt.Font font)
|
void |
setNodeStyle(MindMapNodeModel node,
java.lang.String style)
|
void |
setNormalFont(MindMapNodeModel node)
|
void |
setUnderlined(MindMapNodeModel node)
|
void |
splitNode(MindMapNode node,
int caretPosition,
java.lang.String newText)
|
java.lang.String |
toString()
|
java.lang.String |
tryToLock(java.io.File file)
Attempts to lock the map using a semaphore file |
| Methods inherited from class freemind.modes.MapAdapter |
addTreeModelListener, applyPattern, changeNode, copy, copySingle, cut, cut, find, findNext, getBackgroundColor, getChild, getChildCount, getFile, getFindFromText, getFindWhat, getFrame, getIndexOfChild, getLink, getPathToRoot, getRoot, getText, getURL, insertNodeInto, insertNodeInto, insertNodeIntoNoEvent, insertNodeIntoNoEvent, isLeaf, isReadOnly, isSaved, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, paste, paste, reload, removeNodeFromParent, removeNodeFromParent, removeTreeModelListener, setBackgroundColor, setFile, setFolded, setLink, setRoot, setSaved, valueForPathChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MindMapMapModel
public MindMapMapModel(FreeMindMain frame)
MindMapMapModel
public MindMapMapModel(MindMapNodeModel root,
FreeMindMain frame)
getRestoreable
public java.lang.String getRestoreable()
- Description copied from interface:
MindMap
- Returns a string that may be given to the modes restore()
to get this map again. The Mode must take care that
two different maps don't give the same restoreable
key.
- Specified by:
getRestoreable in interface MindMap- Overrides:
getRestoreable in class MapAdapter
setNodeColor
public void setNodeColor(MindMapNodeModel node,
java.awt.Color color)
blendNodeColor
public void blendNodeColor(MindMapNodeModel node)
setNodeFont
public void setNodeFont(MindMapNodeModel node,
java.awt.Font font)
setEdgeColor
public void setEdgeColor(MindMapNodeModel node,
java.awt.Color color)
setEdgeWidth
public void setEdgeWidth(MindMapNodeModel node,
int width)
setNodeStyle
public void setNodeStyle(MindMapNodeModel node,
java.lang.String style)
setEdgeStyle
public void setEdgeStyle(MindMapNodeModel node,
java.lang.String style)
setBold
public void setBold(MindMapNodeModel node)
addIcon
public void addIcon(MindMapNodeModel node,
MindIcon icon)
removeLastIcon
public int removeLastIcon(MindMapNodeModel node)
setItalic
public void setItalic(MindMapNodeModel node)
setUnderlined
public void setUnderlined(MindMapNodeModel node)
setNormalFont
public void setNormalFont(MindMapNodeModel node)
setFontFamily
public void setFontFamily(MindMapNodeModel node,
java.lang.String fontFamily)
setFontSize
public void setFontSize(MindMapNodeModel node,
int fontSize)
increaseFontSize
public void increaseFontSize(MindMapNodeModel node,
int increment)
toString
public java.lang.String toString()
saveHTML
public boolean saveHTML(MindMapNodeModel rootNodeOfBranch,
java.io.File file)
getAsPlainText
public java.lang.String getAsPlainText(java.util.List mindMapNodes)
- Specified by:
getAsPlainText in interface MindMap- Overrides:
getAsPlainText in class MapAdapter
saveTXT
public boolean saveTXT(MindMapNodeModel rootNodeOfBranch,
java.io.File file)
getAsRTF
public java.lang.String getAsRTF(java.util.List mindMapNodes)
- Specified by:
getAsRTF in interface MindMap- Overrides:
getAsRTF in class MapAdapter
saveRTF
public boolean saveRTF(java.util.List mindMapNodes,
java.io.BufferedWriter fileout)
save
public boolean save(java.io.File file)
- Return the success of saving
- Specified by:
save in class MapAdapter
tryToLock
public java.lang.String tryToLock(java.io.File file)
throws java.lang.Exception
- Attempts to lock the map using a semaphore file
- Overrides:
tryToLock in class MapAdapter
- Parameters:
file -
- Returns:
- If the map is locked, return the name of the locking user, otherwise return null.
- Throws:
Exception, - when the locking failed for other reasons than that the
file is being edited.
java.lang.Exception
load
public void load(java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException,
XMLParseException
- Specified by:
load in class MapAdapter
- Throws:
java.io.FileNotFoundException
java.io.IOException
XMLParseException
destroy
public void destroy()
- Description copied from interface:
MindMap
- Destroy everything you have created upon opening.
- Specified by:
destroy in interface MindMap- Overrides:
destroy in class MapAdapter
copy
public java.awt.datatransfer.Transferable copy(MindMapNode node)
- Specified by:
copy in interface MindMap- Overrides:
copy in class MapAdapter
splitNode
public void splitNode(MindMapNode node,
int caretPosition,
java.lang.String newText)
- Specified by:
splitNode in interface MindMap- Overrides:
splitNode in class MapAdapter
joinNodes
public void joinNodes()
importExplorerFavorites
public boolean importExplorerFavorites(java.io.File folder,
MindMapNode target,
boolean redisplay)
importFolderStructure
public void importFolderStructure(java.io.File folder,
MindMapNode target,
boolean redisplay)
paste
public void paste(java.awt.datatransfer.Transferable t,
MindMapNode target,
boolean asSibling)
- Specified by:
paste in interface MindMap- Overrides:
paste in class MapAdapter