freemind.modes
Interface MindMapLinkRegistry
- LinkRegistryAdapter
public interface MindMapLinkRegistry
Interface for the registry, which manages the ids of nodes and the existing links in a map.
Thus, this interface is bound to a map model, because other maps have a different registry.
clearCuttedNodeBuffer
public void clearCuttedNodeBuffer()
Clears the set of recent cutted nodes.
cutNode
public void cutNode(MindMapNode target)
Removes links to all nodes beginning from target with its children.
deregisterLink
public void deregisterLink(MindMapLink link)
deregisterLinkTarget
public void deregisterLinkTarget(MindMapNode target)
throws java.lang.IllegalArgumentException
getAllLinks
public Vector getAllLinks(MindMapNode node)
- returns all links from or to this node.
getAllLinksFromMe
public Vector getAllLinksFromMe(MindMapNode source)
- returns all links from this node.
getAllLinksIntoMe
public Vector getAllLinksIntoMe(MindMapNode target)
- returns all links to this node.
getAllSources
public Vector getAllSources(MindMapNode target)
Returns a Vector of Nodes that point to the given node.
getCuttedNode
public Vector getCuttedNode(String oldTargetID)
- returns all links that have been cutted out recently.
getTargetForID
public MindMapNode getTargetForID(String ID)
Reverses the getLabel method: searches for a node with the id given as the argument.
registerLinkTarget
public MindMapLinkRegistry.ID_Registered registerLinkTarget(MindMapNode target)
The main method. Registeres a node with a new (or an existing) node-id. If the state of the id is pending,
then it is set to registered again.
registerLinkTarget
public MindMapLinkRegistry.ID_Registered registerLinkTarget(MindMapNode target,
String proposedID)
The second variant of the main method. The difference is that here an ID is proposed, but has not to be taken, though.