|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
org.tigris.gef.base.Cmd
org.argouml.ui.cmd.CmdSetPreferredSize
A command to set selected figs to their preferred size or minimum size.
Nested Class Summary |
Nested classes inherited from class javax.swing.AbstractAction |
|
Field Summary | |
static int |
MINIMUM_SIZE
constant for MINIMUM_SIZE |
private int |
mode
|
static int |
PREFERRED_SIZE
constant for PREFERRED_SIZE |
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 |
Constructor Summary | |
CmdSetPreferredSize(int theMode)
Constructor for the command. |
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(Vector figs)
Set the figs to be resized. |
void |
undoIt()
unsupported. |
private static 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, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PREFERRED_SIZE
public static final int MINIMUM_SIZE
private int mode
Constructor Detail |
public CmdSetPreferredSize(int theMode)
theMode
- one of the defined constantsMethod Detail |
private static String wordFor(int r)
public void setFigToResize(org.tigris.gef.presentation.Fig f)
f
- the fig to resizepublic void setFigToResize(Vector figs)
figs
- the list of figs to resizepublic void doIt()
public void undoIt()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |