Class ImageDecorator

    • Constructor Summary

      Constructors 
      Constructor Description
      ImageDecorator​(java.lang.String imageId)
      Creates a new image decorator that decorates a shape with the image identified by the given image id.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getImageId()
      Gets the image id of the image used to decorate a shape.
      int getX()
      Gets the x value.
      int getY()
      Gets the y value.
      void setX​(int x)
      Sets the x coordinate of this location.
      void setY​(int y)
      Sets the y coordinate of this location.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageDecorator

        public ImageDecorator​(java.lang.String imageId)
        Creates a new image decorator that decorates a shape with the image identified by the given image id.
        Parameters:
        imageId - a String holding the image id
    • Method Detail

      • getImageId

        public java.lang.String getImageId()
        Description copied from interface: IImageDecorator
        Gets the image id of the image used to decorate a shape.
        Specified by:
        getImageId in interface IImageDecorator
        Returns:
        a String holding the image id
      • getX

        public int getX()
        Description copied from interface: ILocation
        Gets the x value.
        Specified by:
        getX in interface ILocation
        Returns:
        the x value of this location
      • getY

        public int getY()
        Description copied from interface: ILocation
        Gets the y value.
        Specified by:
        getY in interface ILocation
        Returns:
        the y value of this location
      • setX

        public void setX​(int x)
        Description copied from interface: ILocation
        Sets the x coordinate of this location.
        Specified by:
        setX in interface ILocation
        Parameters:
        x - the new x coordinate
      • setY

        public void setY​(int y)
        Description copied from interface: ILocation
        Sets the y coordinate of this location.
        Specified by:
        setY in interface ILocation
        Parameters:
        y - the new y coordinate