-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from sifran-github/main
Added multiple examples
- Loading branch information
Showing
7 changed files
with
96 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Attributes | ||
|
||
Set attributes: | ||
```groovy | ||
node["attribute_text"]="hello" | ||
node["attribute_num"]=123 | ||
``` | ||
|
||
Get attributes: | ||
```groovy | ||
c.statusInfo = node["attribute_text"] | ||
``` | ||
|
||
Get attributes properties: | ||
```groovy | ||
c.statusInfo = node.attributes.size() | ||
``` | ||
|
||
Clear attributes: | ||
```groovy | ||
node.attributes = [:] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## Node Style | ||
|
||
```groovy | ||
node.style.font.size = 20 | ||
node.style.font.name = "Arial" | ||
node.style.setTextColorCode("#ff0000") | ||
node.style.setBackgroundColorCode("#000000") | ||
node.style.edge.setColorCode("#00ff00") | ||
``` | ||
|
||
Result: | ||
|
||
![node style](../images/examples_node_style.png "node style") | ||
|
||
## Details & Notes Style | ||
Can't be done with attributes? only html? | ||
[Workaround](https://sourceforge.net/p/freeplane/discussion/758437/thread/08695c2617/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Text, Details, Notes | ||
|
||
How to change text and details: | ||
|
||
```groovy | ||
node.text = "node text" | ||
node.details = "node details" | ||
node.note = "node notes" | ||
``` |