org.argouml.uml.ui
Class ActionZoom

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--org.argouml.uml.ui.UMLAction
              |
              +--org.argouml.uml.ui.ActionZoom
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class ActionZoom
extends UMLAction

See Also:
Serialized Form

Field Summary
protected  double _scale
           
 
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
ActionZoom(int scale_percent)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          This action changes the scale factor of the editor and triggers a redraw of the editor pane.
 boolean shouldBeEnabled()
          We can always zoom.
 
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, getValue, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_scale

protected double _scale
Constructor Detail

ActionZoom

public ActionZoom(int scale_percent)
Method Detail

shouldBeEnabled

public boolean shouldBeEnabled()
We can always zoom.
Overrides:
shouldBeEnabled in class UMLAction

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
This action changes the scale factor of the editor and triggers a redraw of the editor pane.
Overrides:
actionPerformed in class UMLAction


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook