freemind.extensions
Class HookInstanciationMethod

java.lang.Object
  extended byfreemind.extensions.HookInstanciationMethod

public class HookInstanciationMethod
extends java.lang.Object


Field Summary
static HookInstanciationMethod ApplyToRoot
          This is for MindMapHooks that wish to be applied to root, whereevery they are called from.
static HookInstanciationMethod Once
           
static HookInstanciationMethod OnceForAllNodes
          Each (or none) node should have the hook.
static HookInstanciationMethod OnceForRoot
          The hook should only be added/removed to the root node.
static HookInstanciationMethod Other
          This is for MindMapHooks in general.
 
Method Summary
static java.util.HashMap getAllInstanciationMethods()
           
 MindMapNode getCenterNode(ModeController controller, MindMapNode focussed, java.util.List selecteds)
           
 java.util.Collection getDestinationNodes(ModeController controller, MindMapNode focussed, java.util.List selecteds)
           
 boolean isAlreadyPresent(ModeController controller, java.lang.String hookName, MindMapNode focussed, java.util.Collection destinationNodes)
           
 boolean isPermanent()
           
 boolean isSingleton()
           
 boolean isUndoable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Once

public static final HookInstanciationMethod Once

OnceForRoot

public static final HookInstanciationMethod OnceForRoot
The hook should only be added/removed to the root node.


OnceForAllNodes

public static final HookInstanciationMethod OnceForAllNodes
Each (or none) node should have the hook.


Other

public static final HookInstanciationMethod Other
This is for MindMapHooks in general. Here, no undo- or redoaction are performed, the undo information is given by the actions the hook performs.


ApplyToRoot

public static final HookInstanciationMethod ApplyToRoot
This is for MindMapHooks that wish to be applied to root, whereevery they are called from. Here, no undo- or redoaction are performed, the undo information is given by the actions the hook performs.

Method Detail

isSingleton

public boolean isSingleton()

isPermanent

public boolean isPermanent()
Returns:
Returns the isPermanent.

getAllInstanciationMethods

public static final java.util.HashMap getAllInstanciationMethods()

getDestinationNodes

public java.util.Collection getDestinationNodes(ModeController controller,
                                                MindMapNode focussed,
                                                java.util.List selecteds)
Parameters:
focussed -
selecteds -
Returns:

isAlreadyPresent

public boolean isAlreadyPresent(ModeController controller,
                                java.lang.String hookName,
                                MindMapNode focussed,
                                java.util.Collection destinationNodes)
Parameters:
controller -
hookName -
destinationNodes -
Returns:

getCenterNode

public MindMapNode getCenterNode(ModeController controller,
                                 MindMapNode focussed,
                                 java.util.List selecteds)
Parameters:
controller -
focussed -
selecteds -
Returns:

isUndoable

public boolean isUndoable()
Returns: