|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemind.controller.Controller
public class Controller
Provides the methods to edit/change a Node. Forwards all messages to MapModel(editing) or MapView(navigation).
Nested Class Summary | |
---|---|
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
|
Field Summary | |
---|---|
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 |
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 Summary | |
---|---|
Controller(FreeMindMain frame)
|
Method Summary | |
---|---|
static void |
addPropertyChangeListener(FreemindPropertyListener listener)
|
static void |
addPropertyChangeListenerAndPropagate(FreemindPropertyListener listener)
|
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)
|
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 |
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)
|
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 |
numberOfOpenMapInformation(int number)
To enable/disable the previous/next map actions. |
void |
obtainFocusForSelected()
|
void |
registerMapTitleChangeListener(MapModuleManager.MapTitleChangeListener pMapTitleChangeListener)
|
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)
|
void |
toggleSelectionAsRectangle()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 navigationPreviousMap
public javax.swing.Action showFilterToolbarAction
public javax.swing.Action showAttributeManagerAction
public javax.swing.Action navigationNextMap
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
Constructor Detail |
---|
public Controller(FreeMindMain frame)
Method Detail |
---|
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
public void numberOfOpenMapInformation(int number)
MapModuleManager.MapModuleChangeObserver
numberOfOpenMapInformation
in interface MapModuleManager.MapModuleChangeObserver
public 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 setAllActions(boolean enabled)
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |