|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultTreeModel
freemind.modes.MapAdapter
freemind.modes.mindmapmode.MindMapMapModel
public class MindMapMapModel
| Nested Class Summary | |
|---|---|
static interface |
MindMapMapModel.ReaderCreator
|
static class |
MindMapMapModel.StringReaderCreator
|
| Field Summary | |
|---|---|
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
|
| Fields inherited from class freemind.modes.MapAdapter |
|---|
changesPerformedSinceLastSave, logger, mModeController, readOnly |
| Fields inherited from class javax.swing.tree.DefaultTreeModel |
|---|
asksAllowsChildren, listenerList, root |
| Constructor Summary | |
|---|---|
MindMapMapModel(FreeMindMain frame,
ModeController modeController)
|
|
MindMapMapModel(MindMapNodeModel root,
FreeMindMain frame,
ModeController modeController)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class freemind.modes.MapAdapter |
|---|
fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getFile, getFilter, getFrame, getModeController, getNumberOfChangesSinceLastSave, getRegistry, getRootNode, getText, getURL, isReadOnly, isSaved, nodeChanged, nodeRefresh, setFile, setFilter, setRoot, setSaved |
| Methods inherited from class javax.swing.tree.DefaultTreeModel |
|---|
addTreeModelListener, asksAllowsChildren, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface freemind.modes.MindMap |
|---|
getPathToRoot, nodeStructureChanged |
| Methods inherited from interface javax.swing.tree.TreeModel |
|---|
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public MindMapMapModel(FreeMindMain frame,
ModeController modeController)
public MindMapMapModel(MindMapNodeModel root,
FreeMindMain frame,
ModeController modeController)
| Method Detail |
|---|
public MindMapLinkRegistry getLinkRegistry()
getLinkRegistry in interface MindMapgetLinkRegistry in class MapAdapterpublic java.lang.String getRestoreable()
MindMap
getRestoreable in interface MindMapgetRestoreable in class MapAdapter
public 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 MapAdapter
public boolean saveTXT(MindMapNodeModel rootNodeOfBranch,
java.io.File file)
public java.lang.String getAsRTF(java.util.List mindMapNodes)
getAsRTF in interface MindMapgetAsRTF in class MapAdapter
public boolean saveRTF(java.util.List mindMapNodes,
java.io.BufferedWriter fileout)
public boolean save(java.io.File file)
save in class MapAdapter
public void getXml(java.io.Writer fileout,
boolean saveInvisible)
throws java.io.IOException
java.io.IOException
public void getXml(java.io.Writer fileout,
boolean saveInvisible,
MindMapNode pRootNode)
throws java.io.IOException
java.io.IOException
public void getXml(java.io.Writer fileout)
throws java.io.IOException
MindMap
java.io.IOException
public void getFilteredXml(java.io.Writer fileout)
throws java.io.IOException
MindMap
java.io.IOException
public 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.Exception
public void load(java.net.URL url)
throws java.io.FileNotFoundException,
java.io.IOException,
XMLParseException,
java.net.URISyntaxException
load in class MapAdapterjava.io.FileNotFoundException
java.io.IOException
XMLParseException
java.net.URISyntaxException
public void load(java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException
load in class MapAdapterjava.io.FileNotFoundException
java.io.IOExceptionpublic void destroy()
destroy in interface MindMapdestroy in class MapAdapter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||