Class CreateConnectionContext
java.lang.Object
org.eclipse.graphiti.PropertyBag
org.eclipse.graphiti.internal.features.context.impl.base.DefaultContext
org.eclipse.graphiti.features.context.impl.CreateConnectionContext
- All Implemented Interfaces:
IConnectionContext,IContext,ICreateConnectionContext,IPropertyBag
The Class CreateConnectionContext.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the source anchor.Gets the source pictogram element.Gets the target anchor.Gets the target pictogram element.voidsetSourceAnchor(Anchor sourceAnchor) Sets the source anchor.voidsetSourceLocation(ILocation sourceLocation) voidsetSourcePictogramElement(PictogramElement sourcePictogramElement) Sets the source pictogram element.voidsetTargetAnchor(Anchor targetAnchor) Sets the target anchor.voidsetTargetLocation(ILocation targetLocation) voidsetTargetPictogramElement(PictogramElement targetPictogramElement) Sets the target pictogram element.toString()Methods inherited from class org.eclipse.graphiti.PropertyBag
getProperty, getPropertyKeys, putPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.graphiti.IPropertyBag
getProperty, getPropertyKeys, putProperty
-
Constructor Details
-
CreateConnectionContext
public CreateConnectionContext()Creates a newCreateConnectionContext.
-
-
Method Details
-
getSourceAnchor
Description copied from interface:IConnectionContextGets the source anchor.- Specified by:
getSourceAnchorin interfaceIConnectionContext- Returns:
- the source anchor
-
getTargetAnchor
Description copied from interface:IConnectionContextGets the target anchor.- Specified by:
getTargetAnchorin interfaceIConnectionContext- Returns:
- the target anchor
-
setSourceAnchor
Sets the source anchor.- Parameters:
sourceAnchor- The sourceAnchor to set.
-
setTargetAnchor
Sets the target anchor.- Parameters:
targetAnchor- The targetAnchor to set.
-
getSourcePictogramElement
Description copied from interface:ICreateConnectionContextGets the source pictogram element.- Specified by:
getSourcePictogramElementin interfaceICreateConnectionContext- Returns:
- the source pictogram element
-
getTargetPictogramElement
Description copied from interface:ICreateConnectionContextGets the target pictogram element.- Specified by:
getTargetPictogramElementin interfaceICreateConnectionContext- Returns:
- the target pictogram element
-
setSourcePictogramElement
Sets the source pictogram element.- Parameters:
sourcePictogramElement- the new source pictogram element
-
setTargetPictogramElement
Sets the target pictogram element.- Parameters:
targetPictogramElement- the new target pictogram element
-
toString
- Overrides:
toStringin classDefaultContext
-
getSourceLocation
- Specified by:
getSourceLocationin interfaceICreateConnectionContext- Returns:
- the sourceLocation
- Since:
- 0.8
-
setSourceLocation
- Parameters:
sourceLocation- the sourceLocation to set- Since:
- 0.8
-
getTargetLocation
- Specified by:
getTargetLocationin interfaceICreateConnectionContext- Returns:
- the targetLocation
- Since:
- 0.8
-
setTargetLocation
- Parameters:
targetLocation- the targetLocation to set- Since:
- 0.8
-