freemind.modes.mindmapmode
public class MindMapMapModel extends MapAdapter
| Constructor Summary | |
|---|---|
| MindMapMapModel(FreeMindMain frame) | |
| MindMapMapModel(MindMapNodeModel root, FreeMindMain frame) | |
| Method Summary | |
|---|---|
| void | addIcon(MindMapNodeModel node, MindIcon icon) |
| void | addLink(MindMapNodeModel source, MindMapNodeModel target) Source holds the MindMapArrowLinkModel and points to the id placed in target. |
| void | blendNodeColor(MindMapNodeModel node) |
| void | changeArrowsOfArrowLink(MindMapNode source, MindMapArrowLinkModel arrowLink, boolean hasStartArrow, boolean hasEndArrow) |
| Transferable | copy(MindMapNode node) |
| void | destroy() When a map is closed, this method is called. |
| String | getAsPlainText(List mindMapNodes) |
| String | getAsRTF(List mindMapNodes) |
| MindMapLinkRegistry | getLinkRegistry() |
| String | getRestoreable() |
| boolean | importExplorerFavorites(File folder, MindMapNode target, boolean redisplay) |
| void | importFolderStructure(File folder, MindMapNode target, boolean redisplay) |
| void | increaseFontSize(MindMapNodeModel node, int increment) |
| void | joinNodes() |
| void | load(File file) |
| void | paste(Transferable t, MindMapNode target, boolean asSibling, boolean isLeft) |
| int | removeLastIcon(MindMapNodeModel node) |
| void | removeReference(MindMapNode source, MindMapArrowLinkModel arrowLink) |
| boolean | save(File file)
Return the success of saving |
| boolean | saveHTML(MindMapNodeModel rootNodeOfBranch, File file) |
| boolean | saveRTF(List mindMapNodes, BufferedWriter fileout) |
| boolean | saveTXT(MindMapNodeModel rootNodeOfBranch, File file) |
| void | setArrowLinkColor(MindMapNode source, MindMapArrowLinkModel arrowLink, Color color) |
| void | setBold(MindMapNodeModel node) |
| void | setCloud(MindMapNodeModel node) |
| void | setCloudColor(MindMapNodeModel node, Color color) |
| void | setCloudStyle(MindMapNodeModel node, String style) |
| void | setCloudWidth(MindMapNodeModel node, int width) |
| void | setEdgeColor(MindMapNodeModel node, Color color) |
| void | setEdgeStyle(MindMapNodeModel node, String style) |
| void | setEdgeWidth(MindMapNodeModel node, int width) |
| void | setFontFamily(MindMapNodeModel node, String fontFamily) |
| void | setFontSize(MindMapNodeModel node, int fontSize) |
| void | setItalic(MindMapNodeModel node) |
| void | setNodeColor(MindMapNodeModel node, Color color) |
| void | setNodeFont(MindMapNodeModel node, Font font) |
| void | setNodeStyle(MindMapNodeModel node, String style) |
| void | setNormalFont(MindMapNodeModel node) |
| void | setUnderlined(MindMapNodeModel node) |
| void | splitNode(MindMapNode node, int caretPosition, String newText) |
| String | toString() |
| String | tryToLock(File file)
Attempts to lock the map using a semaphore file |
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.