Scripting API

From Freeplane - free mind mapping and knowledge management software
Revision as of 07:54, 3 November 2009 by Dimitry (talk | contribs)

Dimitry 07:54, 3 November 2009 (UTC)

Please use this page to specify the methods which should be available for objects "node" and "c"

This page was started following a suggestion of Dimitry [1] in reply of a post of mine.

Its first goal is to specify Freeplane Script API which is not implemented yet. Afterwards it can serve as documentation for users with little knowledge of the internals of Freeplane so that they can port their scripts when changing from Freemind.

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.

Finally the list:

node:

int getAttributePosition(String)
String getPlainTextContent()
int getChildCount()
void setBackgroundColor(Color)
void setColor(Color)
void node.setFont(Font)
List getChildren()

List children

c:

void nodeStructureChanged(MindMapNode)
List getSelecteds()
MindMapNode getSelected()
void centerNode(MindMapNode)

--Philshvarcz 21:33, 2 November 2009 (UTC)