A label model for node labels that lie outside the node's layout bounds.
Remarks
This label model supports eight positions outside the layout's bounds.
It uses the label's preferredSize for the size of the label layout.
Type Details
- yFiles module
- view
Sample Graphs
Constructors
Properties
Gets or sets the margins around the node.
Remarks
(2,2,2,2)
Methods
Creates a new parameter that is associated with this instance for the provided position.
Parameters
A map of options to pass to the method.
- position - ExteriorNodeLabelModelPosition
- The position constant that describes the position of the label.
Returns
- ↪ExteriorNodeLabelModelParameter
- A new parameter instance.
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 outside the node at the bottom.
Remarks
Sample Graphs
A predefined parameter instance that places the label outside the node at the lower left corner.
Remarks
Sample Graphs
A predefined parameter instance that places the label outside the node at the lower right corner.
Remarks
Sample Graphs
A predefined parameter instance that places the label outside the node on the left side.
Remarks
Sample Graphs
A predefined parameter instance that places the label outside the node on the right side.
Remarks
Sample Graphs
A predefined parameter instance that places the label outside the node at the top.
Remarks
Sample Graphs
A predefined parameter instance that places the label outside the node at the upper left corner.
Remarks
Sample Graphs
A predefined parameter instance that places the label outside the node at the upper right corner.