C

PortDefaults

A canonical implementation of the IPortDefaults interface.
ImplementsInheritance Hierarchy

Members

No filters for this type

Constructors

Initializes a new instance of the PortDefaults class using a trivial location model parameter.

Parameters

Properties

Gets or sets whether unused ports should automatically be removed from their owners as soon as no further edge is connected to them.
Gets or sets the defaults for labels at ports.
final
Gets or sets the location model parameter to use for ports.
Depending on the setting of shareLocationParameterInstance, the getLocationParameterInstance method should return a clone of this instance or the very same instance.
final
Gets or sets a value indicating whether the locationParameter instance should be shared referentially or cloned upon a call to getLocationParameterInstance.
Gets or sets a value indicating whether the style instance should be shared referentially or cloned upon a call to getStyleInstance.
Gets or sets the style to use for ports.
Depending on the setting of shareStyleInstance, the getStyleInstance method should return a clone of this instance or the very same instance.
final

Methods

Factory method that returns a location model parameter instance for use with newly created ports.
Most implementations will yield either a clone or the locationParameter property if shareLocationParameterInstance is enabled, but they might use more complicated logic, too.

Parameters

owner: IPortOwner
The owner of the port that will be created.

Return Value

IPortLocationModelParameter
The parameter to use, which for most implementations is either a clone or the locationParameter property if shareLocationParameterInstance is enabled.
Factory method that returns a style instance for use with newly created ports.
Most implementations will yield either, a clone of or the style property, if shareStyleInstance is enabled, but they might use more complicated logic, too.

Parameters

owner: IPortOwner
The owner of the port that will be created.

Return Value

IPortStyle
The style to use, which for most implementations is either a clone of or the style property, if shareStyleInstance is enabled.