Packagecom.yworks.graph.model
Interfacepublic interface ILabeledItem
SubinterfacesIEdge, INode

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

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



Public Properties
 PropertyDefined by
  labels : ILabelCollection
[read-only] Provides access to a collection of ILabels that are owned by this instance.
ILabeledItem
Property detail
labelsproperty
labels:ILabelCollection  [read-only]

Provides access to a collection of ILabels that are owned by this instance.

This gives access to a read-only live view of the labels, i.e. the collection can change over time, as well as the labels contained in it. If a snapshot of the current state is needed, one needs to copy the collection and its contents.

Implementation
    public function get labels():ILabelCollection