freemind.modes

Interface MindMap

All Superinterfaces:
TreeModel
Known Implementing Classes:
BrowseMapModel, FileMapModel, MapAdapter, MindMapMapModel, SchemeMapModel

public interface MindMap
extends TreeModel

Method Summary

void
changeNode(MindMapNode node, String newText)
Transferable
copy()
Transferable
copy(MindMapNode node)
Transferable
copySingle()
Transferable
cut()
Transferable
cut(MindMapNode node)
void
destroy()
Destroy everything you have created upon opening.
void
displayNode(MindMapNode node, ArrayList NodesUnfoldedByDisplay)
Display a node in the display (used by find and the goto action by arrow link actions).
boolean
find(MindMapNode node, String what, boolean caseSensitive)
boolean
findNext()
String
getAsPlainText(List mindMapNodes)
String
getAsRTF(List mindMapNodes)
Color
getBackgroundColor()
File
getFile()
Returns the file name of the map edited or null if not possible.
String
getFindFromText()
String
getFindWhat()
MindMapLinkRegistry
getLinkRegistry()
Object[]
getPathToRoot(TreeNode node)
String
getRestoreable()
Returns a string that may be given to the modes restore() to get this map again.
URL
getURL()
Return URL of the map (whether as local file or a web location)
boolean
isReadOnly()
void
paste(Transferable t, MindMapNode parent)
void
paste(Transferable t, MindMapNode target, boolean asSibling, boolean isLeft)
void
setBackgroundColor(Color color)
void
setFolded(MindMapNode node, boolean folded)
void
splitNode(MindMapNode node, int caretPosition, String newText)

Method Details

changeNode

public void changeNode(MindMapNode node,
                       String newText)

copy

public Transferable copy()

copy

public Transferable copy(MindMapNode node)

copySingle

public Transferable copySingle()

cut

public Transferable cut()

cut

public Transferable cut(MindMapNode node)

destroy

public void destroy()
Destroy everything you have created upon opening.

displayNode

public void displayNode(MindMapNode node,
                        ArrayList NodesUnfoldedByDisplay)
Display a node in the display (used by find and the goto action by arrow link actions).

find

public boolean find(MindMapNode node,
                    String what,
                    boolean caseSensitive)

findNext

public boolean findNext()

getAsPlainText

public String getAsPlainText(List mindMapNodes)

getAsRTF

public String getAsRTF(List mindMapNodes)

getBackgroundColor

public Color getBackgroundColor()

getFile

public File getFile()
Returns the file name of the map edited or null if not possible.

getFindFromText

public String getFindFromText()

getFindWhat

public String getFindWhat()

getLinkRegistry

public MindMapLinkRegistry getLinkRegistry()
Returns:
returns the link registry associated with this mode, or null, if no registry is present.

getPathToRoot

public Object[] getPathToRoot(TreeNode node)

getRestoreable

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.

getURL

public URL getURL()
            throws MalformedURLException
Return URL of the map (whether as local file or a web location)

isReadOnly

public boolean isReadOnly()

paste

public void paste(Transferable t,
                  MindMapNode parent)

paste

public void paste(Transferable t,
                  MindMapNode target,
                  boolean asSibling,
                  boolean isLeft)
Parameters:
isLeft - determines, whether or not the node is placed on the left or right. *

setBackgroundColor

public void setBackgroundColor(Color color)

setFolded

public void setFolded(MindMapNode node,
                      boolean folded)

splitNode

public void splitNode(MindMapNode node,
                      int caretPosition,
                      String newText)