Class PasteContext

    • Constructor Detail

      • PasteContext

        public PasteContext​(PictogramElement[] pictogramElements)
        Creates a new PasteContext.
        Parameters:
        pictogramElements - the pictogram elements
      • PasteContext

        public PasteContext​(PictogramElement[] pictogramElements,
                            int pasteLocationX,
                            int pasteLocationY)
        Creates a new PasteContext.
        Parameters:
        pictogramElements - the pictogram elements
        pasteLocationX - the x location to paste to
        pasteLocationY - the y location to paste to
        Since:
        0.9
    • Method Detail

      • getX

        public int getX()
        Gets the x location to paste to
        Specified by:
        getX in interface ILocationContext
        Returns:
        an integer representing the x location
        Since:
        0.9
      • setX

        public void setX​(int x)
        Sets the x location to paste to
        Parameters:
        x - an integer representing the x location
        Since:
        0.9
      • getY

        public int getY()
        Gets the y location to paste to
        Specified by:
        getY in interface ILocationContext
        Returns:
        an integer representing the y location
        Since:
        0.9
      • setY

        public void setY​(int y)
        Sets the y location to paste to
        Parameters:
        y - an integer representing the y location
        Since:
        0.9
      • setLocation

        public void setLocation​(int x,
                                int y)
        Sets the location to paste to
        Parameters:
        x - an integer representing the x location
        y - an integer representing the y location
        Since:
        0.9