|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDefaultContext
org.eclipse.graphiti.features.context.impl.ReconnectionContext
public class ReconnectionContext
The Class ReconnectionContext.
Field Summary | |
---|---|
private Connection |
connection
|
private Anchor |
newAnchor
|
private Anchor |
oldAnchor
|
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. |
private java.lang.String |
reconnectType
|
private ILocation |
targetLocation
|
private PictogramElement |
targetPictogramElement
|
Constructor Summary | |
---|---|
ReconnectionContext(Connection connection,
Anchor oldAnchor,
Anchor newAnchor,
ILocation targetLocation)
Creates a new ReconnectionContext . |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.graphiti.IPropertyBag |
---|
getProperty, getPropertyKeys, putProperty |
Field Detail |
---|
public static java.lang.String RECONNECT_SOURCE
public static java.lang.String RECONNECT_TARGET
private Connection connection
private Anchor oldAnchor
private Anchor newAnchor
private PictogramElement targetPictogramElement
private java.lang.String reconnectType
private ILocation targetLocation
Constructor Detail |
---|
public ReconnectionContext(Connection connection, Anchor oldAnchor, Anchor newAnchor, ILocation targetLocation)
ReconnectionContext
.
connection
- the connectionoldAnchor
- the old anchornewAnchor
- the new anchorMethod Detail |
---|
public 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()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |