public interface IBend extends IModelItem
IGraph implementation to control the layout of edges.
This interface provides read-only access to the properties of a bend. In order to modify the state of an instance use
the various methods provided by the IGraph this instance belongs to. Bends are stored in
IListEnumerables, that can be obtained from the IEdge implementation that
owns this bend. Like all items in an IGraph, this item supports the ILookup.lookup(java.lang.Class)
method that can be used to query additional aspects of the item.
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.
Some useful static methods can be found inGraphExtensions.| Modifier and Type | Method and Description |
|---|---|
default int |
getIndex()
Gets the index of the bend at its
Owner. |
IPoint |
getLocation()
Gets a view of the location of the bend in the world coordinate system.
|
IEdge |
getOwner()
Returns the edge this bend instance belongs to.
|
createDictionaryLookup, createDynamic, createSingle, createSingle, createWrapped, lookup, lookup, lookup, safeLookupdefault int getIndex()
Owner.Bends list; -1 if the bend is not part of an
edge.IPoint getLocation()
The X and Y properties describe the location of the bend in the world
coordinate system. This property is a live view of the location and will be updated in the future if the location
changes. To keep the current state of the location, callers need to create a copy of it
IPoint.toPointD()IEdge getOwner()
This implies that Owner.Bends contains this instance.