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.


Variable Index

 o BOTTOMS
align bottoms
 o CENTERS
align centers (horizontally)
 o LEFTS
align left sides
 o MIDDLES
align middles (vertically)
 o RIGHTS
align right sides
 o TOPS
align tops

Constructor Index

 o AlignCommand(String, DrawingView, int)
Constructs an alignment command.

Method Index

 o execute()
Executes the command.
 o isExecutable()
Tests if the command can be executed.

Variables

 o LEFTS
 public static final int LEFTS
align left sides

 o CENTERS
 public static final int CENTERS
align centers (horizontally)

 o RIGHTS
 public static final int RIGHTS
align right sides

 o TOPS
 public static final int TOPS
align tops

 o MIDDLES
 public static final int MIDDLES
align middles (vertically)

 o BOTTOMS
 public static final int BOTTOMS
align bottoms

Constructors

 o 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.)

Methods

 o isExecutable
 public boolean isExecutable()
Tests if the command can be executed.

Overrides:
isExecutable in class Command
 o execute
 public void execute()
Executes the command.

Overrides:
execute in class Command

All Packages  Class Hierarchy  This Package  Previous  Next  Index