public class CreateConnectionContext extends DefaultContext implements ICreateConnectionContext
Constructor and Description |
---|
CreateConnectionContext()
Creates a new
CreateConnectionContext . |
Modifier and Type | Method and Description |
---|---|
Anchor |
getSourceAnchor()
Gets the source anchor.
|
ILocation |
getSourceLocation() |
PictogramElement |
getSourcePictogramElement()
Gets the source pictogram element.
|
Anchor |
getTargetAnchor()
Gets the target anchor.
|
ILocation |
getTargetLocation() |
PictogramElement |
getTargetPictogramElement()
Gets the target pictogram element.
|
void |
setSourceAnchor(Anchor sourceAnchor)
Sets the source anchor.
|
void |
setSourceLocation(ILocation sourceLocation) |
void |
setSourcePictogramElement(PictogramElement sourcePictogramElement)
Sets the source pictogram element.
|
void |
setTargetAnchor(Anchor targetAnchor)
Sets the target anchor.
|
void |
setTargetLocation(ILocation targetLocation) |
void |
setTargetPictogramElement(PictogramElement targetPictogramElement)
Sets the target pictogram element.
|
java.lang.String |
toString() |
getProperty, getPropertyKeys, putProperty
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProperty, getPropertyKeys, putProperty
public CreateConnectionContext()
CreateConnectionContext
.public Anchor getSourceAnchor()
IConnectionContext
getSourceAnchor
in interface IConnectionContext
public Anchor getTargetAnchor()
IConnectionContext
getTargetAnchor
in interface IConnectionContext
public void setSourceAnchor(Anchor sourceAnchor)
sourceAnchor
- The sourceAnchor to set.public void setTargetAnchor(Anchor targetAnchor)
targetAnchor
- The targetAnchor to set.public PictogramElement getSourcePictogramElement()
ICreateConnectionContext
getSourcePictogramElement
in interface ICreateConnectionContext
public PictogramElement getTargetPictogramElement()
ICreateConnectionContext
getTargetPictogramElement
in interface ICreateConnectionContext
public void setSourcePictogramElement(PictogramElement sourcePictogramElement)
sourcePictogramElement
- the new source pictogram elementpublic void setTargetPictogramElement(PictogramElement targetPictogramElement)
targetPictogramElement
- the new target pictogram elementpublic java.lang.String toString()
toString
in class DefaultContext
public ILocation getSourceLocation()
getSourceLocation
in interface ICreateConnectionContext
public void setSourceLocation(ILocation sourceLocation)
sourceLocation
- the sourceLocation to setpublic ILocation getTargetLocation()
getTargetLocation
in interface ICreateConnectionContext
public void setTargetLocation(ILocation targetLocation)
targetLocation
- the targetLocation to set