|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfreemind.modes.LinkRegistryAdapter
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 | |
class |
LinkRegistryAdapter.ID_BasicStateAdapter
State parent interface. |
class |
LinkRegistryAdapter.ID_BlankAdapter
This state interface expresses the state that a node is blank (i.e. |
protected class |
LinkRegistryAdapter.ID_RegisteredAdapter
This state interface expresses the state that a node has an ID. |
protected class |
LinkRegistryAdapter.ID_UsedStateAdapter
This state interface expresses the state that a node has an ID, but is abstract. |
| Nested classes inherited from class freemind.modes.MindMapLinkRegistry |
MindMapLinkRegistry.ID_BasicState, MindMapLinkRegistry.ID_Blank, MindMapLinkRegistry.ID_Registered, MindMapLinkRegistry.ID_UsedState |
| Field Summary | |
protected java.util.HashMap |
IDToCuttedLinks
|
protected java.util.HashMap |
IDToLink
|
protected java.util.HashMap |
IDToLinks
|
protected static java.util.Random |
ran
|
protected java.util.HashMap |
TargetToID
|
| Constructor Summary | |
LinkRegistryAdapter()
|
|
| Method Summary | |
void |
clearCuttedNodeBuffer()
Clears the set of recent cutted nodes. |
void |
cutNode(MindMapNode target)
Removes links to all nodes beginning from target with its children. |
void |
deregisterLink(MindMapLink link)
|
void |
deregisterLinkTarget(MindMapNode target)
Exception if there are still targets registered. |
java.lang.String |
generateUniqueID(java.lang.String proposedID)
This can be used, if the id has to be known, before a node can be labled. |
java.lang.String |
generateUniqueLinkID(java.lang.String proposedID)
This can be used, if the id has to be known, before a link can be labled. |
java.util.Vector |
getAllLinks(MindMapNode node)
|
java.util.Vector |
getAllLinksFromMe(MindMapNode source)
|
java.util.Vector |
getAllLinksIntoMe(MindMapNode target)
|
java.util.Vector |
getAllSources(MindMapNode target)
Returns a Vector of Nodes that point to the given target node. |
java.util.Vector |
getCuttedNode(java.lang.String oldTargetID)
|
java.lang.String |
getLabel(MindMapNode target)
|
MindMapLink |
getLinkForID(java.lang.String ID)
Reverses the getUniqueID method: searches for a link with the id given as the argument. |
MindMapLinkRegistry.ID_BasicState |
getState(MindMapNode node)
|
MindMapNode |
getTargetForID(java.lang.String ID)
Reverses the getLabel method: searches for a node with the id given as the argument. |
void |
registerLink(MindMapLink link)
Method to keep track of the sources associated to a target node. |
MindMapLinkRegistry.ID_Registered |
registerLinkTarget(MindMapNode target)
The main method. |
MindMapLinkRegistry.ID_Registered |
registerLinkTarget(MindMapNode target,
java.lang.String proposedID)
The second variant of the main method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.HashMap TargetToID
protected java.util.HashMap IDToLinks
protected java.util.HashMap IDToCuttedLinks
protected java.util.HashMap IDToLink
protected static java.util.Random ran
| Constructor Detail |
public LinkRegistryAdapter()
| Method Detail |
public java.lang.String generateUniqueID(java.lang.String proposedID)
MindMapLinkRegistry
generateUniqueID in interface MindMapLinkRegistrypublic java.lang.String generateUniqueLinkID(java.lang.String proposedID)
MindMapLinkRegistry
generateUniqueLinkID in interface MindMapLinkRegistrypublic MindMapLinkRegistry.ID_Registered registerLinkTarget(MindMapNode target)
registerLinkTarget in interface MindMapLinkRegistry
public MindMapLinkRegistry.ID_Registered registerLinkTarget(MindMapNode target,
java.lang.String proposedID)
MindMapLinkRegistry
registerLinkTarget in interface MindMapLinkRegistrypublic MindMapLinkRegistry.ID_BasicState getState(MindMapNode node)
getState in interface MindMapLinkRegistrypublic MindMapNode getTargetForID(java.lang.String ID)
MindMapLinkRegistry
getTargetForID in interface MindMapLinkRegistry
public void deregisterLinkTarget(MindMapNode target)
throws java.lang.IllegalArgumentException
deregisterLinkTarget in interface MindMapLinkRegistryjava.lang.IllegalArgumentException
public void registerLink(MindMapLink link)
throws java.lang.IllegalArgumentException
registerLink in interface MindMapLinkRegistryjava.lang.IllegalArgumentExceptionpublic void deregisterLink(MindMapLink link)
deregisterLink in interface MindMapLinkRegistrypublic MindMapLink getLinkForID(java.lang.String ID)
MindMapLinkRegistry
getLinkForID in interface MindMapLinkRegistrypublic java.util.Vector getAllSources(MindMapNode target)
getAllSources in interface MindMapLinkRegistrypublic java.util.Vector getAllLinks(MindMapNode node)
getAllLinks in interface MindMapLinkRegistrypublic java.util.Vector getAllLinksIntoMe(MindMapNode target)
getAllLinksIntoMe in interface MindMapLinkRegistrypublic java.util.Vector getAllLinksFromMe(MindMapNode source)
getAllLinksFromMe in interface MindMapLinkRegistrypublic java.lang.String getLabel(MindMapNode target)
getLabel in interface MindMapLinkRegistrypublic void cutNode(MindMapNode target)
MindMapLinkRegistry
cutNode in interface MindMapLinkRegistrypublic void clearCuttedNodeBuffer()
clearCuttedNodeBuffer in interface MindMapLinkRegistrypublic java.util.Vector getCuttedNode(java.lang.String oldTargetID)
getCuttedNode in interface MindMapLinkRegistry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||