Packagecom.yworks.graph.model
Classpublic class AbstractLabeledItem
InheritanceAbstractLabeledItem Inheritance AbstractModelItem Inheritance Object
Subclasses DefaultEdge, DefaultNode

Base class for ILabeledItem instances.



Public Properties
 PropertyDefined By
  labels : ILabelCollection
The collection for the labels.
AbstractLabeledItem
Protected Properties
 PropertyDefined By
 Inherited_lookupMap : IMapper
The map which is used by registerLookup() to store instances in.
AbstractModelItem
Public Methods
 MethodDefined By
  
AbstractLabeledItem(labelCollection:ILabelCollection, lookup:ILookup = null)
Creates a new instance using the given collection of labels and a lookup that can optionally be provided.
AbstractLabeledItem
 Inherited
Returns the currently set ILookup delegate.
AbstractModelItem
 Inherited
lookup(type:Class):Object
Simple lookup implementation that tries to find a registered lookup.
AbstractModelItem
 Inherited
registerLookup(type:Class, instance:Object):void
Register an implementation for the given type that should be returned when lookup is called with this given type.
AbstractModelItem
 Inherited
Sets the ILookup implementation used for lookup calls on this instance.
AbstractModelItem
Property Detail
labelsproperty
labels:ILabelCollection

The collection for the labels.


Implementation
    public function get labels():ILabelCollection
    public function set labels(value:ILabelCollection):void
Constructor Detail
AbstractLabeledItem()Constructor
public function AbstractLabeledItem(labelCollection:ILabelCollection, lookup:ILookup = null)

Creates a new instance using the given collection of labels and a lookup that can optionally be provided.

Parameters
labelCollection:ILabelCollection — The collection to use.
 
lookup:ILookup (default = null) — The lookup delegate to use.