Node identifier: Difference between revisions

From FreeMind
Jump to navigationJump to search
No edit summary
(revert to last full version)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
>==Purpose==
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.
 
==Purpose==


Functions or roles of node identifiers:
Functions or roles of node identifiers:
Line 6: Line 8:
* TODO: Complete
* TODO: Complete


----
==Format==
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
* The format of the node identifer in 0.9.0 beta 16 and later: "ID_<number>" (Since which version?)
=[http://afixihyw.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
* 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" ...
=[http://afixihyw.co.cc CLICK HERE]=
* See LinkRegistryAdapter.generateUniqueID
----
 
</div>
==Implementation==
 
* NodeAdapter.getObjectId
* ControllerAdapter.getNodeID
* MindMapMapModel.getLinkRegistry
* MindMapLinkRegistry.*
* LinkRegistryAdapter.* ([http://freemind.cvs.sourceforge.net/viewvc/freemind/freemind/freemind/modes/LinkRegistryAdapter.java?view=log 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==
* [http://sourceforge.net/tracker/index.php?func=detail&aid=1851562&group_id=7118&atid=1006953 Storing of node IDs in the mind map file]
 
[[Category:Development]]

Latest revision as of 12:34, 22 November 2010

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.

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