Difference between revisions of "Patterns"

From Freeplane - free mind mapping and knowledge management software
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
----
+
Up to Freeplane 1.1 patterns were a method to change the appearance of a mindmap node. Starting with Freeplane 1.2 pattern are replaced by the concept of [[Node styles]].
<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;">
 
----
 
=[http://ehiqikag.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 
----
 
=[http://ehiqikag.co.cc CLICK HERE]=
 
----
 
</div>
 
Patterns are a method to change the appearance of a mindmap node. Many attributes can be changed via patterns, like text and background colors, text properties, or icon assignments. And for scripting they provide the possibility to execute a script on a node.
 
  
== Edit a pattern ==
+
[[Category:Unsupported]]
 
 
Patterns can be edited with a visual editor accessible via the menu under ''Format/Patterns/Manage Patterns...''. You select the pattern to edit by clicking on the pattern name in the left pane. If you want to add a pattern select ''Add new Pattern''.
 
 
 
In the pattern editor you can, for each node attribute, decide if the pattern should affect the attribute by selecting '''[+]''' (change it), '''[-]''' (remove it, e.g. all icons) or '''[ ]''' to leave it as it was before.
 
 
 
=== Add a script ===
 
 
 
When you select the '''[+]''' at ''Script'' the button on the right gets activated. Clicking on it opens a script editor.
 
 
 
* Click on &quot;Script&quot; on the left panel.
 
* Enter a script on the right panel, e.g.
 
&lt;groovy&gt;
 
=new java.text.SimpleDateFormat(&quot;yyyy-MM-dd HH:mm&quot;).format(new Date()) + &quot;: &quot; + node.text
 
&lt;/groovy&gt;
 
 
 
This script will add the current timestamp to the node text when the pattern is added.
 
 
 
Note that the script will be executed only once on the first assignment of a pattern to a node.
 
 
 
== The future: Logical styles ==
 
 
 
Patterns are a concept that is about to be replaced by ''Logical styles'' in Freeplane version 1.2, see [http://sourceforge.net/projects/freeplane/forums/forum/758437/topic/3407624 this article in the forum]. The further role of scripts in ''Logical styles'' has to be discussed but chances are that scripts will not be supported by ''Logical styles''.
 
 
 
 
 
[[Category:Scripting]] [[Category:Advanced_Users]]
 

Latest revision as of 00:13, 19 December 2011

Up to Freeplane 1.1 patterns were a method to change the appearance of a mindmap node. Starting with Freeplane 1.2 pattern are replaced by the concept of Node styles.