Class PasteContext
java.lang.Object
org.eclipse.graphiti.PropertyBag
org.eclipse.graphiti.internal.features.context.impl.base.DefaultContext
org.eclipse.graphiti.internal.features.context.impl.base.PictogramElementsContext
org.eclipse.graphiti.features.context.impl.PasteContext
- All Implemented Interfaces:
IContext, ILocationContext, IPasteContext, IPictogramElementsContext, IPropertyBag
The Class PasteContext.
-
Constructor Summary
ConstructorsConstructorDescriptionPasteContext(PictogramElement[] pictogramElements) Creates a newPasteContext.PasteContext(PictogramElement[] pictogramElements, int pasteLocationX, int pasteLocationY) Creates a newPasteContext. -
Method Summary
Modifier and TypeMethodDescriptionintgetX()Gets the x location to paste tointgetY()Gets the y location to paste tovoidsetLocation(int x, int y) Sets the location to paste tovoidsetX(int x) Sets the x location to paste tovoidsetY(int y) Sets the y location to paste toMethods inherited from class PictogramElementsContext
getPictogramElements, setPictogramElements, toStringMethods inherited from class PropertyBag
getProperty, getPropertyKeys, putPropertyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IPictogramElementsContext
getPictogramElements, setPictogramElementsMethods inherited from interface IPropertyBag
getProperty, getPropertyKeys, putProperty
-
Constructor Details
-
PasteContext
Creates a newPasteContext.- Parameters:
pictogramElements- the pictogram elements
-
PasteContext
Creates a newPasteContext.- Parameters:
pictogramElements- the pictogram elementspasteLocationX- the x location to paste topasteLocationY- the y location to paste to- Since:
- 0.9
-
-
Method Details
-
getX
public int getX()Gets the x location to paste to- Specified by:
getXin interfaceILocationContext- Returns:
- an integer representing the x location
- Since:
- 0.9
-
setX
public void setX(int x) Sets the x location to paste to- Parameters:
x- an integer representing the x location- Since:
- 0.9
-
getY
public int getY()Gets the y location to paste to- Specified by:
getYin interfaceILocationContext- Returns:
- an integer representing the y location
- Since:
- 0.9
-
setY
public void setY(int y) Sets the y location to paste to- Parameters:
y- an integer representing the y location- Since:
- 0.9
-
setLocation
public void setLocation(int x, int y) Sets the location to paste to- Parameters:
x- an integer representing the x locationy- an integer representing the y location- Since:
- 0.9
-