Class RemoveAnchorCommand

  • All Implemented Interfaces:
    Command

    public class RemoveAnchorCommand
    extends AbstractTransaction
    The command class for remove anchor
    • Constructor Detail

      • RemoveAnchorCommand

        public RemoveAnchorCommand​(CommandManager commandManager,
                                   Element element,
                                   InstanceLine anchor)
        Constructor
        Parameters:
        commandManager - - The command manager
        element -
        anchor -
    • Method Detail

      • removeAnchor

        public void removeAnchor​(ViewWorkAround view)
        Remove the anchor
        Parameters:
        view - - The work around view
      • 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.