Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
freemind.modes.MapAdapter
freemind.modes.mindmapmode.MindMapMapModel
public class MindMapMapModel
extends MapAdapter
Field Summary |
Fields inherited from class freemind.modes.MapAdapter | |
changesPerformedSinceLastSave , readOnly |
Constructor Summary | |
| |
|
Method Summary | |
void |
|
void |
|
void | |
void |
|
Transferable |
|
void |
|
String |
|
String |
|
MindMapLinkRegistry | |
String |
|
boolean |
|
void |
|
void |
|
void | |
void |
|
void |
|
int | |
void |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void | |
void |
|
String |
|
String |
|
public void addLink(MindMapNodeModel source, MindMapNodeModel target)
Source holds the MindMapArrowLinkModel and points to the id placed in target.
public void changeArrowsOfArrowLink(MindMapNode source, MindMapArrowLinkModel arrowLink, boolean hasStartArrow, boolean hasEndArrow)
public void destroy()
When a map is closed, this method is called.
- Overrides:
- destroy in interface MapAdapter
public String getAsPlainText(List mindMapNodes)
- Specified by:
- getAsPlainText in interface MindMap
- Overrides:
- getAsPlainText in interface MapAdapter
public MindMapLinkRegistry getLinkRegistry()
- Specified by:
- getLinkRegistry in interface MindMap
- Overrides:
- getLinkRegistry in interface MapAdapter
- Returns:
- returns the link registry associated with this mode, or null, if no registry is present.
public String getRestoreable()
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 interface MapAdapter
public boolean importExplorerFavorites(File folder, MindMapNode target, boolean redisplay)
public void importFolderStructure(File folder, MindMapNode target, boolean redisplay)
public void joinNodes()
public void load(File file) throws FileNotFoundException, IOException, XMLParseException
- Overrides:
- load in interface MapAdapter
public void paste(Transferable t, MindMapNode target, boolean asSibling, boolean isLeft)
- Overrides:
- paste in interface MapAdapter
- Parameters:
isLeft
- determines, whether or not the node is placed on the left or right. *
public boolean save(File file)
Return the success of saving
- Overrides:
- save in interface MapAdapter
public boolean saveRTF(List mindMapNodes, BufferedWriter fileout)
public void setArrowLinkColor(MindMapNode source, MindMapArrowLinkModel arrowLink, Color color)
public void splitNode(MindMapNode node, int caretPosition, String newText)
- Overrides:
- splitNode in interface MapAdapter
public String toString()
public String tryToLock(File file) throws Exception
Attempts to lock the map using a semaphore file
- Overrides:
- tryToLock in interface MapAdapter
- Parameters:
file
-
- Returns:
- If the map is locked, return the name of the locking user, otherwise return null.