org.argouml.ui.cmd
Class CmdSetPreferredSize
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--org.tigris.gef.base.Cmd
|
+--org.argouml.ui.cmd.CmdSetPreferredSize
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class CmdSetPreferredSize
- extends org.tigris.gef.base.Cmd
A command to set selected figs to their preferred size or minimum size.
- See Also:
- Serialized Form
Fields inherited from class org.tigris.gef.base.Cmd |
_args, _resource |
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 |
Method Summary |
void |
doIt()
set all the figs in the selection or passed by param "figs" to the
size according to the mode of the command. |
void |
setFigToResize(org.tigris.gef.presentation.Fig f)
set the fig to be resized |
void |
setFigToResize(java.util.Vector figs)
set the figs to be resized |
void |
undoIt()
unsupported. |
protected static java.lang.String |
wordFor(int r)
|
Methods inherited from class org.tigris.gef.base.Cmd |
about, actionPerformed, cmdAtIndex, containsArg, getArg, getArg, getName, getResource, register, registeredCmds, setArg, setName, setResource, shouldBeEnabled, updateEnabled |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFERRED_SIZE
public static final int PREFERRED_SIZE
- constant for PREFERRED_SIZE
MINIMUM_SIZE
public static final int MINIMUM_SIZE
- constant for MINIMUM_SIZE
CmdSetPreferredSize
public CmdSetPreferredSize(int mode)
- Constructor for the command.
- Parameters:
mode
- one of the defined constants
wordFor
protected static java.lang.String wordFor(int r)
setFigToResize
public void setFigToResize(org.tigris.gef.presentation.Fig f)
- set the fig to be resized
setFigToResize
public void setFigToResize(java.util.Vector figs)
- set the figs to be resized
doIt
public void doIt()
- set all the figs in the selection or passed by param "figs" to the
size according to the mode of the command.
- Overrides:
doIt
in class org.tigris.gef.base.Cmd
undoIt
public void undoIt()
- unsupported.
- Overrides:
undoIt
in class org.tigris.gef.base.Cmd