An implementation of the IPortLocationModel that can create IPortLocationModelParameters that describe the location of ports that are attached to the bends of IEdges.
Implements
Inheritance Hierarchy
See Also
Developer's Guide
Members
No filters for this type
Methods
Factory method that creates a parameter for the given owner that tries to match the provided location in absolute world coordinates.
Factory method that creates a parameter for the given
owner that tries to match the provided location in absolute world coordinates.final
Parameters
- owner: IPortOwner
- The port owner that will own the port for which the parameter shall be created.
- location: Pointconversion
- The location in the world coordinate system that should be matched as best as possible.
Return Value
- IPortLocationModelParameter
- A new instance that can be used to describe the location of an IPort at the given
owner.
Implements
IPortLocationModel.createParameterCreates a parameter that indicates the location of the bend with index bendIndex starting from the source side.
Creates a parameter that indicates the location of the bend with index
bendIndex starting from the source side.final
Parameters
- bendIndex: number
- The index of the bend counting from the source side.
Return Value
- BendAnchoredPortLocationModelParameter
- A parameter that anchors the port at a bend.
Creates a parameter that indicates the location of the bend with index bendIndex starting from the target side.
Creates a parameter that indicates the location of the bend with index
bendIndex starting from the target side.final
Parameters
- bendIndex: number
- The index of the bend counting from the target side.
Return Value
- BendAnchoredPortLocationModelParameter
- A parameter that anchors the port at a bend.
Provides a lookup context for the given port.
Provides a lookup context for the given port.
final
Parameters
- port: IPort
- The port to use in the context.
Return Value
Implements
IPortLocationModel.getContextDetermines the location of the port for the given parameter.
Determines the location of the port for the given parameter.
final
Parameters
- port: IPort
- The port to determine the location for.
- locationParameter: IPortLocationModelParameter
- The parameter to use. The parameter can be expected to be created by this instance having the model property set to this instance.
Return Value
- Point
- The calculated location of the port.