Class InsertMessageCommand

  • All Implemented Interfaces:
    Command

    public class InsertMessageCommand
    extends AbstractTransaction
    A transaction command for inserting elements. The transaction supports optionally setting a position, repeatedly.
    • Constructor Detail

      • InsertMessageCommand

        public InsertMessageCommand​(InstanceLine source,
                                    Message message)
        The hot sections touched by the message (and split)
        Parameters:
        source - - The source
        message - - The message
    • Method Detail

      • getSource

        public InstanceLine getSource()
        Get message source
        Returns:
        The source of the message
      • setTarget

        public void setTarget​(InstanceLine target)
        Set the target
        Parameters:
        target - - the target of the message
      • getElement

        public Element getElement()
        Get the element
        Returns:
        The element
      • getModifiedElement

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

        public void move​(int x)
        Move the 'x' value of the message
        Parameters:
        x - - The new 'x' value
      • moveY

        public void moveY​(int y)
        Move the 'y' value of the messge
        Parameters:
        y - - The new 'y' value