Class MoveShapeContext
java.lang.Object
org.eclipse.graphiti.PropertyBag
org.eclipse.graphiti.internal.features.context.impl.base.DefaultContext
org.eclipse.graphiti.features.context.impl.LocationContext
org.eclipse.graphiti.features.context.impl.MoveContext
org.eclipse.graphiti.features.context.impl.MoveShapeContext
- All Implemented Interfaces:
IContext,ILocationContext,IMoveContext,IMoveShapeContext,IPictogramElementContext,ITargetConnectionContext,ITargetContext,IPropertyBag
The Class MoveShapeContext.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the delta x.intGets the delta y.Gets the pictogram element.getShape()Gets the shape.Gets the source container.Gets the target connection.Gets the target container.voidsetDeltaX(int deltaX) Sets the delta x.voidsetDeltaY(int deltaY) Sets the delta y.voidsetSourceContainer(ContainerShape sourceContainer) Sets the source container.voidsetTargetConnection(Connection targetConnection) Sets the target connection.voidsetTargetContainer(ContainerShape targetContainer) Sets the target container.toString()Methods inherited from class org.eclipse.graphiti.features.context.impl.LocationContext
getX, getY, setLocation, setX, setYMethods inherited from class org.eclipse.graphiti.PropertyBag
getProperty, getPropertyKeys, putPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.graphiti.features.context.ILocationContext
getX, getYMethods inherited from interface org.eclipse.graphiti.IPropertyBag
getProperty, getPropertyKeys, putProperty
-
Constructor Details
-
MoveShapeContext
Creates a newMoveShapeContext.- Parameters:
shape- the shape
-
-
Method Details
-
getDeltaX
public int getDeltaX()Description copied from interface:IMoveShapeContextGets the delta x.- Specified by:
getDeltaXin interfaceIMoveShapeContext- Returns:
- the delta x
-
getDeltaY
public int getDeltaY()Description copied from interface:IMoveShapeContextGets the delta y.- Specified by:
getDeltaYin interfaceIMoveShapeContext- Returns:
- the delta y
-
getPictogramElement
Description copied from interface:IPictogramElementContextGets the pictogram element.- Specified by:
getPictogramElementin interfaceIPictogramElementContext- Returns:
- the pictogram element
-
getShape
Gets the shape.- Specified by:
getShapein interfaceIMoveShapeContext- Returns:
- Returns the shape.
-
getSourceContainer
Description copied from interface:IMoveShapeContextGets the source container.- Specified by:
getSourceContainerin interfaceIMoveShapeContext- Returns:
- the source container
-
getTargetConnection
Description copied from interface:ITargetConnectionContextGets the target connection.- Specified by:
getTargetConnectionin interfaceITargetConnectionContext- Returns:
- the target connection where the new pictogram element (currently this has to be a shape) has to be inserted
-
getTargetContainer
Description copied from interface:ITargetContextGets the target container.- Specified by:
getTargetContainerin interfaceITargetContext- Returns:
- the target container shape where the new pictogram element (currently this has to be a shape) has to be added
-
setDeltaX
public void setDeltaX(int deltaX) Sets the delta x.- Parameters:
deltaX- the new delta x
-
setDeltaY
public void setDeltaY(int deltaY) Sets the delta y.- Parameters:
deltaY- the new delta y
-
setSourceContainer
Sets the source container.- Parameters:
sourceContainer- The sourceContainer to set.
-
setTargetConnection
Sets the target connection.- Parameters:
targetConnection- The target connection to set.
-
setTargetContainer
Sets the target container.- Parameters:
targetContainer- The targetContainer to set.
-
toString
- Overrides:
toStringin classLocationContext
-