Node identifier: Difference between revisions

From FreeMind
Jump to navigationJump to search
(+)
 
(→‎Implementation: +link to CVS)
Line 14: Line 14:
* MindMapMapModel.getLinkRegistry
* MindMapMapModel.getLinkRegistry
* MindMapLinkRegistry.*
* MindMapLinkRegistry.*
* LinkRegistryAdapter.*
* LinkRegistryAdapter.* ([http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind/modes/LinkRegistryAdapter.java?view=log CVS])


   public String getObjectId(ModeController controller) {
   public String getObjectId(ModeController controller) {

Revision as of 11:48, 12 February 2009

Since FreeMind 0.8.0, nodes are equipped with identifiers that serve as targets of intramap links, targets of arrow links (AKA connectors), and further purposes.

The format of the identifier: "Freemind_Link_<number>". Is this format guaranteed?

Functions of node identifiers:

  • Target of arrow links (AKA connectors)
  • Target of intramap links, that is, links from one node to another node of the same mind map
  • TODO: Complete

Implementation

  • NodeAdapter.getObjectId
  • ControllerAdapter.getNodeID
  • MindMapMapModel.getLinkRegistry
  • MindMapLinkRegistry.*
  • LinkRegistryAdapter.* (CVS)
 public String getObjectId(ModeController controller) {
   return controller.getNodeID(this);
 }
 public String getNodeID(MindMapNode selected) {
   getMap().getLinkRegistry().registerLinkTarget(selected);
   return getMap().getLinkRegistry().getLabel(selected);
 }
 public MindMapLinkRegistry getLinkRegistry() {
   return linkRegistry;
 }

Tracker items