All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.standard.AlignCommand
java.lang.Object
|
+----CH.ifa.draw.util.Command
|
+----CH.ifa.draw.standard.AlignCommand
- public class AlignCommand
- extends Command
Align a selection of figures relative to each other.
-
BOTTOMS
- align bottoms
-
CENTERS
- align centers (horizontally)
-
LEFTS
- align left sides
-
MIDDLES
- align middles (vertically)
-
RIGHTS
- align right sides
-
TOPS
- align tops
-
AlignCommand(String, DrawingView, int)
- Constructs an alignment command.
-
execute()
- Executes the command.
-
isExecutable()
- Tests if the command can be executed.
LEFTS
public static final int LEFTS
- align left sides
CENTERS
public static final int CENTERS
- align centers (horizontally)
RIGHTS
public static final int RIGHTS
- align right sides
TOPS
public static final int TOPS
- align tops
MIDDLES
public static final int MIDDLES
- align middles (vertically)
BOTTOMS
public static final int BOTTOMS
- align bottoms
AlignCommand
public AlignCommand(String name,
DrawingView view,
int op)
- Constructs an alignment command.
- Parameters:
- name - the command name
- view - the target view
- op - the alignment operation (LEFTS, CENTERS, RIGHTS, etc.)
isExecutable
public boolean isExecutable()
- Tests if the command can be executed.
- Overrides:
- isExecutable in class Command
execute
public void execute()
- Executes the command.
- Overrides:
- execute in class Command
All Packages Class Hierarchy This Package Previous Next Index