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 SummaryModifier and TypeMethodDescriptionvoidcenterOnNode(Node center) voidreset undo / redo lists and deactivate Undo for current scriptvoidStarts editing node, normally in the inline editor.voideditInPopup(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)ReturnsLoaderfor accessing or loading mind map from file.ReturnsLoaderfor accessing or loading mind map from file.ReturnsLoaderfor accessing or loading mind map from URL.default MapnewMap()Deprecated.since 1.7.10 - usenewMindMap()default MapDeprecated.since 1.6.16 - usemapLoader(URL)default MapnewMapFromTemplate(File templateFile) opens a new map with a default name in the foreground.voidredo()invokes redo once - for testing purposes mainly.voidselect(Collection<? extends Node> toSelect) selects multiple Nodes.voidvoidselectBranch(Node branchRoot) selects branchRoot and all childrenvoidselectMultipleNodes(Collection<? extends Node> toSelect) same asselect(Collection)voidsetStatusInfo(String info) The main info for the status line with key="standard", use null to remove.voidsetStatusInfo(String infoPanelKey, String info) Info for status line, null to remove.voidsetStatusInfo(String infoPanelKey, String info, String iconKey) Info for status line - text and icon - null stands for "remove" (text or icon)voidsetStatusInfo(String infoPanelKey, Icon icon) Deprecated.since 1.2 - usesetStatusInfo(String, String, String)voidsetZoom(float ratio) a value of 1 means 100%.voidundo()invokes undo once - for testing purposes mainly.Methods inherited from interface org.freeplane.api.ControllerROexport, find, find, findAll, findAllDepthFirst, getExportTypeDescriptions, getFreeplaneVersion, getSelected, getSelecteds, getSortedSelection, getUserDirectory, getViewRoot, getZoom, isInteractiveMethods inherited from interface org.freeplane.api.HeadlessMapCreatorgetAttributeValueSerializer, mapLoader, script, script
- 
Method Details- 
centerOnNode
- 
editStarts editing node, normally in the inline editor. Does not block until edit has finished.- Since:
- 1.2.2
 
- 
editInPopupopens the appropriate popup text editor. Does not block until edit has finished.- Since:
- 1.2.2
 
- 
select
- 
selectselects multiple Nodes.- Since:
- 1.4
 
- 
selectBranchselects branchRoot and all children
- 
selectMultipleNodessame asselect(Collection)
- 
deactivateUndovoid deactivateUndo()reset undo / redo lists and deactivate Undo for current script
- 
undovoid undo()invokes undo once - for testing purposes mainly.- Since:
- 1.2
 
- 
redovoid redo()invokes redo once - for testing purposes mainly.- Since:
- 1.2
 
- 
setStatusInfoThe main info for the status line with key="standard", use null to remove. Removes icon if there is one.
- 
setStatusInfoInfo for status line, null to remove. Removes icon if there is one.- See Also:
 
- 
setStatusInfoInfo 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 text
- iconKey- key as those that are used for nodes (see- Icons.addIcon(String)).- println("all available icon keys: " + FreeplaneIconUtils.listStandardIconKeys()) c.setStatusInfo("standard", "hi there!", "button_ok");
- Since:
- 1.2
- See Also:
- 
- FreeplaneIconFactory
 
 
- 
setStatusInfoDeprecated.since 1.2 - usesetStatusInfo(String, String, String)
- 
loadDeprecated.since 1.7.5 - usemapLoader(File)- Specified by:
- loadin interface- HeadlessMapCreator
 
- 
loadDeprecated.since 1.7.5 - usemapLoader(URL)- Specified by:
- loadin interface- HeadlessMapCreator
 
- 
loadDeprecated.since 1.7.5 - usemapLoader(String)- Specified by:
- loadin interface- HeadlessMapCreator
 
- 
mapLoaderReturnsLoaderfor accessing or loading mind map from file.- Specified by:
- mapLoaderin interface- HeadlessMapCreator
- Since:
- 1.7.5
 
- 
mapLoaderReturnsLoaderfor accessing or loading mind map from URL.- Specified by:
- mapLoaderin interface- HeadlessMapCreator
- Since:
- 1.7.5
 
- 
mapLoaderReturnsLoaderfor accessing or loading mind map from file.- Specified by:
- mapLoaderin interface- HeadlessMapCreator
- Since:
- 1.7.5
 
- 
newMapDeprecated.since 1.7.10 - usenewMindMap()opens a new map with a default name in the foreground.- Since:
- 1.2
 
- 
newMapDeprecated.since 1.6.16 - usemapLoader(URL)- Since:
- 1.2
 
- 
newMapFromTemplate- Since:
- 1.5
 
- 
newMindMapMindMap newMindMap()opens a new map with a default name in the foreground.- Since:
- 1.7.10
 
- 
setZoomvoid setZoom(float ratio) a value of 1 means 100%.- Since:
- 1.2
 
- 
getOpenMapsDeprecated.since 1.7.10 - usegetOpenMindMaps()a list of all opened maps.- Since:
- 1.5
 
- 
getOpenMindMapsa list of all opened maps.- Since:
- 1.5
 
- 
getMainThreadExecutorServiceExecutorService getMainThreadExecutorService()- Since:
- 1.7.10
 
 
- 
getOpenMindMaps()