freemind.modes.mindmapmode.actions
Class RemoveIconAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by freemind.modes.mindmapmode.actions.FreemindAction
          extended by freemind.modes.mindmapmode.actions.xml.AbstractXmlAction
              extended by freemind.modes.mindmapmode.actions.NodeGeneralAction
                  extended by freemind.modes.mindmapmode.actions.RemoveIconAction
All Implemented Interfaces:
IconInformation, NodeActorXml, ActorXml, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class RemoveIconAction
extends NodeGeneralAction
implements NodeActorXml, IconInformation

Author:
foltin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class freemind.modes.mindmapmode.actions.NodeGeneralAction
logger, modeController
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
RemoveIconAction(MindMapController modeController)
           
 
Method Summary
 void act(freemind.controller.actions.generated.instance.XmlAction action)
           
 ActionPair apply(MindMap model, MindMapNode selected)
           
 freemind.controller.actions.generated.instance.RemoveIconXmlAction createRemoveIconXmlAction(MindMapNode node, int iconPosition)
           
 java.lang.String getDescription()
           
 java.lang.Class getDoActionClass()
           
 javax.swing.ImageIcon getIcon()
           
 javax.swing.KeyStroke getKeyStroke()
           
 java.lang.String getKeystrokeResourceName()
           
 int removeLastIcon(MindMapNode node)
           
 void setIconAction(IconAction iconAction)
           
 
Methods inherited from class freemind.modes.mindmapmode.actions.NodeGeneralAction
addActor, execute, getNodeFromID, getNodeID, setName, setSingleNodeOperation, xmlActionPerformed
 
Methods inherited from class freemind.modes.mindmapmode.actions.xml.AbstractXmlAction
actionPerformed, addActor, getActor, getMindMapController
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveIconAction

public RemoveIconAction(MindMapController modeController)
Method Detail

apply

public ActionPair apply(MindMap model,
                        MindMapNode selected)
Specified by:
apply in interface NodeActorXml

getDoActionClass

public java.lang.Class getDoActionClass()
Specified by:
getDoActionClass in interface ActorXml

createRemoveIconXmlAction

public freemind.controller.actions.generated.instance.RemoveIconXmlAction createRemoveIconXmlAction(MindMapNode node,
                                                                                                    int iconPosition)

removeLastIcon

public int removeLastIcon(MindMapNode node)

act

public void act(freemind.controller.actions.generated.instance.XmlAction action)
Specified by:
act in interface ActorXml
Overrides:
act in class NodeGeneralAction

setIconAction

public void setIconAction(IconAction iconAction)
Parameters:
iconAction - The addIconAction to set.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface IconInformation

getIcon

public javax.swing.ImageIcon getIcon()
Specified by:
getIcon in interface IconInformation

getKeyStroke

public javax.swing.KeyStroke getKeyStroke()
Specified by:
getKeyStroke in interface IconInformation

getKeystrokeResourceName

public java.lang.String getKeystrokeResourceName()
Specified by:
getKeystrokeResourceName in interface IconInformation