public class ImageDecorator extends AbstractDecorator implements IImageDecorator
IDecorator
.Constructor and Description |
---|
ImageDecorator(java.lang.String imageId)
Creates a new image decorator that decorates a shape with the image
identified by the given image id.
|
Modifier and Type | Method and 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.
|
getMessage, setMessage
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMessage, setMessage
public ImageDecorator(java.lang.String imageId)
imageId
- a String
holding the image idpublic java.lang.String getImageId()
IImageDecorator
getImageId
in interface IImageDecorator
String
holding the image idpublic int getX()
ILocation
public int getY()
ILocation
public void setX(int x)
ILocation