Documentation of 'CH.ifa.draw.standard.AlignCommand' Java class
AlignCommand
CH.ifa.draw.standard

Class 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 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

      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
      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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlignCommand

        public AlignCommand(java.lang.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.)
    • Method Detail

      • isExecutable

        public boolean isExecutable()
        Description copied from class: Command
        Tests if the command can be executed.
        Overrides:
        isExecutable in class Command
      • execute

        public void execute()
        Description copied from class: Command
        Executes the command.
        Specified by:
        execute in class Command

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.