Package | com.yworks.graph.model |
Interface | public interface ILabeledItem extends IModelItem, ILookup |
IGraph
implementation
that may own ILabel
s.
Like all items in an IGraph
, this item supports the
ILookup.lookup
method that can be used
to query additional aspects of the item.
Property | Defined By | ||
---|---|---|---|
labels : ILabelCollection [read-only]
Provides access to a collection of ILabels that
are owned by this instance. | ILabeledItem |
labels | property |
labels:ILabelCollection
[read-only]
Provides access to a collection of ILabel
s 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.
public function get labels():ILabelCollection