freemind.modes.mindmapmode
Class MindMapController

java.lang.Object
  extended byfreemind.modes.ControllerAdapter
      extended byfreemind.modes.mindmapmode.MindMapController
All Implemented Interfaces:
MindMapActions, ModeController

public class MindMapController
extends ControllerAdapter


Nested Class Summary
 class MindMapController.DefaultMindMapNodeCreator
           
protected  class MindMapController.ExportBranchToHTMLAction
           
protected  class MindMapController.ExportToHTMLAction
           
static interface MindMapController.NewNodeCreator
           
 
Nested classes inherited from class freemind.modes.ControllerAdapter
ControllerAdapter.EditLongAction, ControllerAdapter.FileOpener, ControllerAdapter.ModeControllerHookAction, ControllerAdapter.nodesDepthComparator, ControllerAdapter.OpenAction, ControllerAdapter.SaveAction, ControllerAdapter.SaveAsAction, ControllerAdapter.SetImageByFileChooserAction, ControllerAdapter.SetLinkByFileChooserAction
 
Nested classes inherited from class freemind.modes.ModeController
ModeController.MouseWheelEventHandler
 
Field Summary
 javax.swing.Action decreaseNodeFont
           
 javax.swing.Action editLong
           
 javax.swing.Action exportBranch
           
 javax.swing.Action exportBranchToHTML
           
 javax.swing.Action exportToHTML
           
 javax.swing.Action followLink
           
 java.util.Vector iconActions
           
 javax.swing.Action importBranch
           
 javax.swing.Action importLinkedBranch
           
 javax.swing.Action importLinkedBranchWithoutRoot
           
 javax.swing.Action increaseNodeFont
           
 javax.swing.Action newMap
           
 javax.swing.Action newPreviousSibling
           
 javax.swing.Action newSibling
           
 javax.swing.Action open
           
 javax.swing.Action save
           
 javax.swing.Action saveAs
           
 javax.swing.Action setImageByFileChooser
           
 javax.swing.Action setLinkByFileChooser
           
 
Fields inherited from class freemind.modes.ControllerAdapter
addArrowLinkAction, addLocalLinkAction, bold, bubble, changeArrowLinkEndPoints, changeArrowsInArrowLinkAction, cloud, cloudColor, colorArrowLinkAction, copy, copySingle, cut, deleteChild, edgeColor, EdgeStyle_bezier, EdgeStyle_linear, EdgeStyle_sharp_bezier, EdgeStyle_sharp_linear, edgeStyles, EdgeWidth_1, EdgeWidth_2, EdgeWidth_4, EdgeWidth_8, EdgeWidth_WIDTH_PARENT, EdgeWidth_WIDTH_THIN, edgeWidths, edit, find, findNext, fontFamily, fontSize, fork, gotoLinkNodeAction, importExplorerFavorites, importFolderStructure, italic, joinNodes, moveNodeAction, NEW_CHILD, NEW_CHILD_WITHOUT_FOCUS, NEW_SIBLING_BEFORE, NEW_SIBLING_BEHIND, newChild, nodeBackgroundColor, nodeColor, nodeColorBlend, nodeDown, nodeHookAction, nodeUp, paste, patterns, popupListenerSingleton, redo, removeAllIconsAction, removeArrowLinkAction, removeLastIconAction, removeNodeBackgroundColor, revertAction, selectAllAction, selectBranchAction, setLinkByTextField, toggleChildrenFolded, toggleFolded, underlined, undo, unknwonIconAction
 
Constructor Summary
MindMapController(Mode mode)
           
 
Method Summary
 void addIconsToMenu(StructuredMenuHolder holder, java.lang.String iconMenuString)
           
 void anotherNodeSelected(MindMapNode n)
           
 javax.swing.JMenu createPatternSubMenu(StructuredMenuHolder holder, java.lang.String formatMenuString)
           
 javax.swing.filechooser.FileFilter getFileFilter()
          You may want to implement this...
 javax.swing.JPopupMenu getPopupForModel(java.lang.Object obj)
          Link implementation: If this is a link, we want to make a popup with at least removelink available.
 javax.swing.JPopupMenu getPopupMenu()
           
 MapAdapter newModel()
          You _must_ implement this if you use one of the following actions: OpenAction, NewMapAction.
 MindMapNode newNode(java.lang.Object userObject)
           
 void nodeChanged(MindMapNode n)
          Currently, this method is called by the mapAdapter.
 void processMenuCategory(StructuredMenuHolder holder, java.util.List list, java.lang.String category)
           
protected  void setAllActions(boolean enabled)
          Enabled/Disabled all actions that are dependent on whether there is a map open or not.
 void setNewNodeCreator(MindMapController.NewNodeCreator creator)
           
 void shutdownController()
           
 void startupController()
          This method is called after and before a change of the map module.
 void updateMenus(StructuredMenuHolder holder)
          Use this method to get menus to the screen.
 MenuStructure updateMenusFromXml(java.io.InputStream in)
           
 
Methods inherited from class freemind.modes.ControllerAdapter
add, add, add, addCheckBox, addHook, addIcon, addLink, addNew, addNewNode, applyPattern, applyPattern, binOptionIsTrue, blendNodeColor, centerNode, changeArrowsOfArrowLink, close, createNodeHook, cut, cut, deleteNode, deRegisterMouseWheelEventHandler, displayNode, doubleClick, edit, extendSelection, getActionFactory, getActionXmlFactory, getClipboard, getController, getFrame, getLinkByFileChooser, getLinkShortText, getMap, getMapModule, getMode, getModeController, getModel, getNodeFromID, getNodeID, getResource, getRootNode, getSelected, getSelecteds, getSelectedsByDepth, getSelectionColor, getText, getView, handleLoadingException, increaseFontSize, invokeHook, invokeHooksRecursively, isBlocked, isUndoAction, joinNodes, load, load, loadURL, loadURL, marshall, mouseWheelMoved, moveNodePosition, moveNodes, newMap, newMap, newNode, nodeRefresh, nodeStructureChanged, open, paste, paste, paste, plainClick, registerMouseWheelEventHandler, removeAllIcons, removeLastIcon, removeReference, save, save, saveAs, select, select, selectBranch, selectMultipleNodes, setArrowLinkColor, setArrowLinkEndPoints, setBlocked, setBold, setCloud, setCloudColor, setEdgeColor, setEdgeStyle, setEdgeWidth, setFolded, setFontFamily, setFontSize, setImageByFileChooser, setItalic, setLink, setLinkByFileChooser, setMode, setNodeBackgroundColor, setNodeColor, setNodeStyle, setNodeText, setToolTip, setVisible, showPopupMenu, sortNodesByDepth, splitNode, toggleFolded, unMarshall, updateMapModuleName, updatePopupMenu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newMap

public javax.swing.Action newMap

open

public javax.swing.Action open

save

public javax.swing.Action save

saveAs

public javax.swing.Action saveAs

exportToHTML

public javax.swing.Action exportToHTML

exportBranchToHTML

public javax.swing.Action exportBranchToHTML

editLong

public javax.swing.Action editLong

newSibling

public javax.swing.Action newSibling

newPreviousSibling

public javax.swing.Action newPreviousSibling

setLinkByFileChooser

public javax.swing.Action setLinkByFileChooser

setImageByFileChooser

public javax.swing.Action setImageByFileChooser

followLink

public javax.swing.Action followLink

exportBranch

public javax.swing.Action exportBranch

importBranch

public javax.swing.Action importBranch

importLinkedBranch

public javax.swing.Action importLinkedBranch

importLinkedBranchWithoutRoot

public javax.swing.Action importLinkedBranchWithoutRoot

increaseNodeFont

public javax.swing.Action increaseNodeFont

decreaseNodeFont

public javax.swing.Action decreaseNodeFont

iconActions

public java.util.Vector iconActions
Constructor Detail

MindMapController

public MindMapController(Mode mode)
Method Detail

startupController

public void startupController()
This method is called after and before a change of the map module. Use it to perform the actions that cannot be performed at creation time.

Specified by:
startupController in interface ModeController
Overrides:
startupController in class ControllerAdapter

shutdownController

public void shutdownController()
Specified by:
shutdownController in interface ModeController
Overrides:
shutdownController in class ControllerAdapter

newModel

public MapAdapter newModel()
Description copied from class: ControllerAdapter
You _must_ implement this if you use one of the following actions: OpenAction, NewMapAction.

Overrides:
newModel in class ControllerAdapter

getFileFilter

public javax.swing.filechooser.FileFilter getFileFilter()
Description copied from class: ControllerAdapter
You may want to implement this... It returns the FileFilter that is used by the open() and save() JFileChoosers.

Overrides:
getFileFilter in class ControllerAdapter

nodeChanged

public void nodeChanged(MindMapNode n)
Description copied from class: ControllerAdapter
Currently, this method is called by the mapAdapter. This is buggy, and is to be changed.

Specified by:
nodeChanged in interface ModeController
Overrides:
nodeChanged in class ControllerAdapter

anotherNodeSelected

public void anotherNodeSelected(MindMapNode n)
Specified by:
anotherNodeSelected in interface ModeController
Overrides:
anotherNodeSelected in class ControllerAdapter

setNewNodeCreator

public void setNewNodeCreator(MindMapController.NewNodeCreator creator)

newNode

public MindMapNode newNode(java.lang.Object userObject)
Specified by:
newNode in interface ModeController
Specified by:
newNode in class ControllerAdapter

updateMenus

public void updateMenus(StructuredMenuHolder holder)
Description copied from interface: ModeController
Use this method to get menus to the screen.

Parameters:
holder -

addIconsToMenu

public void addIconsToMenu(StructuredMenuHolder holder,
                           java.lang.String iconMenuString)

createPatternSubMenu

public javax.swing.JMenu createPatternSubMenu(StructuredMenuHolder holder,
                                              java.lang.String formatMenuString)
Parameters:
holder -
formatMenuString -

updateMenusFromXml

public MenuStructure updateMenusFromXml(java.io.InputStream in)

processMenuCategory

public void processMenuCategory(StructuredMenuHolder holder,
                                java.util.List list,
                                java.lang.String category)

getPopupMenu

public javax.swing.JPopupMenu getPopupMenu()

getPopupForModel

public javax.swing.JPopupMenu getPopupForModel(java.lang.Object obj)
Link implementation: If this is a link, we want to make a popup with at least removelink available.

Specified by:
getPopupForModel in interface ModeController
Overrides:
getPopupForModel in class ControllerAdapter

setAllActions

protected void setAllActions(boolean enabled)
Enabled/Disabled all actions that are dependent on whether there is a map open or not.

Overrides:
setAllActions in class ControllerAdapter