Class AddAnchorCommand

    • Constructor Detail

      • AddAnchorCommand

        public AddAnchorCommand​(CommandManager commandManager,
                                Element element)
        Constructor
        Parameters:
        commandManager - - The command manager
        element - - The element object
    • Method Detail

      • addAnchor

        public void addAnchor​(InstanceLine anchor,
                              int x)
      • doCancel

        protected void doCancel()
        Undo the translation. All elements are moved back to their original position. The translation can only be canceled as long as it has not been committed.
        Specified by:
        doCancel in class AbstractTransaction
      • getModifiedElement

        public Element getModifiedElement()
        Returns:
        the modified element or its closest relative (sibling or parent) if the element is not displayed.