A straightforward implementation of an IPortLocationModel
for IPorts at INodes that determine the location
dynamically using the Layout.
Namespace: yWorks.yFiles.UI.PortLocationModelsAssembly: yWorks.yFilesWPF.Viewer (in yWorks.yFilesWPF.Viewer.dll) Version: 2.2.0.2 (2.2.0.2)
Syntax
| C# |
|---|
[SingletonSerializationAttribute] [ObfuscationAttribute(StripAfterObfuscation = false, Exclude = true, ApplyToMembers = true)] public sealed class NodeScaledPortLocationModel : IPortLocationModel, ILookup |
| Visual Basic |
|---|
<SingletonSerializationAttribute> _ <ObfuscationAttribute(StripAfterObfuscation := False, Exclude := True, _ ApplyToMembers := True)> _ Public NotInheritable Class NodeScaledPortLocationModel _ Implements IPortLocationModel, ILookup |
Remarks
Internally the location is stored as the ratio by which the Width
and Height of the Layout need to be scaled to obtain the
offset to the center of the node layout.
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.UI.PortLocationModels..::..NodeScaledPortLocationModel
yWorks.yFiles.UI.PortLocationModels..::..NodeScaledPortLocationModel