CH.ifa.draw.standard
Class 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.
-
-
Field Summary
Fields Modifier and Type Field and Description static intBOTTOMSalign bottomsstatic intCENTERSalign centers (horizontally)static intLEFTSalign left sidesstatic intMIDDLESalign middles (vertically)static intRIGHTSalign right sidesstatic intTOPSalign tops
-
Constructor Summary
Constructors Constructor and Description AlignCommand(java.lang.String name, DrawingView view, int op)Constructs an alignment command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexecute()Executes the command.booleanisExecutable()Tests if the command can be executed.
-
-
-
Field Detail
-
LEFTS
public static final int LEFTS
align left sides- See Also:
- Constant Field Values
-
CENTERS
public static final int CENTERS
align centers (horizontally)- See Also:
- Constant Field Values
-
RIGHTS
public static final int RIGHTS
align right sides- See Also:
- Constant Field Values
-
TOPS
public static final int TOPS
align tops- See Also:
- Constant Field Values
-
MIDDLES
public static final int MIDDLES
align middles (vertically)- See Also:
- Constant Field Values
-
BOTTOMS
public static final int BOTTOMS
align bottoms- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AlignCommand
public AlignCommand(java.lang.String name, DrawingView view, int op)Constructs an alignment command.- Parameters:
name- the command nameview- the target viewop- the alignment operation (LEFTS, CENTERS, RIGHTS, etc.)
-
-
Method Detail
-
isExecutable
public boolean isExecutable()
Description copied from class:CommandTests if the command can be executed.- Overrides:
isExecutablein classCommand
-
-
DataMelt 3.0 © DataMelt by jWork.ORG