Node identifier

From FreeMind

(Difference between revisions)
Jump to: navigation, search
(Implementation: +link to CVS)
(* Format)
Line 1: Line 1:
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.
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?
+
==Purpose==
-
Functions of node identifiers:
+
Functions or roles of node identifiers:
* Target of arrow links (AKA connectors)
* Target of arrow links (AKA connectors)
* Target of intramap links, that is, links from one node to another node of the same mind map
* Target of intramap links, that is, links from one node to another node of the same mind map
* TODO: Complete
* TODO: Complete
 +
 +
==Format==
 +
 +
* The format of the node identifer in 0.9.0 beta 16 and later: "ID_<number>" (Since which version?)
 +
* The format of the node identifier in 0.8.0: "Freemind_Link_<number>". (Is this format guaranteed?)
 +
* Example: &lt;node CREATED="1234439446907" ID="ID_1488272364" ...
 +
* See LinkRegistryAdapter.generateUniqueID
==Implementation==
==Implementation==

Revision as of 11:56, 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.

Contents

Purpose

Functions or roles 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

Format

  • The format of the node identifer in 0.9.0 beta 16 and later: "ID_<number>" (Since which version?)
  • The format of the node identifier in 0.8.0: "Freemind_Link_<number>". (Is this format guaranteed?)
  • Example: <node CREATED="1234439446907" ID="ID_1488272364" ...
  • See LinkRegistryAdapter.generateUniqueID

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

Personal tools