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, toString
getProperty, getPropertyKeys, putProperty
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPictogramElements, setPictogramElements
getProperty, getPropertyKeys, putProperty
public 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 ILocationContext
public void setX(int x)
x
- an integer representing the x locationpublic int getY()
getY
in interface ILocationContext
public 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