C

InsideOutsidePortLabelModel

A label model for labels at node ports which places the label either inside or outside of the owner node of the port, according to the node border that is closest to the port position.
ImplementsInheritance Hierarchy

Members

No filters for this type

Constructors

Creates a new instance of this model with default values.

Parameters

Properties

Gets or sets the distance between the owner IPort and the closest border of the ILabel.
The default value is 5.
final

Methods

Creates a parameter which places the label inside of the IPort's owner node.
final

Return Value

InsideOutsidePortLabelModelParameter
A parameter which places the label inside of the IPort's owner node.
Creates a parameter which places the label outside of the IPort's owner node.
final

Return Value

InsideOutsidePortLabelModelParameter
A parameter which places the label outside of the IPort's owner node.
Provides a lookup context for the given label.
final

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.
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.