freemind.modes

Interface MindMap

public interface MindMap extends TreeModel

Method Summary
voidchangeNode(MindMapNode node, String newText)
Transferablecopy(MindMapNode node)
Transferablecopy()
TransferablecopySingle()
Transferablecut(MindMapNode node)
Transferablecut()
voiddestroy()
Destroy everything you have created upon opening.
voiddisplayNode(MindMapNode node, ArrayList NodesUnfoldedByDisplay)
Display a node in the display (used by find and the goto action by arrow link actions).
booleanfind(MindMapNode node, String what, boolean caseSensitive)
booleanfindNext()
StringgetAsPlainText(List mindMapNodes)
StringgetAsRTF(List mindMapNodes)
ColorgetBackgroundColor()
FilegetFile()
Returns the file name of the map edited or null if not possible.
StringgetFindFromText()
StringgetFindWhat()
MindMapLinkRegistrygetLinkRegistry()
Object[]getPathToRoot(TreeNode node)
StringgetRestoreable()
Returns a string that may be given to the modes restore() to get this map again.
URLgetURL()
Return URL of the map (whether as local file or a web location)
booleanisReadOnly()
voidpaste(Transferable t, MindMapNode parent)
voidpaste(Transferable t, MindMapNode target, boolean asSibling, boolean isLeft)
voidsetBackgroundColor(Color color)
voidsetFolded(MindMapNode node, boolean folded)
voidsplitNode(MindMapNode node, int caretPosition, String newText)

Method Detail

changeNode

public void changeNode(MindMapNode node, String newText)

copy

public Transferable copy(MindMapNode node)

copy

public Transferable copy()

copySingle

public Transferable copySingle()

cut

public Transferable cut(MindMapNode node)

cut

public Transferable cut()

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()
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)