org.eclipse.graphiti.tb
Class ImageDecorator

java.lang.Object
  extended by org.eclipse.graphiti.tb.AbstractDecorator
      extended by org.eclipse.graphiti.tb.ImageDecorator
All Implemented Interfaces:
ILocation, IDecorator, IImageDecorator

public class ImageDecorator
extends AbstractDecorator
implements IImageDecorator

The Class ImageDecorator.


Field Summary
private static int DEFAULT_LOCATION
           
private  java.lang.String imageId
           
private  int x
           
private  int y
           
 
Constructor Summary
ImageDecorator(java.lang.String imageId)
          Creates a new ImageDecorator.
 
Method Summary
 java.lang.String getImageId()
          Gets the image id.
 int getX()
          Gets the x value.
 int getY()
          Gets the y value.
private  void setImageId(java.lang.String imageId)
           
 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 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
 

Field Detail

DEFAULT_LOCATION

private static final int DEFAULT_LOCATION
See Also:
Constant Field Values

imageId

private java.lang.String imageId

y

private int y

x

private int x
Constructor Detail

ImageDecorator

public ImageDecorator(java.lang.String imageId)
Creates a new ImageDecorator.

Parameters:
imageId - the image id
Method Detail

getImageId

public java.lang.String getImageId()
Description copied from interface: IImageDecorator
Gets the image id.

Specified by:
getImageId in interface IImageDecorator
Returns:
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

setImageId

private void setImageId(java.lang.String imageId)


Copyright (c) SAP AG 2005, 2010.