Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
freemind.modes.LinkRegistryAdapter
Nested Class Summary | |
class |
|
class |
|
protected class |
|
protected abstract class |
|
Field Summary | |
protected HashMap | |
protected HashMap | |
protected HashMap |
Constructor Summary | |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
protected String |
|
Vector |
|
Vector |
|
Vector |
|
Vector |
|
Vector |
|
protected String |
|
String |
|
ID_BasicState |
|
MindMapNode |
|
void |
|
ID_Registered |
|
ID_Registered |
|
protected HashMap IDToCuttedLinks
protected HashMap IDToLinks
protected HashMap TargetToID
public void clearCuttedNodeBuffer()
Clears the set of recent cutted nodes.
- Specified by:
- clearCuttedNodeBuffer in interface MindMapLinkRegistry
public void deregisterLink(MindMapLink link)
- Specified by:
- deregisterLink in interface MindMapLinkRegistry
public void deregisterLinkTarget(MindMapNode target) throws java.lang.IllegalArgumentException
Exception if there are still targets registered.
- Specified by:
- deregisterLinkTarget in interface MindMapLinkRegistry
protected String generateUniqueID(String proposedID)
public Vector getAllLinks(MindMapNode node)
- Specified by:
- getAllLinks in interface MindMapLinkRegistry
public Vector getAllLinksFromMe(MindMapNode source)
- Specified by:
- getAllLinksFromMe in interface MindMapLinkRegistry
- Returns:
- returns all links from this node.
public Vector getAllLinksIntoMe(MindMapNode target)
- Specified by:
- getAllLinksIntoMe in interface MindMapLinkRegistry
- Returns:
- returns all links to this node.
public Vector getAllSources(MindMapNode target)
Returns a Vector of Nodes that point to the given target node.
- Specified by:
- getAllSources in interface MindMapLinkRegistry
public Vector getCuttedNode(String oldTargetID)
- Specified by:
- getCuttedNode in interface MindMapLinkRegistry
- Returns:
- returns all links that have been cutted out recently.
public String getLabel(MindMapNode target)
- Specified by:
- getLabel in interface MindMapLinkRegistry
public ID_BasicState getState(MindMapNode node)
- Specified by:
- getState in interface MindMapLinkRegistry
public MindMapNode getTargetForID(String ID)
- Specified by:
- getTargetForID in interface MindMapLinkRegistry
public void registerLink(MindMapLink link) throws java.lang.IllegalArgumentException
Method to keep track of the sources associated to a target node. This method also sets the new id to the target. Moreover, it is not required that the target node is already registered. This will be done on the fly.
- Specified by:
- registerLink in interface MindMapLinkRegistry
public 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.
- Specified by:
- registerLinkTarget in interface MindMapLinkRegistry
public ID_Registered registerLinkTarget(MindMapNode target, String proposedID)
- Specified by:
- registerLinkTarget in interface MindMapLinkRegistry