An edge label model that places labels at positions near the source port, target port, or the center of the edge.
Remarks
Type Details
- yFiles module
- view
Sample Graphs
Constructors
Initializes a new instance of the NinePositionsEdgeLabelModel class.
Parameters
A map of options to pass to the method.
- distance - number
- The distance.
- angle - number
- The angle.
Properties
Methods
createParameter
(position: NinePositionsEdgeLabelModelPosition) : NinePositionsEdgeLabelModelParameterCreate a model parameter for the specified position
Parameters
A map of options to pass to the method.
- position - NinePositionsEdgeLabelModelPosition
- The position for this parameter
Returns
- ↪NinePositionsEdgeLabelModelParameter
- a model parameter for the specified
position
Provides a lookup context for the given label.
Calculates the geometry of the given label using the given model parameter.
Parameters
A map of options to pass to the method.
- label - ILabel
- The label to calculate the geometry for.
- layoutParameter - ILabelModelParameter
- A parameter that is compatible with this model. Typically, this is a parameter that has been created by this model, and its property model returns this instance.
Returns
- ↪IOrientedRectangle
- An IOrientedRectangle that describes the geometry of the label. This is typically designed as a flyweight, therefore clients should not cache the instance but store the values if they need a snapshot for later use.
Implements
Constants
A predefined parameter instance that places the label at the center above the edge.
Remarks
Sample Graphs
A predefined parameter instance that places the label at the center below the edge.
Remarks
Sample Graphs
A predefined parameter instance that places the label at the center on the edge.
Remarks
Sample Graphs
A predefined parameter instance that places the label at the source port above the edge.
Remarks
Sample Graphs
A predefined parameter instance that places the label at the source port below the edge.
Remarks
Sample Graphs
A predefined parameter instance that places the label at the source port on the edge.
Remarks
Sample Graphs
A predefined parameter instance that places the label at the target port above the edge.
Remarks
Sample Graphs
A predefined parameter instance that places the label at the target port below the edge.
Remarks
Sample Graphs
A predefined parameter instance that places the label at the target port on the edge.