A label model for node labels that lie outside the node's layout bounds.
Implements
- I
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.
See Also
Developer's Guide
Members
No filters for this type
Constructors
Properties
Gets or sets the margins around the node.
Gets or sets the margins around the node.
The default is
(2,2,2,2)conversion
Methods
Creates a new parameter that is associated with this instance for the provided position.
Creates a new parameter that is associated with this instance for the provided position.
Parameters
- position: ExteriorNodeLabelModelPosition
- The position constant that describes the position of the label.
Return Value
- ExteriorNodeLabelModelParameter
- A new parameter instance.
Provides a lookup context for the given label.
Provides a lookup context for the given label.
Parameters
- label: ILabel
- The label to use in the context.
Return Value
- ILookup
- An implementation of the ILookup interface that can be used to query additional aspects of the label.
Implements
ILabelModel.getContextCalculates the geometry of the given label using the given model parameter.
Calculates the geometry of the given label using the given model parameter.
final
Parameters
- 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.
Return Value
- 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
ILabelModel.getGeometryConstants
A predefined parameter instance that places the label outside the node at the bottom.
A predefined parameter instance that places the label outside the node at the bottom.
This parameter's model is immutable. Trying to change its margins property will raise an InvalidOperationError.
static
Sample Graphs
A predefined parameter instance that places the label outside the node at the lower left corner.
A predefined parameter instance that places the label outside the node at the lower left corner.
This parameter's model is immutable. Trying to change its margins property will raise an InvalidOperationError.
static
Sample Graphs
A predefined parameter instance that places the label outside the node at the lower right corner.
A predefined parameter instance that places the label outside the node at the lower right corner.
This parameter's model is immutable. Trying to change its margins property will raise an InvalidOperationError.
static
Sample Graphs
A predefined parameter instance that places the label outside the node on the left side.
A predefined parameter instance that places the label outside the node on the left side.
This parameter's model is immutable. Trying to change its margins property will raise an InvalidOperationError.
static
Sample Graphs
A predefined parameter instance that places the label outside the node on the right side.
A predefined parameter instance that places the label outside the node on the right side.
This parameter's model is immutable. Trying to change its margins property will raise an InvalidOperationError.
static
Sample Graphs
A predefined parameter instance that places the label outside the node at the top.
A predefined parameter instance that places the label outside the node at the top.
This parameter's model is immutable. Trying to change its margins property will raise an InvalidOperationError.
static
Sample Graphs
A predefined parameter instance that places the label outside the node at the upper left corner.
A predefined parameter instance that places the label outside the node at the upper left corner.
This parameter's model is immutable. Trying to change its margins property will raise an InvalidOperationError.
static
Sample Graphs
A predefined parameter instance that places the label outside the node at the upper right corner.
A predefined parameter instance that places the label outside the node at the upper right corner.
This parameter's model is immutable. Trying to change its margins property will raise an InvalidOperationError.
static