A mutable implementation of the IBend interface that can be used without an IGraph.
Remarks
Note that this class is not the one used as the default implementation of a DefaultGraph's IBends and casting them to SimpleBend will fail. Instances of this class can be used without an accompanying graph instance. All of the properties are mutable. An example of a possible use case would be the rendering of a SimpleEdge with bends into a graphics context: Simply create two SimpleNodes, a SimpleEdge to connect the two nodes and add instances of this class to the edge's bends model. Then render the edge.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graph.SimpleBend
Constructors
Properties
Gets the index of the bend at its owner.
Gets or sets the location of this bend.
Gets or sets the edge this bend instance belongs to.
Remarks
This implies that
Owner.Bends
contains this instance.See Also
Implements
Gets or sets the tag associated with this instance.
Remarks
The tag is an optional user-defined object which can be used to store arbitrary data related to this item. The item itself does not normally depend on the tag associated with it. It serves as storage for the object only.
See Also
Nodes,
Edges,
Labels,
Ports,
Associating Data with Graph Elements,
Using Data Binding,
Adding Custom Data for Serialization,
Examples for Lookup Decoration
Implements
Gets the current x coordinate of this bend.
Remarks
This delegates to the location instance.
Gets the current y coordinate of this bend.
Remarks
This delegates to the location instance.
Methods
Returns an instance that implements the given type or null
.
Remarks
Typically, this method will be called in order to obtain a different view or aspect of the current instance. This is quite similar to casting or using a super type or interface of this instance, but is not limited to inheritance or compile time constraints. An instance implementing this method is not required to return non-
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
options - Object
A map of options to pass to the method.
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