org.argouml.uml.ui
Class ActionLayout
java.lang.Object
javax.swing.AbstractAction
org.argouml.uml.ui.UMLAction
org.argouml.uml.ui.ActionLayout
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- public class ActionLayout
- extends UMLAction
Action to automatically lay out a diagram.
- See Also:
- Serialized Form
Method Summary |
void |
actionPerformed(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). |
ActionLayout
public ActionLayout()
- The constructor.
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
- Returns:
- true if the action should be available.
- See Also:
ProjectBrowser
actionPerformed
public void actionPerformed(ActionEvent ae)
- This action performs the layout and triggers a redraw
of the editor pane.
- Specified by:
actionPerformed
in interface ActionListener
- Overrides:
actionPerformed
in class UMLAction
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)