Class ReconnectionContext
java.lang.Object
org.eclipse.graphiti.PropertyBag
org.eclipse.graphiti.internal.features.context.impl.base.DefaultContext
org.eclipse.graphiti.features.context.impl.ReconnectionContext
- All Implemented Interfaces:
- IContext,- IReconnectionContext,- IPropertyBag
The Class ReconnectionContext.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionReconnectionContext(Connection connection, Anchor oldAnchor, Anchor newAnchor, ILocation targetLocation) Creates a newReconnectionContext.
- 
Method SummaryModifier and TypeMethodDescriptionGets the connection.Gets the new anchor.Gets the old anchor.Indicate whether the end of an existing connection is being reconnected to a new source node or a new target node.Gets the target pictogram element.voidsetConnection(Connection connection) Sets the connection.voidsetNewAnchor(Anchor newAnchor) Sets the new anchor.voidsetOldAnchor(Anchor oldAnchor) Sets the old anchor.voidsetReconnectType(String reconnectType) Sets the reconnection type.voidsetTargetLocation(ILocation targetLocation) voidsetTargetPictogramElement(PictogramElement targetPictogramElement) Sets the target pictogram element.toString()Methods inherited from class org.eclipse.graphiti.PropertyBaggetProperty, getPropertyKeys, putPropertyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.graphiti.IPropertyBaggetProperty, getPropertyKeys, putProperty
- 
Field Details- 
RECONNECT_SOURCEConstant used to indicate that the source end of an existing connection is being reconnected to a new source node.
- 
RECONNECT_TARGETConstant used to indicate that the target end of an existing connection is being reconnected to a new target node.
 
- 
- 
Constructor Details- 
ReconnectionContextpublic ReconnectionContext(Connection connection, Anchor oldAnchor, Anchor newAnchor, ILocation targetLocation) Creates a newReconnectionContext.- Parameters:
- connection- the connection
- oldAnchor- the old anchor
- newAnchor- the new anchor
 
 
- 
- 
Method Details- 
getConnectionGets the connection.- Specified by:
- getConnectionin interface- IReconnectionContext
- Returns:
- Returns the connection.
 
- 
setConnectionSets the connection.- Parameters:
- connection- The connection to set.
 
- 
getNewAnchorGets the new anchor.- Specified by:
- getNewAnchorin interface- IReconnectionContext
- Returns:
- Returns the newAnchor.
 
- 
setNewAnchorSets the new anchor.- Parameters:
- newAnchor- The newAnchor to set.
 
- 
getOldAnchorGets the old anchor.- Specified by:
- getOldAnchorin interface- IReconnectionContext
- Returns:
- Returns the oldAnchor.
 
- 
setOldAnchorSets the old anchor.- Parameters:
- oldAnchor- The oldAnchor to set.
 
- 
getTargetPictogramElementDescription copied from interface:IReconnectionContextGets the target pictogram element.- Specified by:
- getTargetPictogramElementin interface- IReconnectionContext
- Returns:
- the target pictogram element
 
- 
setTargetPictogramElementDescription copied from interface:IReconnectionContextSets the target pictogram element.- Specified by:
- setTargetPictogramElementin interface- IReconnectionContext
- Parameters:
- targetPictogramElement- the new target pictogram element
 
- 
toString- Overrides:
- toStringin class- DefaultContext
 
- 
getReconnectTypeIndicate whether the end of an existing connection is being reconnected to a new source node or a new target node.- Specified by:
- getReconnectTypein interface- IReconnectionContext
- Returns:
- RECONNECT_TARGETor- RECONNECT_SOURCE
 
- 
setReconnectTypeSets the reconnection type.RECONNECT_TARGETorRECONNECT_SOURCE- Parameters:
- reconnectType-
 
- 
getTargetLocation- Specified by:
- getTargetLocationin interface- IReconnectionContext
- Returns:
- the targetLocation
 
- 
setTargetLocation- Parameters:
- targetLocation- the targetLocation to set
 
 
-