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, setY
getProperty, getPropertyKeys, putProperty
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getX, getY
getProperty, getPropertyKeys, putProperty
public MoveShapeContext(Shape shape)
MoveShapeContext
.shape
- the shapepublic int getDeltaX()
IMoveShapeContext
getDeltaX
in interface IMoveShapeContext
public int getDeltaY()
IMoveShapeContext
getDeltaY
in interface IMoveShapeContext
public PictogramElement getPictogramElement()
IPictogramElementContext
getPictogramElement
in interface IPictogramElementContext
public Shape getShape()
getShape
in interface IMoveShapeContext
public ContainerShape getSourceContainer()
IMoveShapeContext
getSourceContainer
in interface IMoveShapeContext
public Connection getTargetConnection()
ITargetConnectionContext
getTargetConnection
in interface ITargetConnectionContext
public ContainerShape getTargetContainer()
ITargetContext
getTargetContainer
in interface ITargetContext
public 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