org.argouml.ui.cmd
Class CmdSetPreferredSize

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.gef.base.Cmd
          extended byorg.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

Field Summary
static int MINIMUM_SIZE
          constant for MINIMUM_SIZE
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 mode)
          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(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, 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

PREFERRED_SIZE

public static final int PREFERRED_SIZE
constant for PREFERRED_SIZE

See Also:
Constant Field Values

MINIMUM_SIZE

public static final int MINIMUM_SIZE
constant for MINIMUM_SIZE

See Also:
Constant Field Values
Constructor Detail

CmdSetPreferredSize

public CmdSetPreferredSize(int mode)
Constructor for the command.

Parameters:
mode - one of the defined constants
Method Detail

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.


undoIt

public void undoIt()
unsupported.



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