public class Controller extends java.lang.Object implements MapModuleManager.MapModuleChangeObserver
Modifier and Type | Class and Description |
---|---|
static class |
Controller.CloseAction
This closes only the current map
|
static interface |
Controller.LocalLinkConverter |
class |
Controller.OptionAntialiasAction |
class |
Controller.PropertyAction |
protected class |
Controller.ShowSelectionAsRectangleAction |
protected class |
Controller.ZoomInAction |
protected class |
Controller.ZoomOutAction |
Modifier and Type | Field and Description |
---|---|
javax.swing.Action |
about |
Controller.CloseAction |
close |
javax.swing.Action |
documentation |
javax.swing.Action |
faq |
freemind.controller.Controller.OpenURLAction |
freemindUrl |
javax.swing.Action |
hideAllAttributes |
static java.lang.String |
JAVA_VERSION |
javax.swing.Action |
keyDocumentation |
javax.swing.Action |
license |
static Controller.LocalLinkConverter |
localDocumentationLinkConverter
Used for MAC!!!
|
javax.swing.Action |
moveToRoot |
javax.swing.Action |
navigationMoveMapLeftAction |
javax.swing.Action |
navigationMoveMapRightAction |
javax.swing.Action |
navigationNextMap |
javax.swing.Action |
navigationPreviousMap |
Controller.OptionAntialiasAction |
optionAntialiasAction |
javax.swing.Action |
optionHTMLExportFoldingAction |
javax.swing.Action |
optionSelectionMechanismAction |
javax.swing.Action |
page |
javax.swing.Action |
print |
javax.swing.Action |
printDirect |
javax.swing.Action |
printPreview |
Controller.PropertyAction |
propertyAction |
javax.swing.Action |
quit |
javax.swing.Action |
showAllAttributes |
javax.swing.Action |
showAttributeManagerAction |
javax.swing.Action |
showFilterToolbarAction |
javax.swing.Action |
showSelectedAttributes |
javax.swing.Action |
showSelectionAsRectangle |
javax.swing.Action |
toggleLeftToolbar |
javax.swing.Action |
toggleMenubar |
javax.swing.Action |
toggleToolbar |
javax.swing.Action |
webDocu |
javax.swing.Action |
zoomIn |
javax.swing.Action |
zoomOut |
Constructor and Description |
---|
Controller(FreeMindMain frame) |
Modifier and Type | Method and Description |
---|---|
static void |
addPropertyChangeListener(FreemindPropertyListener listener) |
static void |
addPropertyChangeListenerAndPropagate(FreemindPropertyListener listener) |
void |
addTabbedPane(javax.swing.JTabbedPane pTabbedPane) |
void |
afterMapClose(MapModule pOldMapModule,
Mode pOldMode) |
void |
afterMapModuleChange(MapModule oldMapModule,
Mode oldMode,
MapModule newMapModule,
Mode newMode) |
void |
beforeMapModuleChange(MapModule oldMapModule,
Mode oldMode,
MapModule newMapModule,
Mode newMode) |
protected void |
changeZoomValueProperty(float zoomValue) |
void |
close(boolean force)
Closes the actual map.
|
boolean |
createNewMode(java.lang.String mode)
Creates a new mode (controller), activates the toolbars, title and
deactivates all actions.
|
void |
deregisterMapTitleChangeListener(MapModuleManager.MapTitleChangeListener pMapTitleChangeListener) |
void |
deregisterMapTitleContributor(MapModuleManager.MapTitleContributor pMapTitleContributor) |
void |
deregisterZoomListener(ZoomListener pZoomListener) |
void |
errorMessage(java.lang.Object message) |
void |
errorMessage(java.lang.Object message,
javax.swing.JComponent component) |
static javax.swing.JColorChooser |
getCommonJColorChooser()
Static JColorChooser to have the recent colors feature.
|
java.awt.Font |
getDefaultFont() |
java.lang.String |
getDefaultFontFamilyName() |
int |
getDefaultFontSize() |
int |
getDefaultFontStyle() |
FilterController |
getFilterController() |
java.awt.Font |
getFontThroughMap(java.awt.Font font) |
FreeMindMain |
getFrame() |
int |
getIntProperty(java.lang.String property,
int defaultValue) |
javax.swing.JFrame |
getJFrame() |
LastOpenedList |
getLastOpenedList() |
MindMap |
getMap() |
MapModule |
getMapModule() |
MapModuleManager |
getMapModuleManager() |
MapMouseMotionListener |
getMapMouseMotionListener() |
MapMouseWheelListener |
getMapMouseWheelListener() |
Mode |
getMode() |
ModeController |
getModeController() |
MindMap |
getModel()
Returns the current model
|
NodeDragListener |
getNodeDragListener() |
NodeDropListener |
getNodeDropListener() |
NodeKeyListener |
getNodeKeyListener() |
NodeMotionListener |
getNodeMotionListener() |
NodeMouseMotionListener |
getNodeMouseMotionListener() |
java.awt.print.PageFormat |
getPageFormat() |
java.lang.String |
getProperty(java.lang.String property) |
static java.util.Collection |
getPropertyChangeListeners() |
java.net.URL |
getResource(java.lang.String resource) |
java.lang.String |
getResourceString(java.lang.String resource) |
javax.swing.JToolBar |
getToolbar() |
MapView |
getView() |
java.lang.String[] |
getZooms() |
void |
informationMessage(java.lang.Object message) |
void |
informationMessage(java.lang.Object message,
javax.swing.JComponent component) |
void |
init() |
void |
initialization()
Does basic initializations of this class.
|
boolean |
isMapModuleChangeAllowed(MapModule oldMapModule,
Mode oldMode,
MapModule newMapModule,
Mode newMode)
The params may be null to indicate the there was no previous map, or
that the last map is closed now.
|
void |
moveTab(int src,
int dst) |
void |
numberOfOpenMapInformation(int number,
int pIndex)
To enable/disable the previous/next map actions.
|
void |
obtainFocusForSelected() |
void |
registerMapTitleChangeListener(MapModuleManager.MapTitleChangeListener pMapTitleChangeListener) |
void |
registerMapTitleContributor(MapModuleManager.MapTitleContributor pMapTitleContributor) |
void |
registerZoomListener(ZoomListener pZoomListener) |
static void |
removePropertyChangeListener(FreemindPropertyListener listener) |
void |
setAllActions(boolean enabled)
Manage the availabilty of all Actions dependend of whether there is a map
or not
|
void |
setAntialiasAll(boolean antialiasAll) |
void |
setAntialiasEdges(boolean antialiasEdges) |
void |
setAttributeViewType(MindMap map,
java.lang.String value) |
java.lang.Object |
setEdgesRenderingHint(java.awt.Graphics2D g) |
void |
setFrame(FreeMindMain frame) |
void |
setLeftToolbarVisible(boolean visible) |
void |
setMenubarVisible(boolean visible) |
void |
setProperty(java.lang.String property,
java.lang.String value) |
void |
setTextRenderingHint(java.awt.Graphics2D g) |
void |
setTitle()
Set the Frame title with mode and file if exist
|
void |
setToolbarVisible(boolean visible) |
void |
setZoom(float zoom) |
static java.awt.Color |
showCommonJColorChooserDialog(java.awt.Component component,
java.lang.String title,
java.awt.Color initialColor) |
protected void |
storePageFormat() |
void |
toggleSelectionAsRectangle() |
public static Controller.LocalLinkConverter localDocumentationLinkConverter
public Controller.CloseAction close
public javax.swing.Action print
public javax.swing.Action printDirect
public javax.swing.Action printPreview
public javax.swing.Action page
public javax.swing.Action quit
public javax.swing.Action showAllAttributes
public javax.swing.Action showSelectedAttributes
public javax.swing.Action hideAllAttributes
public Controller.OptionAntialiasAction optionAntialiasAction
public javax.swing.Action optionHTMLExportFoldingAction
public javax.swing.Action optionSelectionMechanismAction
public javax.swing.Action about
public javax.swing.Action faq
public javax.swing.Action keyDocumentation
public javax.swing.Action webDocu
public javax.swing.Action documentation
public javax.swing.Action license
public javax.swing.Action showFilterToolbarAction
public javax.swing.Action showAttributeManagerAction
public javax.swing.Action navigationPreviousMap
public javax.swing.Action navigationNextMap
public javax.swing.Action navigationMoveMapLeftAction
public javax.swing.Action navigationMoveMapRightAction
public javax.swing.Action moveToRoot
public javax.swing.Action toggleMenubar
public javax.swing.Action toggleToolbar
public javax.swing.Action toggleLeftToolbar
public javax.swing.Action zoomIn
public javax.swing.Action zoomOut
public javax.swing.Action showSelectionAsRectangle
public Controller.PropertyAction propertyAction
public freemind.controller.Controller.OpenURLAction freemindUrl
public static final java.lang.String JAVA_VERSION
public Controller(FreeMindMain frame)
public void init()
public void initialization()
public java.lang.String getProperty(java.lang.String property)
public int getIntProperty(java.lang.String property, int defaultValue)
public void setProperty(java.lang.String property, java.lang.String value)
public FreeMindMain getFrame()
public javax.swing.JFrame getJFrame()
public java.net.URL getResource(java.lang.String resource)
public java.lang.String getResourceString(java.lang.String resource)
public ModeController getModeController()
public MindMap getModel()
public MapView getView()
public Mode getMode()
public java.lang.String[] getZooms()
public MapModuleManager getMapModuleManager()
public LastOpenedList getLastOpenedList()
public MapModule getMapModule()
public java.awt.Font getFontThroughMap(java.awt.Font font)
public void setAntialiasEdges(boolean antialiasEdges)
public void setAntialiasAll(boolean antialiasAll)
public java.awt.Font getDefaultFont()
public java.lang.String getDefaultFontFamilyName()
public int getDefaultFontStyle()
public int getDefaultFontSize()
public static javax.swing.JColorChooser getCommonJColorChooser()
public static java.awt.Color showCommonJColorChooserDialog(java.awt.Component component, java.lang.String title, java.awt.Color initialColor) throws java.awt.HeadlessException
java.awt.HeadlessException
public boolean isMapModuleChangeAllowed(MapModule oldMapModule, Mode oldMode, MapModule newMapModule, Mode newMode)
MapModuleManager.MapModuleChangeObserver
isMapModuleChangeAllowed
in interface MapModuleManager.MapModuleChangeObserver
public void afterMapClose(MapModule pOldMapModule, Mode pOldMode)
afterMapClose
in interface MapModuleManager.MapModuleChangeObserver
public void beforeMapModuleChange(MapModule oldMapModule, Mode oldMode, MapModule newMapModule, Mode newMode)
beforeMapModuleChange
in interface MapModuleManager.MapModuleChangeObserver
public void afterMapModuleChange(MapModule oldMapModule, Mode oldMode, MapModule newMapModule, Mode newMode)
afterMapModuleChange
in interface MapModuleManager.MapModuleChangeObserver
protected void changeZoomValueProperty(float zoomValue)
public void numberOfOpenMapInformation(int number, int pIndex)
MapModuleManager.MapModuleChangeObserver
numberOfOpenMapInformation
in interface MapModuleManager.MapModuleChangeObserver
pIndex
- TODOpublic boolean createNewMode(java.lang.String mode)
public void setMenubarVisible(boolean visible)
public void setToolbarVisible(boolean visible)
public javax.swing.JToolBar getToolbar()
public void setLeftToolbarVisible(boolean visible)
public NodeKeyListener getNodeKeyListener()
public NodeMouseMotionListener getNodeMouseMotionListener()
public NodeMotionListener getNodeMotionListener()
public MapMouseMotionListener getMapMouseMotionListener()
public MapMouseWheelListener getMapMouseWheelListener()
public NodeDragListener getNodeDragListener()
public NodeDropListener getNodeDropListener()
public void setFrame(FreeMindMain frame)
public void close(boolean force)
force
- true= without save.public void informationMessage(java.lang.Object message)
public void informationMessage(java.lang.Object message, javax.swing.JComponent component)
public void errorMessage(java.lang.Object message)
public void errorMessage(java.lang.Object message, javax.swing.JComponent component)
public void obtainFocusForSelected()
public void setZoom(float zoom)
public void setTitle()
public void registerMapTitleChangeListener(MapModuleManager.MapTitleChangeListener pMapTitleChangeListener)
public void deregisterMapTitleChangeListener(MapModuleManager.MapTitleChangeListener pMapTitleChangeListener)
public void registerZoomListener(ZoomListener pZoomListener)
public void deregisterZoomListener(ZoomListener pZoomListener)
public void registerMapTitleContributor(MapModuleManager.MapTitleContributor pMapTitleContributor)
public void deregisterMapTitleContributor(MapModuleManager.MapTitleContributor pMapTitleContributor)
public void setAllActions(boolean enabled)
public void moveTab(int src, int dst)
public static java.util.Collection getPropertyChangeListeners()
public void toggleSelectionAsRectangle()
public MindMap getMap()
public static void addPropertyChangeListener(FreemindPropertyListener listener)
public static void addPropertyChangeListenerAndPropagate(FreemindPropertyListener listener)
listener
- The new listener. All currently available properties are sent
to the listener after registration. Here, the oldValue
parameter is set to null.public static void removePropertyChangeListener(FreemindPropertyListener listener)
public FilterController getFilterController()
public java.awt.print.PageFormat getPageFormat()
public void setAttributeViewType(MindMap map, java.lang.String value)
public java.lang.Object setEdgesRenderingHint(java.awt.Graphics2D g)
public void setTextRenderingHint(java.awt.Graphics2D g)
public void addTabbedPane(javax.swing.JTabbedPane pTabbedPane)
protected void storePageFormat()