public class MoveShapeContext extends MoveContext implements IMoveShapeContext
| Constructor and Description |
|---|
MoveShapeContext(Shape shape)
Creates a new
MoveShapeContext. |
| Modifier and Type | Method and Description |
|---|---|
int |
getDeltaX()
Gets the delta x.
|
int |
getDeltaY()
Gets the delta y.
|
PictogramElement |
getPictogramElement()
Gets the pictogram element.
|
Shape |
getShape()
Gets the shape.
|
ContainerShape |
getSourceContainer()
Gets the source container.
|
Connection |
getTargetConnection()
Gets the target connection.
|
ContainerShape |
getTargetContainer()
Gets the target container.
|
void |
setDeltaX(int deltaX)
Sets the delta x.
|
void |
setDeltaY(int deltaY)
Sets the delta y.
|
void |
setSourceContainer(ContainerShape sourceContainer)
Sets the source container.
|
void |
setTargetConnection(Connection targetConnection)
Sets the target connection.
|
void |
setTargetContainer(ContainerShape targetContainer)
Sets the target container.
|
java.lang.String |
toString() |
getX, getY, setLocation, setX, setYgetProperty, getPropertyKeys, putPropertyequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetX, getYgetProperty, getPropertyKeys, putPropertypublic MoveShapeContext(Shape shape)
MoveShapeContext.shape - the shapepublic int getDeltaX()
IMoveShapeContextgetDeltaX in interface IMoveShapeContextpublic int getDeltaY()
IMoveShapeContextgetDeltaY in interface IMoveShapeContextpublic PictogramElement getPictogramElement()
IPictogramElementContextgetPictogramElement in interface IPictogramElementContextpublic Shape getShape()
getShape in interface IMoveShapeContextpublic ContainerShape getSourceContainer()
IMoveShapeContextgetSourceContainer in interface IMoveShapeContextpublic Connection getTargetConnection()
ITargetConnectionContextgetTargetConnection in interface ITargetConnectionContextpublic ContainerShape getTargetContainer()
ITargetContextgetTargetContainer in interface ITargetContextpublic void setDeltaX(int deltaX)
deltaX - the new delta xpublic void setDeltaY(int deltaY)
deltaY - the new delta ypublic void setSourceContainer(ContainerShape sourceContainer)
sourceContainer - The sourceContainer to set.public void setTargetConnection(Connection targetConnection)
targetConnection - The target connection to set.public void setTargetContainer(ContainerShape targetContainer)
targetContainer - The targetContainer to set.public java.lang.String toString()
toString in class LocationContext