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
ConstructorDescriptionPasteContext
(PictogramElement[] pictogramElements) Creates a newPasteContext
.PasteContext
(PictogramElement[] pictogramElements, int pasteLocationX, int pasteLocationY) Creates a newPasteContext
. -
Method Summary
Modifier and TypeMethodDescriptionint
getX()
Gets the x location to paste toint
getY()
Gets the y location to paste tovoid
setLocation
(int x, int y) Sets the location to paste tovoid
setX
(int x) Sets the x location to paste tovoid
setY
(int y) Sets the y location to paste toMethods inherited from class org.eclipse.graphiti.internal.features.context.impl.base.PictogramElementsContext
getPictogramElements, setPictogramElements, toString
Methods inherited from class org.eclipse.graphiti.PropertyBag
getProperty, getPropertyKeys, putProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.graphiti.features.context.IPictogramElementsContext
getPictogramElements, setPictogramElements
Methods inherited from interface org.eclipse.graphiti.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:
getX
in 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:
getY
in 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
-