Difference between revisions of "Scripting API"

From Freeplane - free mind mapping and knowledge management software
(Scripting documentation)
m (Text replacement - "freeplane.sourceforge.net" to "www.freeplane.org")
 
(24 intermediate revisions by 8 users not shown)
Line 1: Line 1:
This page was started following a suggestion of Dimitry [http://sourceforge.net/projects/freeplane/forums/forum/758437/topic/3446671?message=7744225] in reply of a post of mine. Its (initial) goal is to enable users with little knowledge of the internals of Freeplane to port their scripts when changing from Freemind.  
+
For the [[Scripting]] API see its [http://www.freeplane.org/doc/api/ Javadoc documentation].
  
This is a list of methods (and a variable) of the objects "node" and "c" passed to the scripts by Freemind which I used so far. It is not complete, and in fact I'd like to have methods at hand to access (read/write) attributes and their values, as well as icons. There might be more useful things that one could wish to do in a script.
+
The Scripting API is in some sense extended by [[Scripting: Freeplane Utility Classes|Freeplane's utility classes]] and by the [[Scripting: Included libraries|Libraries included in Freeplane]].
  
Finally the list:
+
==Changes to the scripting API==
 +
The [[Scripting_API|Scripting API]] will evolve over time but Freeplane's developers will do whatever possible to keep new API versions downward compatible. On the other hand there might be changes in parts of the Freeplane code that are not part of the official API but on which some scripts might depend nevertheless. This mostly applies to the [[Scripting:_Freeplane_Utility_Classes|utility classes]].
  
node:  
+
Changes to the API are indicated per method by version numbers in the [http://www.freeplane.org/doc/api/org/freeplane/plugin/script/proxy/Proxy.html JavaDoc of the Proxy class].
<pre>int getAttributePosition(String)
 
String getPlainTextContent()
 
int getChildCount()
 
void setBackgroundColor(Color)
 
void setColor(Color)
 
void node.setFont(Font)
 
List getChildren()
 
  
List children</pre>
+
[[Category:Script]]
c:
 
<pre>void nodeStructureChanged(MindMapNode)
 
List getSelecteds()
 
MindMapNode getSelected()
 
void centerNode(MindMapNode)
 
</pre>
 
 
 
--[[User:Philshvarcz|Philshvarcz]] 21:33, 2 November 2009 (UTC)
 

Latest revision as of 19:08, 18 November 2018

For the Scripting API see its Javadoc documentation.

The Scripting API is in some sense extended by Freeplane's utility classes and by the Libraries included in Freeplane.

Changes to the scripting API

The Scripting API will evolve over time but Freeplane's developers will do whatever possible to keep new API versions downward compatible. On the other hand there might be changes in parts of the Freeplane code that are not part of the official API but on which some scripts might depend nevertheless. This mostly applies to the utility classes.

Changes to the API are indicated per method by version numbers in the JavaDoc of the Proxy class.