public class MindMapMapModel extends MapAdapter
| Modifier and Type | Class and Description |
|---|---|
static interface |
MindMapMapModel.ReaderCreator |
static class |
MindMapMapModel.StringReaderCreator |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
EXPECTED_START_STRINGS
The current version and all other version that don't need
XML update for sure.
|
static java.lang.String |
MAP_INITIAL_START |
static java.lang.String |
RESTORE_MODE_MIND_MAP |
changesPerformedSinceLastSave, logger, mModeController, readOnly| Constructor and Description |
|---|
MindMapMapModel(FreeMindMain frame,
ModeController modeController) |
MindMapMapModel(MindMapNodeModel root,
FreeMindMain frame,
ModeController modeController) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeNode(MindMapNode node,
java.lang.String newText) |
void |
destroy()
When a map is closed, this method is called.
|
java.lang.String |
getAsHTML(java.util.List mindMapNodes) |
java.lang.String |
getAsPlainText(java.util.List mindMapNodes) |
java.lang.String |
getAsRTF(java.util.List mindMapNodes) |
void |
getFilteredXml(java.io.Writer fileout)
writes the content of the map to a writer.
|
MindMapLinkRegistry |
getLinkRegistry() |
java.lang.String |
getRestoreable()
Returns a string that may be given to the modes restore()
to get this map again.
|
void |
getXml(java.io.Writer fileout)
writes the content of the map to a writer.
|
void |
getXml(java.io.Writer fileout,
boolean saveInvisible)
writes the content of the map to a writer.
|
void |
getXml(java.io.Writer fileout,
boolean saveInvisible,
MindMapNode pRootNode)
writes the content of the map to a writer.
|
void |
load(java.io.File file) |
void |
load(java.net.URL url) |
boolean |
save(java.io.File file)
Return the success of saving
|
boolean |
saveRTF(java.util.List mindMapNodes,
java.io.BufferedWriter fileout) |
boolean |
saveTXT(MindMapNodeModel rootNodeOfBranch,
java.io.File file) |
java.lang.String |
toString() |
java.lang.String |
tryToLock(java.io.File file)
Attempts to lock the map using a semaphore file
|
fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getFile, getFilter, getFrame, getModeController, getNumberOfChangesSinceLastSave, getRegistry, getRootNode, getText, getURL, isReadOnly, isSaved, nodeChanged, nodeRefresh, setFile, setFilter, setRoot, setSavedaddTreeModelListener, asksAllowsChildren, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPathToRoot, nodeStructureChangedpublic static final java.lang.String MAP_INITIAL_START
public static final java.lang.String RESTORE_MODE_MIND_MAP
public static final java.lang.String[] EXPECTED_START_STRINGS
public MindMapMapModel(FreeMindMain frame, ModeController modeController)
public MindMapMapModel(MindMapNodeModel root, FreeMindMain frame, ModeController modeController)
public MindMapLinkRegistry getLinkRegistry()
getLinkRegistry in interface MindMapgetLinkRegistry in class MapAdapterpublic java.lang.String getRestoreable()
MindMapgetRestoreable in interface MindMapgetRestoreable in class MapAdapterpublic void changeNode(MindMapNode node, java.lang.String newText)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getAsHTML(java.util.List mindMapNodes)
getAsHTML in interface MindMapgetAsHTML in class MapAdapterpublic java.lang.String getAsPlainText(java.util.List mindMapNodes)
getAsPlainText in interface MindMapgetAsPlainText in class MapAdapterpublic boolean saveTXT(MindMapNodeModel rootNodeOfBranch, java.io.File file)
public java.lang.String getAsRTF(java.util.List mindMapNodes)
getAsRTF in interface MindMapgetAsRTF in class MapAdapterpublic boolean saveRTF(java.util.List mindMapNodes,
java.io.BufferedWriter fileout)
public boolean save(java.io.File file)
save in class MapAdapterpublic void getXml(java.io.Writer fileout,
boolean saveInvisible)
throws java.io.IOException
java.io.IOExceptionpublic void getXml(java.io.Writer fileout,
boolean saveInvisible,
MindMapNode pRootNode)
throws java.io.IOException
java.io.IOExceptionpublic void getXml(java.io.Writer fileout)
throws java.io.IOException
MindMapjava.io.IOExceptionpublic void getFilteredXml(java.io.Writer fileout)
throws java.io.IOException
MindMapjava.io.IOExceptionpublic java.lang.String tryToLock(java.io.File file)
throws java.lang.Exception
tryToLock in class MapAdapterException, - when the locking failed for other reasons than that the
file is being edited.java.lang.Exceptionpublic void load(java.net.URL url)
throws java.io.FileNotFoundException,
java.io.IOException,
XMLParseException,
java.net.URISyntaxException
load in class MapAdapterjava.io.FileNotFoundExceptionjava.io.IOExceptionXMLParseExceptionjava.net.URISyntaxExceptionpublic void load(java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException
load in class MapAdapterjava.io.FileNotFoundExceptionjava.io.IOExceptionpublic void destroy()
destroy in interface MindMapdestroy in class MapAdapter