public class PasteContext extends PictogramElementsContext implements IPasteContext
| Constructor and Description |
|---|
PasteContext(PictogramElement[] pictogramElements)
Creates a new
PasteContext. |
PasteContext(PictogramElement[] pictogramElements,
int pasteLocationX,
int pasteLocationY)
Creates a new
PasteContext. |
| Modifier and Type | Method and Description |
|---|---|
int |
getX()
Gets the x location to paste to
|
int |
getY()
Gets the y location to paste to
|
void |
setLocation(int x,
int y)
Sets the location to paste to
|
void |
setX(int x)
Sets the x location to paste to
|
void |
setY(int y)
Sets the y location to paste to
|
getPictogramElements, setPictogramElements, toStringgetProperty, getPropertyKeys, putPropertyequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPictogramElements, setPictogramElementsgetProperty, getPropertyKeys, putPropertypublic PasteContext(PictogramElement[] pictogramElements)
PasteContext.pictogramElements - the pictogram elementspublic PasteContext(PictogramElement[] pictogramElements, int pasteLocationX, int pasteLocationY)
PasteContext.pictogramElements - the pictogram elementspasteLocationX - the x location to paste topasteLocationY - the y location to paste topublic int getX()
getX in interface ILocationContextpublic void setX(int x)
x - an integer representing the x locationpublic int getY()
getY in interface ILocationContextpublic void setY(int y)
y - an integer representing the y locationpublic void setLocation(int x,
int y)
x - an integer representing the x locationy - an integer representing the y location