public class MindMapController extends ControllerAdapter implements MindMapActions
| Modifier and Type | Class and Description |
|---|---|
protected class |
MindMapController.AssignAttributesAction |
class |
MindMapController.DefaultMindMapNodeCreator |
protected class |
MindMapController.EditLongAction |
protected class |
MindMapController.ExportBranchToHTMLAction |
protected class |
MindMapController.ExportToHTMLAction |
protected class |
MindMapController.FollowLinkAction |
static interface |
MindMapController.MindMapControllerPlugin |
static interface |
MindMapController.NewNodeCreator |
protected class |
MindMapController.SetImageByFileChooserAction |
protected class |
MindMapController.SetLinkByFileChooserAction |
ControllerAdapter.EditAttributesAction, ControllerAdapter.FileOpener, ControllerAdapter.nodesDepthComparator, ControllerAdapter.OpenAction, ControllerAdapter.SaveAction, ControllerAdapter.SaveAsActionMindMapActions.MouseWheelEventHandlerModeController.NodeLifetimeListener, ModeController.NodeSelectionListenerpopupListenerSingletonNEW_CHILD, NEW_CHILD_WITHOUT_FOCUS, NEW_SIBLING_BEFORE, NEW_SIBLING_BEHINDNODESEPARATOR| Constructor and Description |
|---|
MindMapController(Mode mode) |
| Modifier and Type | Method and Description |
|---|---|
int |
addAttribute(MindMapNode node,
Attribute pAttribute)
Inserts a new attribute at the end of the attributes table.
|
void |
addHook(MindMapNode focussed,
java.util.List selecteds,
java.lang.String hookName) |
void |
addIcon(MindMapNode node,
MindIcon icon)
This method is nice, but how to get a MindIcon ?
|
void |
addIconsToMenu(StructuredMenuHolder holder,
java.lang.String iconMenuString) |
void |
addLink(MindMapNode source,
MindMapNode target)
Source holds the MindMapArrowLinkModel and points to the id placed in target.
|
MindMapNode |
addNew(MindMapNode target,
int newNodeMode,
java.awt.event.KeyEvent e) |
MindMapNode |
addNewNode(MindMapNode parent,
int index,
boolean newNodeIsLeft)
Another variant of addNew.
|
void |
applyPattern(MindMapNode node,
freemind.controller.actions.generated.instance.Pattern pattern) |
void |
applyPattern(MindMapNode node,
java.lang.String patternName) |
void |
blendNodeColor(MindMapNode node) |
void |
changeArrowsOfArrowLink(MindMapArrowLinkModel arrowLink,
boolean hasStartArrow,
boolean hasEndArrow) |
void |
clearNodeContents(MindMapNode pNode)
Erases all content of the node as text, colors, fonts, etc.
|
java.awt.datatransfer.Transferable |
copy(MindMapNode node,
boolean saveInvisible) |
freemind.controller.actions.generated.instance.EditNoteToNodeAction |
createEditNoteToNodeAction(MindMapNode node,
java.lang.String text) |
NodeHook |
createNodeHook(java.lang.String hookName,
MindMapNode node,
MindMap map)
This is the only way to instanciate new Hooks.
|
void |
createPatternSubMenu(StructuredMenuHolder holder,
java.lang.String formatMenuString) |
XMLElement |
createXMLElement() |
java.awt.datatransfer.Transferable |
cut() |
java.awt.datatransfer.Transferable |
cut(java.util.List nodeList) |
freemind.controller.actions.generated.instance.WindowConfigurationStorage |
decorateDialog(javax.swing.JDialog dialog,
java.lang.String window_preference_storage_property) |
void |
deleteNode(MindMapNode selectedNode) |
void |
deRegisterMouseWheelEventHandler(MindMapActions.MouseWheelEventHandler handler) |
void |
deregisterPlugin(MindMapController.MindMapControllerPlugin pPlugin) |
void |
doubleClick(java.awt.event.MouseEvent e) |
void |
edit(java.awt.event.KeyEvent e,
boolean addNew,
boolean editLong)
The following modes are present:
public final int NEW_CHILD_WITHOUT_FOCUS = 1; // old model of insertion
public final int NEW_CHILD = 2;
public final int NEW_SIBLING_BEHIND = 3;
public final int NEW_SIBLING_BEFORE = 4;
see MindMapController
|
int |
editAttribute(MindMapNode pNode,
java.lang.String pName,
java.lang.String pNewValue)
If an attribute with the same name exists, its value is changed.
|
boolean |
extendSelection(java.awt.event.MouseEvent e)
This extends the currently selected nodes.
|
ActionFactory |
getActionFactory() |
AttributeController |
getAttributeController() |
AttributePopupMenu |
getAttributeTablePopupMenu() |
java.awt.datatransfer.Transferable |
getClipboardContents() |
javax.swing.filechooser.FileFilter |
getFileFilter()
You may want to implement this...
|
HookFactory |
getHookFactory() |
java.awt.Component |
getLeftToolBar()
Overwrite this, if you have one.
|
protected java.lang.String |
getLinkByFileChooser(javax.swing.filechooser.FileFilter fileFilter) |
javax.swing.JToolBar |
getModeToolBar()
Overwrite this, if you have one.
|
java.io.Reader |
getPatternReader() |
java.util.Set |
getPlugins() |
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() |
java.util.Set |
getRegisteredMouseWheelEventHandler() |
void |
increaseFontSize(MindMapNode node,
int increment) |
void |
insertNodeInto(MindMapNode newNode,
MindMapNode parent,
int index) |
void |
invokeHook(ModeControllerHook hook) |
boolean |
isUndoAction()
undo in progress?
|
void |
joinNodes(MindMapNode selectedNode,
java.util.List selectedNodes) |
void |
load(java.lang.String xmlMapContents)
Load the given map (as String) instead of the currently opened map.
|
void |
loadPatterns(java.io.Reader reader)
Creates the patterns actions (saved in array patterns),
and the pure patterns list (saved in mPatternsList).
|
void |
loadURL(java.lang.String relative)
Opens a link in
* the opened map
* another map
* another file.
|
java.lang.String |
marshall(freemind.controller.actions.generated.instance.XmlAction action) |
void |
moveNodePosition(MindMapNode node,
int parentVGap,
int hGap,
int shiftY)
Moves the node to a new position.
|
void |
moveNodes(MindMapNode selected,
java.util.List selecteds,
int direction)
moves selected and selecteds (if they are child of the same parent and adjacent)
in the direction specified (up = -1, down = 1).
|
MapAdapter |
newModel(ModeController modeController)
You _must_ implement this if you use one of the following actions:
OpenAction, NewMapAction.
|
MindMapNode |
newNode(java.lang.Object userObject,
MindMap map) |
void |
nodeChanged(MindMapNode n)
Currently, this method is called by the mapAdapter.
|
void |
nodeStyleChanged(MindMapNode node) |
void |
onSelectHook(NodeView n)
Is called when a node is selected.
|
void |
paste(MindMapNode node,
MindMapNode parent) |
void |
paste(java.awt.datatransfer.Transferable t,
MindMapNode parent) |
boolean |
paste(java.awt.datatransfer.Transferable t,
MindMapNode target,
boolean asSibling,
boolean isLeft) |
void |
plainClick(java.awt.event.MouseEvent e) |
void |
processMenuCategory(StructuredMenuHolder holder,
java.util.List list,
java.lang.String category) |
void |
registerMouseWheelEventHandler(MindMapActions.MouseWheelEventHandler handler) |
void |
registerPlugin(MindMapController.MindMapControllerPlugin pPlugin) |
void |
removeAllIcons(MindMapNode node) |
void |
removeAttribute(MindMapNode pNode,
int pPosition)
Removes the attribute at the given position
|
int |
removeLastIcon(MindMapNode node) |
void |
removeNodeFromParent(MindMapNode selectedNode) |
void |
removeReference(MindMapLink arrowLink) |
void |
repaintMap() |
static void |
saveHTML(java.util.List mindMapNodes,
java.io.Writer fileout) |
static void |
saveHTML(MindMapNodeModel rootNodeOfBranch,
java.io.File file) |
void |
select(NodeView node)
Single selection: the node is the only one selected after calling this method.
|
void |
selectBranch(NodeView selected,
boolean extend) |
void |
selectMultipleNodes(MindMapNode focussed,
java.util.Collection selecteds) |
void |
selectMultipleNodes(NodeView focussed,
java.util.Collection selecteds) |
protected void |
setAllActions(boolean enabled)
Enabled/Disabled all actions that are dependent on
whether there is a map open or not.
|
void |
setArrowLinkColor(MindMapLink arrowLink,
java.awt.Color color) |
void |
setArrowLinkEndPoints(MindMapArrowLink link,
java.awt.Point startPoint,
java.awt.Point endPoint) |
void |
setAttribute(MindMapNode pNode,
int pPosition,
Attribute pAttribute) |
void |
setBold(MindMapNode node,
boolean bolded) |
void |
setClipboardContents(java.awt.datatransfer.Transferable t) |
void |
setCloud(MindMapNode node,
boolean enable) |
void |
setCloudColor(MindMapNode node,
java.awt.Color color) |
void |
setEdgeColor(MindMapNode node,
java.awt.Color color) |
void |
setEdgeStyle(MindMapNode node,
java.lang.String style) |
void |
setEdgeWidth(MindMapNode node,
int width)
The widths range from -1 (for equal to parent) to 0 (thin), 1, 2, 4, 8.
|
void |
setFolded(MindMapNode node,
boolean folded)
The position of this method is an exception.
|
void |
setFontFamily(MindMapNode node,
java.lang.String fontFamilyValue) |
void |
setFontSize(MindMapNode node,
java.lang.String fontSizeValue) |
protected void |
setImageByFileChooser() |
void |
setItalic(MindMapNode node,
boolean isItalic) |
void |
setLink(MindMapNode node,
java.lang.String link)
Adds a textual hyperlink to a node (e.g. http:/freemind.sourceforge.net)
|
protected void |
setLinkByFileChooser() |
void |
setNewNodeCreator(MindMapController.NewNodeCreator creator) |
void |
setNodeBackgroundColor(MindMapNode node,
java.awt.Color color) |
void |
setNodeColor(MindMapNode node,
java.awt.Color color) |
void |
setNodeStyle(MindMapNode node,
java.lang.String style) |
void |
setNodeText(MindMapNode selected,
java.lang.String newText) |
void |
setNoteText(MindMapNode node,
java.lang.String text) |
void |
setToolTip(MindMapNode node,
java.lang.String key,
java.lang.String value) |
void |
shutdownController() |
void |
splitNode(MindMapNode node,
int caretPosition,
java.lang.String newText) |
void |
startupController()
This method is called after and before a change of the map module.
|
void |
storeDialogPositions(javax.swing.JDialog dialog,
freemind.controller.actions.generated.instance.WindowConfigurationStorage pStorage,
java.lang.String window_preference_storage_property) |
void |
toggleFolded()
Switches the folding state of all selected nodes.
|
freemind.controller.actions.generated.instance.XmlAction |
unMarshall(java.lang.String inputString) |
void |
updateMenus(StructuredMenuHolder holder)
Use this method to get menus to the screen.
|
freemind.controller.actions.generated.instance.MenuStructure |
updateMenusFromXml(java.io.InputStream in) |
protected void |
updateNode(MindMapNode node)
Overwrite this method to perform additional operations
to an node update.
|
_setFolded, add, add, add, addCheckBox, addRadioItem, centerNode, close, copy, copy, copySingle, createForNodesFlavor, createNodeTreeFromXml, deregisterNodeLifetimeListener, deregisterNodeSelectionListener, displayNode, displayNode, fireNodePostDeleteEvent, fireNodePreDeleteEvent, firePreSaveEvent, fireRecursiveNodeCreateEvent, getController, getFileChooser, getFileChooser, getFrame, getLastCurrentDir, getLinkShortText, getMap, getMode, getModeController, getModel, getNodeFromID, getNodeID, getNodeLifetimeListeners, getNodeView, getResource, getRootNode, getSelected, getSelecteds, getSelectedsByDepth, getSelectedView, getSelectionColor, getText, getView, handleLoadingException, insertNodeInto, invokeHooksRecursively, isBlocked, load, load, loadURL, newMap, newMap, nodeRefresh, nodeStructureChanged, onDeselectHook, onViewCreatedHook, onViewRemovedHook, open, refreshMap, refreshMapFrom, registerNodeLifetimeListener, registerNodeSelectionListener, save, save, saveAs, setBlocked, setLastCurrentDir, setMode, setModel, setVisible, showPopupMenu, sortNodesByDepth, updateMapModuleName, updatePopupMenuclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRootNode, invokeHooksRecursively, nodeRefresh, nodeStructureChangedpublic ApplyPatternAction[] patterns
public javax.swing.Action newMap
public javax.swing.Action open
public javax.swing.Action save
public javax.swing.Action saveAs
public javax.swing.Action exportToHTML
public javax.swing.Action exportBranchToHTML
public javax.swing.Action editLong
public javax.swing.Action editAttributes
protected AssignAttributeDialog assignAttributeDialog
public javax.swing.Action assignAttributes
public javax.swing.Action newSibling
public javax.swing.Action newPreviousSibling
public javax.swing.Action setLinkByFileChooser
public javax.swing.Action setImageByFileChooser
public javax.swing.Action followLink
public javax.swing.Action exportBranch
public javax.swing.Action importBranch
public javax.swing.Action importLinkedBranch
public javax.swing.Action importLinkedBranchWithoutRoot
public javax.swing.Action showAttributeManagerAction
public javax.swing.Action propertyAction
public javax.swing.Action increaseNodeFont
public javax.swing.Action decreaseNodeFont
public UndoAction undo
public RedoAction redo
public CopyAction copy
public javax.swing.Action copySingle
public CutAction cut
public PasteAction paste
public BoldAction bold
public ItalicAction italic
public UnderlinedAction underlined
public FontSizeAction fontSize
public FontFamilyAction fontFamily
public NodeColorAction nodeColor
public EditAction edit
public NewChildAction newChild
public DeleteChildAction deleteChild
public ToggleFoldedAction toggleFolded
public ToggleChildrenFoldedAction toggleChildrenFolded
public UseRichFormattingAction useRichFormatting
public UsePlainTextAction usePlainText
public NodeUpAction nodeUp
public NodeDownAction nodeDown
public EdgeColorAction edgeColor
public EdgeWidthAction EdgeWidth_WIDTH_PARENT
public EdgeWidthAction EdgeWidth_WIDTH_THIN
public EdgeWidthAction EdgeWidth_1
public EdgeWidthAction EdgeWidth_2
public EdgeWidthAction EdgeWidth_4
public EdgeWidthAction EdgeWidth_8
public EdgeWidthAction[] edgeWidths
public EdgeStyleAction EdgeStyle_linear
public EdgeStyleAction EdgeStyle_bezier
public EdgeStyleAction EdgeStyle_sharp_linear
public EdgeStyleAction EdgeStyle_sharp_bezier
public EdgeStyleAction[] edgeStyles
public NodeColorBlendAction nodeColorBlend
public NodeStyleAction fork
public NodeStyleAction bubble
public CloudAction cloud
public CloudColorAction cloudColor
public AddArrowLinkAction addArrowLinkAction
public RemoveArrowLinkAction removeArrowLinkAction
public ColorArrowLinkAction colorArrowLinkAction
public ChangeArrowsInArrowLinkAction changeArrowsInArrowLinkAction
public NodeBackgroundColorAction nodeBackgroundColor
public NodeBackgroundColorAction.RemoveNodeBackgroundColorAction removeNodeBackgroundColor
public IconAction unknownIconAction
public RemoveIconAction removeLastIconAction
public RemoveAllIconsAction removeAllIconsAction
public SetLinkByTextFieldAction setLinkByTextField
public AddLocalLinkAction addLocalLinkAction
public GotoLinkNodeAction gotoLinkNodeAction
public JoinNodesAction joinNodes
public MoveNodeAction moveNodeAction
public ImportExplorerFavoritesAction importExplorerFavorites
public ImportFolderStructureAction importFolderStructure
public ChangeArrowLinkEndPoints changeArrowLinkEndPoints
public FindAction find
public FindAction.FindNextAction findNext
public NodeHookAction nodeHookAction
public RevertAction revertAction
public SelectBranchAction selectBranchAction
public SelectAllAction selectAllAction
public java.util.Vector iconActions
public NodeHookUndoableContentActor undoableHookContentActor
public MindMapController(Mode mode)
public java.io.Reader getPatternReader()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOExceptionpublic boolean isUndoAction()
MindMapActionsisUndoAction in interface MindMapActionspublic void load(java.lang.String xmlMapContents)
MindMapActionsload in interface MindMapActionspublic void loadPatterns(java.io.Reader reader)
throws java.lang.Exception
java.lang.Exceptionpublic void startupController()
startupController in interface ModeControllerstartupController in class ControllerAdapterpublic void shutdownController()
shutdownController in interface ModeControllershutdownController in class ControllerAdapterpublic MapAdapter newModel(ModeController modeController)
ControllerAdapternewModel in class ControllerAdaptermodeController - TODOpublic javax.swing.filechooser.FileFilter getFileFilter()
ControllerAdaptergetFileFilter in class ControllerAdapterpublic void nodeChanged(MindMapNode n)
ControllerAdapternodeChanged in interface MindMapActionsnodeChanged in interface ModeControllernodeChanged in class ControllerAdapterpublic void onSelectHook(NodeView n)
ModeControlleronSelectHook in interface ModeControlleronSelectHook in class ControllerAdapterpublic void setNewNodeCreator(MindMapController.NewNodeCreator creator)
public MindMapNode newNode(java.lang.Object userObject, MindMap map)
newNode in class ControllerAdapterpublic void updateMenus(StructuredMenuHolder holder)
ModeControllerupdateMenus in interface ModeControllerpublic void addIconsToMenu(StructuredMenuHolder holder, java.lang.String iconMenuString)
public void createPatternSubMenu(StructuredMenuHolder holder, java.lang.String formatMenuString)
public freemind.controller.actions.generated.instance.MenuStructure updateMenusFromXml(java.io.InputStream in)
public void processMenuCategory(StructuredMenuHolder holder, java.util.List list, java.lang.String category)
public javax.swing.JPopupMenu getPopupMenu()
getPopupMenu in interface ModeControllerpublic javax.swing.JPopupMenu getPopupForModel(java.lang.Object obj)
getPopupForModel in interface ModeControllergetPopupForModel in class ControllerAdapterpublic javax.swing.JToolBar getModeToolBar()
ControllerAdaptergetModeToolBar in interface ModeControllergetModeToolBar in class ControllerAdapterpublic java.awt.Component getLeftToolBar()
ControllerAdaptergetLeftToolBar in interface ModeControllergetLeftToolBar in class ControllerAdapterprotected void setAllActions(boolean enabled)
setAllActions in class ControllerAdapterpublic void setBold(MindMapNode node, boolean bolded)
setBold in interface MindMapActionspublic void setItalic(MindMapNode node, boolean isItalic)
setItalic in interface MindMapActionspublic void setCloud(MindMapNode node, boolean enable)
setCloud in interface MindMapActionspublic void setCloudColor(MindMapNode node, java.awt.Color color)
setCloudColor in interface MindMapActionspublic void setFontSize(MindMapNode node, java.lang.String fontSizeValue)
setFontSize in interface MindMapActionspublic void increaseFontSize(MindMapNode node, int increment)
increaseFontSize in interface MindMapActionspublic void setFontFamily(MindMapNode node, java.lang.String fontFamilyValue)
setFontFamily in interface MindMapActionspublic void setNodeColor(MindMapNode node, java.awt.Color color)
setNodeColor in interface MindMapActionspublic void setNodeBackgroundColor(MindMapNode node, java.awt.Color color)
setNodeBackgroundColor in interface MindMapActionspublic void blendNodeColor(MindMapNode node)
blendNodeColor in interface MindMapActionspublic void setEdgeColor(MindMapNode node, java.awt.Color color)
setEdgeColor in interface MindMapActionspublic void applyPattern(MindMapNode node, java.lang.String patternName)
applyPattern in interface MindMapActionspatternName - is one of the names. They can be received using
the patterns list of ApplyPatternActions from the MindMapController. Each action
has a getPattern() method and the pattern has a getName() method ...public void applyPattern(MindMapNode node, freemind.controller.actions.generated.instance.Pattern pattern)
applyPattern in interface MindMapActionspublic void addIcon(MindMapNode node, MindIcon icon)
MindMapActionsaddIcon in interface MindMapActionspublic void removeAllIcons(MindMapNode node)
removeAllIcons in interface MindMapActionspublic int removeLastIcon(MindMapNode node)
removeLastIcon in interface MindMapActionspublic void addLink(MindMapNode source, MindMapNode target)
MindMapActionsaddLink in interface MindMapActionspublic void removeReference(MindMapLink arrowLink)
removeReference in interface MindMapActionspublic void setArrowLinkColor(MindMapLink arrowLink, java.awt.Color color)
setArrowLinkColor in interface MindMapActionspublic void changeArrowsOfArrowLink(MindMapArrowLinkModel arrowLink, boolean hasStartArrow, boolean hasEndArrow)
changeArrowsOfArrowLink in interface MindMapActionspublic void setArrowLinkEndPoints(MindMapArrowLink link, java.awt.Point startPoint, java.awt.Point endPoint)
setArrowLinkEndPoints in interface MindMapActionspublic void setLink(MindMapNode node, java.lang.String link)
MindMapActionssetLink in interface MindMapActionspublic void setToolTip(MindMapNode node, java.lang.String key, java.lang.String value)
setToolTip in interface MindMapActionskey - key value patterns is used to ensure, that more than one tooltip can be displayed.value - null if you want to delete this tooltip.public void edit(java.awt.event.KeyEvent e,
boolean addNew,
boolean editLong)
MindMapActionsedit in interface MindMapActionspublic void setNodeText(MindMapNode selected, java.lang.String newText)
setNodeText in interface MindMapActionspublic void setEdgeWidth(MindMapNode node, int width)
MindMapActionssetEdgeWidth in interface MindMapActionspublic void setEdgeStyle(MindMapNode node, java.lang.String style)
setEdgeStyle in interface MindMapActionspublic void setNodeStyle(MindMapNode node, java.lang.String style)
setNodeStyle in interface MindMapActionspublic java.awt.datatransfer.Transferable copy(MindMapNode node, boolean saveInvisible)
copy in interface ModeControllercopy in class ControllerAdapterpublic java.awt.datatransfer.Transferable cut()
cut in interface MindMapActionspublic java.awt.datatransfer.Transferable cut(java.util.List nodeList)
cut in interface MindMapActionsnodeList - a list of MindMapNode elementspublic void paste(java.awt.datatransfer.Transferable t,
MindMapNode parent)
paste in interface MindMapActionspublic boolean paste(java.awt.datatransfer.Transferable t,
MindMapNode target,
boolean asSibling,
boolean isLeft)
paste in interface MindMapActionsisLeft - determines, whether or not the node is placed on the left or right.public void paste(MindMapNode node, MindMapNode parent)
paste in interface MindMapActionspublic MindMapNode addNew(MindMapNode target, int newNodeMode, java.awt.event.KeyEvent e)
addNew in interface MindMapActionspublic MindMapNode addNewNode(MindMapNode parent, int index, boolean newNodeIsLeft)
MindMapActionsaddNewNode in interface MindMapActionsnewNodeIsLeft - here, normally parent.isLeft() or null is used.public void deleteNode(MindMapNode selectedNode)
deleteNode in interface MindMapActionspublic void toggleFolded()
MindMapActionstoggleFolded in interface MindMapActionspublic void setFolded(MindMapNode node, boolean folded)
ModeControllersetFolded in interface MindMapActionssetFolded in interface ModeControllerpublic void moveNodes(MindMapNode selected, java.util.List selecteds, int direction)
MindMapActionsmoveNodes in interface MindMapActionspublic void joinNodes(MindMapNode selectedNode, java.util.List selectedNodes)
joinNodes in interface MindMapActionsprotected void setLinkByFileChooser()
protected void setImageByFileChooser()
protected java.lang.String getLinkByFileChooser(javax.swing.filechooser.FileFilter fileFilter)
public void loadURL(java.lang.String relative)
ModeControllerloadURL in interface ModeControllerloadURL in class ControllerAdapterpublic void addHook(MindMapNode focussed, java.util.List selecteds, java.lang.String hookName)
addHook in interface MindMapActionspublic void moveNodePosition(MindMapNode node, int parentVGap, int hGap, int shiftY)
MindMapActionsmoveNodePosition in interface MindMapActionspublic void plainClick(java.awt.event.MouseEvent e)
plainClick in interface ModeControllerpublic HookFactory getHookFactory()
getHookFactory in interface ModeControllerpublic NodeHook createNodeHook(java.lang.String hookName, MindMapNode node, MindMap map)
MindMapActionscreateNodeHook in interface MindMapActionsmap - may be null if not known. But it has to be set afterwards!public void invokeHook(ModeControllerHook hook)
invokeHook in interface MindMapActionspublic ActionFactory getActionFactory()
getActionFactory in interface MindMapActionspublic static void saveHTML(MindMapNodeModel rootNodeOfBranch, java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic static void saveHTML(java.util.List mindMapNodes,
java.io.Writer fileout)
throws java.io.IOException
java.io.IOExceptionpublic void splitNode(MindMapNode node, int caretPosition, java.lang.String newText)
splitNode in interface MindMapActionsprotected void updateNode(MindMapNode node)
ControllerAdapterupdateNode in class ControllerAdapterpublic void doubleClick(java.awt.event.MouseEvent e)
doubleClick in interface ModeControllerpublic void select(NodeView node)
ModeControllerselect in interface ModeControllerselect in class ControllerAdapterpublic void selectMultipleNodes(NodeView focussed, java.util.Collection selecteds)
public void selectMultipleNodes(MindMapNode focussed, java.util.Collection selecteds)
public void selectBranch(NodeView selected, boolean extend)
public boolean extendSelection(java.awt.event.MouseEvent e)
ModeControllerextendSelection in interface ModeControllerpublic void registerMouseWheelEventHandler(MindMapActions.MouseWheelEventHandler handler)
registerMouseWheelEventHandler in interface MindMapActionspublic void deRegisterMouseWheelEventHandler(MindMapActions.MouseWheelEventHandler handler)
deRegisterMouseWheelEventHandler in interface MindMapActionspublic java.util.Set getRegisteredMouseWheelEventHandler()
getRegisteredMouseWheelEventHandler in class ControllerAdapterpublic java.lang.String marshall(freemind.controller.actions.generated.instance.XmlAction action)
marshall in interface MindMapActionspublic freemind.controller.actions.generated.instance.XmlAction unMarshall(java.lang.String inputString)
unMarshall in interface MindMapActionspublic void storeDialogPositions(javax.swing.JDialog dialog,
freemind.controller.actions.generated.instance.WindowConfigurationStorage pStorage,
java.lang.String window_preference_storage_property)
public freemind.controller.actions.generated.instance.WindowConfigurationStorage decorateDialog(javax.swing.JDialog dialog,
java.lang.String window_preference_storage_property)
public AttributeController getAttributeController()
getAttributeController in interface ModeControllergetAttributeController in class ControllerAdapterpublic AttributePopupMenu getAttributeTablePopupMenu()
public XMLElement createXMLElement()
createXMLElement in class ControllerAdapterpublic void setAttribute(MindMapNode pNode, int pPosition, Attribute pAttribute)
setAttribute in interface MindMapActionspublic void removeAttribute(MindMapNode pNode, int pPosition)
MindMapActionsremoveAttribute in interface MindMapActionspPosition - the position to delete.public int addAttribute(MindMapNode node, Attribute pAttribute)
MindMapActionsaddAttribute in interface MindMapActionsnode - to which the attribute is addedpAttribute - itselfpublic int editAttribute(MindMapNode pNode, java.lang.String pName, java.lang.String pNewValue)
MindMapActionseditAttribute in interface MindMapActionspNode - to which the attribute is associatedpName - the name of the attributepNewValue - its new valuepublic void insertNodeInto(MindMapNode newNode, MindMapNode parent, int index)
insertNodeInto in class ControllerAdapterpublic void removeNodeFromParent(MindMapNode selectedNode)
public void nodeStyleChanged(MindMapNode node)
public void repaintMap()
public void clearNodeContents(MindMapNode pNode)
MindMapActionsclearNodeContents in interface MindMapActionspublic freemind.controller.actions.generated.instance.EditNoteToNodeAction createEditNoteToNodeAction(MindMapNode node, java.lang.String text)
public void setNoteText(MindMapNode node, java.lang.String text)
setNoteText in interface MindMapActionspublic void registerPlugin(MindMapController.MindMapControllerPlugin pPlugin)
public void deregisterPlugin(MindMapController.MindMapControllerPlugin pPlugin)
public java.util.Set getPlugins()
public java.awt.datatransfer.Transferable getClipboardContents()
public void setClipboardContents(java.awt.datatransfer.Transferable t)