The interface used in an IGraph implementation to control the layout of edges.
Remarks
IGraph
, this item supports the lookup method that can be used to query additional aspects of the item.Examples
Related Reading in the Developer's Guide
The graph model with all relevant types and their relationships is presented in detail in the section The Graph Model.
Using the look-up mechanism is explained in the section Service Locator Pattern: Lookup.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graph.IBend
See Also
Properties
Gets the index of the bend at its owner.
See Also
Gets the location of the bend in the world coordinate system.
Remarks
Provides a live view of the location which will be updated when the location changes. To keep the current state of the location, callers need to create a copy of it, e.g. by calling toPoint on it.
To change the location for instances of the default implementation that were created via the factory methods on IGraph, use setBendLocation
Examples
See Also
Gets the edge this bend instance belongs to.
Remarks
This implies that Owner.Bends
contains this instance.
Note that for instances of the default implementation that were created via the factory methods on IGraph, the owner can't be changed after creation and the bend has to be deleted and recreated with a new owner.
Examples
See Also
Gets or sets the tag associated with this instance.
Remarks
Examples
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
$class
property on JavaScript classes inheriting from yFiles classes is only valid once an instance of this subclass was created. Call fixType, first or instantiate the class at least once.