|
||||||||||
| 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 String |
RECONNECT_SOURCE
Constant used to indicate that the source end of an existing connection is being reconnected to a new source node. |
static String |
RECONNECT_TARGET
Constant used to indicate that the target end of an existing connection is being reconnected to a new target node. |
private 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. |
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(String reconnectType)
Sets the reconnection type. |
void |
setTargetLocation(ILocation targetLocation)
|
void |
setTargetPictogramElement(PictogramElement targetPictogramElement)
Sets the target pictogram element. |
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 String RECONNECT_SOURCE
public static String RECONNECT_TARGET
private Connection connection
private Anchor oldAnchor
private Anchor newAnchor
private PictogramElement targetPictogramElement
private 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 anchor| Method Detail |
|---|
public 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()
IReconnectionContext
getTargetPictogramElement in interface IReconnectionContextpublic void setTargetPictogramElement(PictogramElement targetPictogramElement)
IReconnectionContext
setTargetPictogramElement in interface IReconnectionContexttargetPictogramElement - the new target pictogram elementpublic String toString()
public String getReconnectType()
getReconnectType in interface IReconnectionContextRECONNECT_TARGET or
RECONNECT_SOURCEpublic void setReconnectType(String reconnectType)
RECONNECT_TARGET
or RECONNECT_SOURCE
reconnectType - public ILocation getTargetLocation()
getTargetLocation in interface IReconnectionContextpublic 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 | |||||||||