documentationfor yFiles for HTML 2.6

ILabelOwner

Common interface for items in an IGraph implementation that may own labels.

Remarks

Like all items in an IGraph, this item supports the lookup method that can be used to query additional aspects of the item.

Examples

Relationship between label and label owner
// add a label to the owner
const label = graph.addLabel(owner, 'Some Text')

// the label's Owner property is set to the owner
console.log(label.owner === owner) // true
// the label is in its owner's Labels collection
console.log(owner.labels.includes(label)) // true

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.graph.ILabelOwner

See Also

Properties

Methods