Scripting

From FreeMind

Jump to: navigation, search
(remove "FreeMind 0.9.0: The New Features" from prominence; it remains in "See also")
(Examples: use gerunds for actions)
Line 20: Line 20:
Some example scripts:
Some example scripts:
-
* Set a new text of a node: <code>=12 * 14</code> (A little trick: scripts starting with "=" replace the text of a node with their results.)
+
* Setting a new text of a node: <code>=12 * 14</code> (A little trick: scripts starting with "=" replace the text of a node with their results.)
-
* Change the text of a node: <code>c.setNodeText(node, node.getText() + " - appended text")</code>
+
* Changing the text of a node: <code>c.setNodeText(node, node.getText() + " - appended text")</code>
-
* Set the text color of a node: <code>c.setNodeColor(node, java.awt.Color.RED)</code>
+
* Setting the text color of a node: <code>c.setNodeColor(node, java.awt.Color.RED)</code>
-
* Set the background color of a node: <code>c.setNodeBackgroundColor(node, java.awt.Color.YELLOW)</code>
+
* Setting the background color of a node: <code>c.setNodeBackgroundColor(node, java.awt.Color.YELLOW)</code>
See also [[Example scripts]].
See also [[Example scripts]].

Revision as of 10:57, 23 August 2010

Personal tools