Class MoveShapeContext

    • Constructor Detail

      • MoveShapeContext

        public MoveShapeContext​(Shape shape)
        Creates a new MoveShapeContext.
        Parameters:
        shape - the shape
    • Method Detail

      • getTargetContainer

        public ContainerShape getTargetContainer()
        Description copied from interface: ITargetContext
        Gets the target container.
        Specified by:
        getTargetContainer in interface ITargetContext
        Returns:
        the target container shape where the new pictogram element (currently this has to be a shape) has to be added
      • setDeltaX

        public void setDeltaX​(int deltaX)
        Sets the delta x.
        Parameters:
        deltaX - the new delta x
      • setDeltaY

        public void setDeltaY​(int deltaY)
        Sets the delta y.
        Parameters:
        deltaY - the new delta y
      • setSourceContainer

        public void setSourceContainer​(ContainerShape sourceContainer)
        Sets the source container.
        Parameters:
        sourceContainer - The sourceContainer to set.
      • setTargetConnection

        public void setTargetConnection​(Connection targetConnection)
        Sets the target connection.
        Parameters:
        targetConnection - The target connection to set.
      • setTargetContainer

        public void setTargetContainer​(ContainerShape targetContainer)
        Sets the target container.
        Parameters:
        targetContainer - The targetContainer to set.