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 Summary
-
Constructor Summary
ConstructorDescriptionReconnectionContext
(Connection connection, Anchor oldAnchor, Anchor newAnchor, ILocation targetLocation) Creates a newReconnectionContext
. -
Method Summary
Modifier 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.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.toString()
Methods inherited from class org.eclipse.graphiti.PropertyBag
getProperty, getPropertyKeys, putProperty
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 Details
-
RECONNECT_SOURCE
Constant used to indicate that the source end of an existing connection is being reconnected to a new source node. -
RECONNECT_TARGET
Constant used to indicate that the target end of an existing connection is being reconnected to a new target node.
-
-
Constructor Details
-
ReconnectionContext
public ReconnectionContext(Connection connection, Anchor oldAnchor, Anchor newAnchor, ILocation targetLocation) Creates a newReconnectionContext
.- Parameters:
connection
- the connectionoldAnchor
- the old anchornewAnchor
- the new anchor
-
-
Method Details
-
getConnection
Gets the connection.- Specified by:
getConnection
in interfaceIReconnectionContext
- Returns:
- Returns the connection.
-
setConnection
Sets the connection.- Parameters:
connection
- The connection to set.
-
getNewAnchor
Gets the new anchor.- Specified by:
getNewAnchor
in interfaceIReconnectionContext
- Returns:
- Returns the newAnchor.
-
setNewAnchor
Sets the new anchor.- Parameters:
newAnchor
- The newAnchor to set.
-
getOldAnchor
Gets the old anchor.- Specified by:
getOldAnchor
in interfaceIReconnectionContext
- Returns:
- Returns the oldAnchor.
-
setOldAnchor
Sets the old anchor.- Parameters:
oldAnchor
- The oldAnchor to set.
-
getTargetPictogramElement
Description copied from interface:IReconnectionContext
Gets the target pictogram element.- Specified by:
getTargetPictogramElement
in interfaceIReconnectionContext
- Returns:
- the target pictogram element
-
setTargetPictogramElement
Description copied from interface:IReconnectionContext
Sets the target pictogram element.- Specified by:
setTargetPictogramElement
in interfaceIReconnectionContext
- Parameters:
targetPictogramElement
- the new target pictogram element
-
toString
- Overrides:
toString
in classDefaultContext
-
getReconnectType
Indicate whether the end of an existing connection is being reconnected to a new source node or a new target node.- Specified by:
getReconnectType
in interfaceIReconnectionContext
- Returns:
RECONNECT_TARGET
orRECONNECT_SOURCE
-
setReconnectType
Sets the reconnection type.RECONNECT_TARGET
orRECONNECT_SOURCE
- Parameters:
reconnectType
-
-
getTargetLocation
- Specified by:
getTargetLocation
in interfaceIReconnectionContext
- Returns:
- the targetLocation
-
setTargetLocation
- Parameters:
targetLocation
- the targetLocation to set
-