freemind.modes.mindmapmode
Class MindMapMode

java.lang.Object
  extended by freemind.modes.mindmapmode.MindMapMode
All Implemented Interfaces:
Mode

public class MindMapMode
extends java.lang.Object
implements Mode


Constructor Summary
MindMapMode()
           
 
Method Summary
 void activate()
          Called whenever this mode is chosen in the program.
 ModeController createModeController()
          Creates a new mode controller and returns it.
 Controller getController()
           
 ModeController getDefaultModeController()
          This modeController is only used, when no map is opened.
 void init(Controller c)
           
 void restore(java.lang.String restoreable)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MindMapMode

public MindMapMode()
Method Detail

init

public void init(Controller c)
Specified by:
init in interface Mode

createModeController

public ModeController createModeController()
Description copied from interface: Mode
Creates a new mode controller and returns it.

Specified by:
createModeController in interface Mode

toString

public java.lang.String toString()
Specified by:
toString in interface Mode
Overrides:
toString in class java.lang.Object

activate

public void activate()
Called whenever this mode is chosen in the program. (updates Actions etc.)

Specified by:
activate in interface Mode

restore

public void restore(java.lang.String restoreable)
             throws java.io.FileNotFoundException,
                    XMLParseException,
                    java.net.MalformedURLException,
                    java.io.IOException,
                    java.net.URISyntaxException
Specified by:
restore in interface Mode
Throws:
java.io.FileNotFoundException
XMLParseException
java.net.MalformedURLException
java.io.IOException
java.net.URISyntaxException

getController

public Controller getController()
Specified by:
getController in interface Mode

getDefaultModeController

public ModeController getDefaultModeController()
Description copied from interface: Mode
This modeController is only used, when no map is opened.

Specified by:
getDefaultModeController in interface Mode