uci.gef
Class CmdDistribute
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--uci.gef.Cmd
|
+--uci.gef.CmdDistribute
- public class CmdDistribute
- extends Cmd
An Cmd to align 2 or more objects relative to each other.
- See Also:
- Serialized Form
|
Constructor Summary |
CmdDistribute(int r)
Construct a new CmdDistribute. |
| Methods inherited from class uci.gef.Cmd |
about,
actionPerformed,
cmdAtIndex,
containsArg,
getArg,
getArg,
getName,
register,
registeredCmds,
setArg,
setName,
shouldBeEnabled,
updateEnabled |
H_SPACING
public static final int H_SPACING
- Constants specifying the type of distribution requested.
H_CENTERS
public static final int H_CENTERS
H_PACK
public static final int H_PACK
V_SPACING
public static final int V_SPACING
V_CENTERS
public static final int V_CENTERS
V_PACK
public static final int V_PACK
_request
protected int _request
- Specification of the type of distribution requested
_bbox
protected Rectangle _bbox
CmdDistribute
public CmdDistribute(int r)
- Construct a new CmdDistribute.
- Parameters:
dir - The desired alignment direction, one of the constants
listed above.
wordFor
protected static String wordFor(int r)
doIt
public void doIt()
- Overrides:
- doIt in class Cmd
undoIt
public void undoIt()
- Overrides:
- undoIt in class Cmd
swap
protected void swap(Vector v,
int i,
int j)
getLastBBox
public Rectangle getLastBBox()