org.argouml.uml.ui
Class ActionLayout

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.argouml.uml.ui.UMLAction
          extended byorg.argouml.uml.ui.ActionLayout
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class ActionLayout
extends UMLAction

See Also:
Serialized Form

Field Summary
protected  java.lang.String _tabName
           
 
Fields inherited from class org.argouml.uml.ui.UMLAction
cat, HAS_ICON, NO_ICON
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ActionLayout(java.lang.String tabName)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          This action performs the layout and triggers a redraw of the editor pane.
 boolean shouldBeEnabled()
          check whether we deal with a supported diagram type (currently only UMLClassDiagram).
 
Methods inherited from class org.argouml.uml.ui.UMLAction
getMnemonic, getShortcut, isEnabled, markNeedsSave, stripJunk, updateEnabled, updateEnabled
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tabName

protected java.lang.String _tabName
Constructor Detail

ActionLayout

public ActionLayout(java.lang.String tabName)
Method Detail

shouldBeEnabled

public boolean shouldBeEnabled()
check whether we deal with a supported diagram type (currently only UMLClassDiagram). Incremental Layout is not implemented for any diagram type, so it is greyed out.

Overrides:
shouldBeEnabled in class UMLAction
See Also:
ProjectBrowser

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
This action performs the layout and triggers a redraw of the editor pane.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class UMLAction


ArgoUML © 1996-2003 (20040125)ArgoUML Project HomeArgoUML Cookbook