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, setMessageequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMessage, setMessagepublic ImageDecorator(java.lang.String imageId)
imageId - a String holding the image idpublic java.lang.String getImageId()
IImageDecoratorgetImageId in interface IImageDecoratorString holding the image idpublic int getX()
ILocationpublic int getY()
ILocationpublic void setX(int x)
ILocation