Package org.freeplane.api
Interface Controller
- All Superinterfaces:
ControllerRO
,HeadlessMapCreator
- All Known Subinterfaces:
Proxy.Controller
Access to global state: in scripts, this is available as global variable
c
- read-write.-
Method Summary
Modifier and TypeMethodDescriptionvoid
centerOnNode
(Node center) void
reset undo / redo lists and deactivate Undo for current scriptvoid
Starts editing node, normally in the inline editor.void
editInPopup
(Node node) opens the appropriate popup text editor.Deprecated.a list of all opened maps.Deprecated.since 1.7.5 - usemapLoader(File)
Deprecated.since 1.7.5 - usemapLoader(String)
Deprecated.since 1.7.5 - usemapLoader(URL)
ReturnsLoader
for accessing or loading mind map from file.ReturnsLoader
for accessing or loading mind map from file.ReturnsLoader
for accessing or loading mind map from URL.default Map
newMap()
Deprecated.since 1.7.10 - usenewMindMap()
default Map
Deprecated.since 1.6.16 - usemapLoader(URL)
default Map
newMapFromTemplate
(File templateFile) opens a new map with a default name in the foreground.void
redo()
invokes redo once - for testing purposes mainly.void
select
(Collection<? extends Node> toSelect) selects multiple Nodes.void
void
selectBranch
(Node branchRoot) selects branchRoot and all childrenvoid
selectMultipleNodes
(Collection<? extends Node> toSelect) same asselect(Collection)
void
setStatusInfo
(String info) The main info for the status line with key="standard", use null to remove.void
setStatusInfo
(String infoPanelKey, String info) Info for status line, null to remove.void
setStatusInfo
(String infoPanelKey, String info, String iconKey) Info for status line - text and icon - null stands for "remove" (text or icon)void
setStatusInfo
(String infoPanelKey, Icon icon) Deprecated.since 1.2 - usesetStatusInfo(String, String, String)
void
setZoom
(float ratio) a value of 1 means 100%.void
undo()
invokes undo once - for testing purposes mainly.Methods inherited from interface org.freeplane.api.ControllerRO
export, find, find, findAll, findAllDepthFirst, getExportTypeDescriptions, getFreeplaneVersion, getSelected, getSelecteds, getSortedSelection, getUserDirectory, getViewRoot, getZoom, isInteractive
Methods inherited from interface org.freeplane.api.HeadlessMapCreator
getAttributeValueSerializer, mapLoader, script, script
-
Method Details
-
centerOnNode
-
edit
Starts editing node, normally in the inline editor. Does not block until edit has finished.- Since:
- 1.2.2
-
editInPopup
opens the appropriate popup text editor. Does not block until edit has finished.- Since:
- 1.2.2
-
select
-
select
selects multiple Nodes.- Since:
- 1.4
-
selectBranch
selects branchRoot and all children -
selectMultipleNodes
same asselect(Collection)
-
deactivateUndo
void deactivateUndo()reset undo / redo lists and deactivate Undo for current script -
undo
void undo()invokes undo once - for testing purposes mainly.- Since:
- 1.2
-
redo
void redo()invokes redo once - for testing purposes mainly.- Since:
- 1.2
-
setStatusInfo
The main info for the status line with key="standard", use null to remove. Removes icon if there is one. -
setStatusInfo
Info for status line, null to remove. Removes icon if there is one.- See Also:
-
setStatusInfo
Info for status line - text and icon - null stands for "remove" (text or icon)- Parameters:
infoPanelKey
- "standard" is the left most standard info panel. If a panel with this name doesn't exist it will be created.info
- Info texticonKey
- key as those that are used for nodes (seeIcons.addIcon(String)
).println("all available icon keys: " + FreeplaneIconUtils.listStandardIconKeys()) c.setStatusInfo("standard", "hi there!", "button_ok");
- Since:
- 1.2
- See Also:
-
setStatusInfo
Deprecated.since 1.2 - usesetStatusInfo(String, String, String)
-
load
Deprecated.since 1.7.5 - usemapLoader(File)
- Specified by:
load
in interfaceHeadlessMapCreator
-
load
Deprecated.since 1.7.5 - usemapLoader(URL)
- Specified by:
load
in interfaceHeadlessMapCreator
-
load
Deprecated.since 1.7.5 - usemapLoader(String)
- Specified by:
load
in interfaceHeadlessMapCreator
-
mapLoader
ReturnsLoader
for accessing or loading mind map from file.- Specified by:
mapLoader
in interfaceHeadlessMapCreator
- Since:
- 1.7.5
-
mapLoader
ReturnsLoader
for accessing or loading mind map from URL.- Specified by:
mapLoader
in interfaceHeadlessMapCreator
- Since:
- 1.7.5
-
mapLoader
ReturnsLoader
for accessing or loading mind map from file.- Specified by:
mapLoader
in interfaceHeadlessMapCreator
- Since:
- 1.7.5
-
newMap
Deprecated.since 1.7.10 - usenewMindMap()
opens a new map with a default name in the foreground.- Since:
- 1.2
-
newMap
Deprecated.since 1.6.16 - usemapLoader(URL)
- Since:
- 1.2
-
newMapFromTemplate
- Since:
- 1.5
-
newMindMap
MindMap newMindMap()opens a new map with a default name in the foreground.- Since:
- 1.7.10
-
setZoom
void setZoom(float ratio) a value of 1 means 100%.- Since:
- 1.2
-
getOpenMaps
Deprecated.since 1.7.10 - usegetOpenMindMaps()
a list of all opened maps.- Since:
- 1.5
-
getOpenMindMaps
a list of all opened maps.- Since:
- 1.5
-
getMainThreadExecutorService
ExecutorService getMainThreadExecutorService()- Since:
- 1.7.10
-
getOpenMindMaps()