Packagecom.yworks.graph.model
Interfacepublic interface ILabeledItem extends IModelItem, ILookup

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

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
Public Methods
 MethodDefined By
 Inherited
lookup(type:Class):Object
Returns an instance that implements the given type or null.
ILookup
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