Class AddContext

    • Constructor Detail

      • AddContext

        public AddContext()
        Creates a new AddContext.
      • AddContext

        public AddContext​(IAreaContext context,
                          java.lang.Object newObject)
        Creates a new AddContext.
        Parameters:
        context - the context
        newObject - the new object
    • Method Detail

      • getNewObject

        public java.lang.Object getNewObject()
        Description copied from interface: IAddContext
        A pictogram element has to be added. This pictogram element has to link to a domain model element.
        Specified by:
        getNewObject in interface IAddContext
        Returns:
        instance of a domain model element
      • 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
      • setNewObject

        public void setNewObject​(java.lang.Object newObject)
        Sets the new object.
        Parameters:
        newObject - the new object
      • setTargetContainer

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

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

        public void setTargetConnectionDecorator​(ConnectionDecorator targetConnectionDecorator)
        Sets the target connection decorator.
        Parameters:
        targetConnectionDecorator - The target connection decorator to set.