Class TranslationXCommand

  • All Implemented Interfaces:
    Command

    public class TranslationXCommand
    extends TranslationCommand
    Translates (in the geometrical meaning) a set of elements.
    • Constructor Detail

      • TranslationXCommand

        public TranslationXCommand​(CommandManager commandManager,
                                   ArrayList<Element> elements)
        Constructor
        Parameters:
        commandManager - - The command manager
        elements - - The array list for the elements
    • Method Detail

      • move

        public void move​(int x)
        Move elements by (x, 0). This method can be called repeatedly as long as the translation has not been committed. The elements are actually moved, so change events are propagated.