freemind.modes

Interface MindMapLinkRegistry

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.
Nested Class Summary
static interfaceMindMapLinkRegistry.ID_BasicState
State parent interface.
static interfaceMindMapLinkRegistry.ID_Blank
This state interface expresses the state that a node is blank (i.e. without an id, normal state).
static interfaceMindMapLinkRegistry.ID_Registered
This state interface expresses the state that a node has an ID.
static interfaceMindMapLinkRegistry.ID_UsedState
This state interface expresses the state that a node has an ID, but is abstract.
Method Summary
voidclearCuttedNodeBuffer()
Clears the set of recent cutted nodes.
voidcutNode(MindMapNode target)
Removes links to all nodes beginning from target with its children.
voidderegisterLink(MindMapLink link)
voidderegisterLinkTarget(MindMapNode target)
VectorgetAllLinks(MindMapNode node)
VectorgetAllLinksFromMe(MindMapNode source)
VectorgetAllLinksIntoMe(MindMapNode target)
VectorgetAllSources(MindMapNode target)
Returns a Vector of Nodes that point to the given node.
VectorgetCuttedNode(String oldTargetID)
StringgetLabel(MindMapNode target)
MindMapLinkRegistry.ID_BasicStategetState(MindMapNode node)
MindMapNodegetTargetForID(String ID)
Reverses the getLabel method: searches for a node with the id given as the argument.
voidregisterLink(MindMapLink link)
MindMapLinkRegistry.ID_RegisteredregisterLinkTarget(MindMapNode target)
The main method.
MindMapLinkRegistry.ID_RegisteredregisterLinkTarget(MindMapNode target, String proposedID)
The second variant of the main method.

Method Detail

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)

getAllLinks

public Vector getAllLinks(MindMapNode node)

Returns: returns all links from or to this node.

getAllLinksFromMe

public Vector getAllLinksFromMe(MindMapNode source)

Returns: returns all links from this node.

getAllLinksIntoMe

public Vector getAllLinksIntoMe(MindMapNode target)

Returns: 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: returns all links that have been cutted out recently.

getLabel

public String getLabel(MindMapNode target)

getState

public MindMapLinkRegistry.ID_BasicState getState(MindMapNode node)

getTargetForID

public MindMapNode getTargetForID(String ID)
Reverses the getLabel method: searches for a node with the id given as the argument.

registerLink

public void registerLink(MindMapLink link)

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.