A mutable implementation of the IPort interface that can be used without an IGraph.
Remarks
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graph.SimplePort
Constructors
Creates a port with a default lookup using the given location and owner.
Remarks
null
here, this can cause issues, e.g. with port location models that position the port relative to its owner.Parameters
A map of options to pass to the method.
- owner - IPortOwner
- The port's owner.
- locationParameter - IPortLocationModelParameter
- The port's location model parameter.
- style - IPortStyle
The style that is responsible for the visual representation of this port in a CanvasComponent. This option sets the style property on the created object.
- tag - Object
- labels - IListEnumerable<ILabel>
Properties
Gets a live view of the location of the port in world coordinates.
Remarks
See Also
Defined in
Gets or sets the collection of labels that are owned by this instance.
Gets a snapshot of the current location of the port.
Remarks
See Also
Defined in
Gets or sets the IPortLocationModelParameter that is used to determine the location of this port.
Remarks
The port location can be calculated using the model's getLocation method or methods location and dynamicLocation.
Note that parameters may be shared across port instances.
See Also
Implements
Gets or sets the owner of this port.
Gets or sets the style that is responsible for the visual representation of this port in a CanvasComponent.
Remarks
See Also
Implements
Gets or sets the tag associated with this instance.
Remarks
See Also
Implements
Methods
Returns an instance that implements the given type or null
.
Remarks
null
implementations for the types, nor does it have to return the same instance any time. Also it depends on the type and context whether the instance returned stays up to date or needs to be reobtained for subsequent use.Type Parameters
- T: any
Parameters
A map of options to pass to the method.
- type - Class<T>
- The type for which an instance shall be returned.
Returns
- ↪T
- an instance that is assignable to type or
null
See Also
Implements
Sets the location of this port.