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, putProperty
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProperty, getPropertyKeys, putProperty
public 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 IReconnectionContext
public void setConnection(Connection connection)
connection
- The connection to set.public Anchor getNewAnchor()
getNewAnchor
in interface IReconnectionContext
public void setNewAnchor(Anchor newAnchor)
newAnchor
- The newAnchor to set.public Anchor getOldAnchor()
getOldAnchor
in interface IReconnectionContext
public void setOldAnchor(Anchor oldAnchor)
oldAnchor
- The oldAnchor to set.public PictogramElement getTargetPictogramElement()
IReconnectionContext
getTargetPictogramElement
in interface IReconnectionContext
public void setTargetPictogramElement(PictogramElement targetPictogramElement)
IReconnectionContext
setTargetPictogramElement
in interface IReconnectionContext
targetPictogramElement
- the new target pictogram elementpublic java.lang.String toString()
toString
in class DefaultContext
public java.lang.String getReconnectType()
getReconnectType
in interface IReconnectionContext
RECONNECT_TARGET
or
RECONNECT_SOURCE
public void setReconnectType(java.lang.String reconnectType)
RECONNECT_TARGET
or RECONNECT_SOURCE
reconnectType
- public ILocation getTargetLocation()
getTargetLocation
in interface IReconnectionContext
public void setTargetLocation(ILocation targetLocation)
targetLocation
- the targetLocation to set