Package org.eclipse.graphiti.tb
Class ImageDecorator
- java.lang.Object
-
- org.eclipse.graphiti.tb.AbstractDecorator
-
- org.eclipse.graphiti.tb.ImageDecorator
-
- All Implemented Interfaces:
ILocation,IDecorator,IImageDecorator
public class ImageDecorator extends AbstractDecorator implements IImageDecorator
Image decorators can be used to add an image to the visualization of a shape without modifying the dirty state of the displaying editor, seeIDecorator.
-
-
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.StringgetImageId()Gets the image id of the image used to decorate a shape.intgetX()Gets the x value.intgetY()Gets the y value.voidsetX(int x)Sets the x coordinate of this location.voidsetY(int y)Sets the y coordinate of this location.-
Methods inherited from class org.eclipse.graphiti.tb.AbstractDecorator
getMessage, setMessage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.graphiti.tb.IDecorator
getMessage, setMessage
-
-
-
-
Method Detail
-
getImageId
public java.lang.String getImageId()
Description copied from interface:IImageDecoratorGets the image id of the image used to decorate a shape.- Specified by:
getImageIdin interfaceIImageDecorator- Returns:
- a
Stringholding the image id
-
getX
public int getX()
Description copied from interface:ILocationGets the x value.
-
getY
public int getY()
Description copied from interface:ILocationGets the y value.
-
setX
public void setX(int x)
Description copied from interface:ILocationSets the x coordinate of this location.
-
-