|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCH.ifa.draw.util.Command
CH.ifa.draw.standard.AlignCommand
public class AlignCommand
Align a selection of figures relative to each other.
| Field Summary | |
|---|---|
static int |
BOTTOMS
align bottoms |
static int |
CENTERS
align centers (horizontally) |
static int |
LEFTS
align left sides |
static int |
MIDDLES
align middles (vertically) |
static int |
RIGHTS
align right sides |
static int |
TOPS
align tops |
| Constructor Summary | |
|---|---|
AlignCommand(java.lang.String name,
DrawingView view,
int op)
Constructs an alignment command. |
|
| Method Summary | |
|---|---|
void |
execute()
Executes the command. |
boolean |
isExecutable()
Tests if the command can be executed. |
| Methods inherited from class CH.ifa.draw.util.Command |
|---|
name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LEFTS
public static final int CENTERS
public static final int RIGHTS
public static final int TOPS
public static final int MIDDLES
public static final int BOTTOMS
| Constructor Detail |
|---|
public AlignCommand(java.lang.String name,
DrawingView view,
int op)
name - the command nameview - the target viewop - the alignment operation (LEFTS, CENTERS, RIGHTS, etc.)| Method Detail |
|---|
public boolean isExecutable()
Command
isExecutable in class Commandpublic void execute()
Command
execute in class Command
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||