public class ReconnectionContext extends DefaultContext implements IReconnectionContext
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RECONNECT_SOURCE
Constant used to indicate that the source end of an existing
connection is being reconnected to a new source node.
|
static java.lang.String |
RECONNECT_TARGET
Constant used to indicate that the target end of an existing
connection is being reconnected to a new target node.
|
| Constructor and Description |
|---|
ReconnectionContext(Connection connection,
Anchor oldAnchor,
Anchor newAnchor,
ILocation targetLocation)
Creates a new
ReconnectionContext. |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Gets the connection.
|
Anchor |
getNewAnchor()
Gets the new anchor.
|
Anchor |
getOldAnchor()
Gets the old anchor.
|
java.lang.String |
getReconnectType()
Indicate whether the end of an existing connection is being reconnected
to a new source node or a new target node.
|
ILocation |
getTargetLocation() |
PictogramElement |
getTargetPictogramElement()
Gets the target pictogram element.
|
void |
setConnection(Connection connection)
Sets the connection.
|
void |
setNewAnchor(Anchor newAnchor)
Sets the new anchor.
|
void |
setOldAnchor(Anchor oldAnchor)
Sets the old anchor.
|
void |
setReconnectType(java.lang.String reconnectType)
Sets the reconnection type.
|
void |
setTargetLocation(ILocation targetLocation) |
void |
setTargetPictogramElement(PictogramElement targetPictogramElement)
Sets the target pictogram element.
|
java.lang.String |
toString() |
getProperty, getPropertyKeys, putPropertyequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProperty, getPropertyKeys, putPropertypublic static java.lang.String RECONNECT_SOURCE
public static java.lang.String RECONNECT_TARGET
public ReconnectionContext(Connection connection, Anchor oldAnchor, Anchor newAnchor, ILocation targetLocation)
ReconnectionContext.connection - the connectionoldAnchor - the old anchornewAnchor - the new anchorpublic Connection getConnection()
getConnection in interface IReconnectionContextpublic void setConnection(Connection connection)
connection - The connection to set.public Anchor getNewAnchor()
getNewAnchor in interface IReconnectionContextpublic void setNewAnchor(Anchor newAnchor)
newAnchor - The newAnchor to set.public Anchor getOldAnchor()
getOldAnchor in interface IReconnectionContextpublic void setOldAnchor(Anchor oldAnchor)
oldAnchor - The oldAnchor to set.public PictogramElement getTargetPictogramElement()
IReconnectionContextgetTargetPictogramElement in interface IReconnectionContextpublic void setTargetPictogramElement(PictogramElement targetPictogramElement)
IReconnectionContextsetTargetPictogramElement in interface IReconnectionContexttargetPictogramElement - the new target pictogram elementpublic java.lang.String toString()
toString in class DefaultContextpublic java.lang.String getReconnectType()
getReconnectType in interface IReconnectionContextRECONNECT_TARGET or
RECONNECT_SOURCEpublic void setReconnectType(java.lang.String reconnectType)
RECONNECT_TARGET
or RECONNECT_SOURCEreconnectType - public ILocation getTargetLocation()
getTargetLocation in interface IReconnectionContextpublic void setTargetLocation(ILocation targetLocation)
targetLocation - the targetLocation to set