Packagecom.yworks.graph.model
Classpublic class DescriptorWrapperLabelModel
InheritanceDescriptorWrapperLabelModel Inheritance Object
Implements ILabelModel, ILabelCandidateDescriptorProvider, ILabelModelParameterProvider, ILabelModelParameterFinder, IMarkupExtensionFactory

A label model that wraps an existing label model and decorates it with a ILabelCandidateDescriptor.



Public Properties
 PropertyDefined By
  descriptor : ILabelCandidateDescriptor
Gets or sets the descriptor.
DescriptorWrapperLabelModel
  innerModel : ILabelModel
Gets or sets the wrapped label model.
DescriptorWrapperLabelModel
Public Methods
 MethodDefined By
  
Initializes a new instance of the DescriptorWrapperLabelModel class.
DescriptorWrapperLabelModel
  
DescriptorWrapperLabelModel
  
DescriptorWrapperLabelModel
  
DescriptorWrapperLabelModel
  
DescriptorWrapperLabelModel
  
DescriptorWrapperLabelModel
  
DescriptorWrapperLabelModel
  
DescriptorWrapperLabelModel
  
lookup(type:Class):Object
DescriptorWrapperLabelModel
Property Detail
descriptorproperty
descriptor:ILabelCandidateDescriptor

Gets or sets the descriptor.


Implementation
    public function get descriptor():ILabelCandidateDescriptor
    public function set descriptor(value:ILabelCandidateDescriptor):void
innerModelproperty 
innerModel:ILabelModel

Gets or sets the wrapped label model.


Implementation
    public function get innerModel():ILabelModel
    public function set innerModel(value:ILabelModel):void
Constructor Detail
DescriptorWrapperLabelModel()Constructor
public function DescriptorWrapperLabelModel(innerModel:ILabelModel, descriptor:ILabelCandidateDescriptor = null)

Initializes a new instance of the DescriptorWrapperLabelModel class.

Parameters
innerModel:ILabelModel — The wrapped label model.
 
descriptor:ILabelCandidateDescriptor (default = null) — The descriptor to decorate the label model with.
Method Detail
createDefaultParameter()method
public function createDefaultParameter():ILabelModelParameter

Returns
ILabelModelParameter
createMarkupExtension()method 
public function createMarkupExtension(context:ILookup):MarkupExtension

Parameters

context:ILookup

Returns
MarkupExtension
findBestParameter()method 
public function findBestParameter(label:ILabel, model:ILabelModel, labelLayout:IOrientedRectangle):ILabelModelParameter

Parameters

label:ILabel
 
model:ILabelModel
 
labelLayout:IOrientedRectangle

Returns
ILabelModelParameter
getContext()method 
public function getContext(label:ILabel, parameter:ILabelModelParameter):ILookup

Parameters

label:ILabel
 
parameter:ILabelModelParameter

Returns
ILookup
getDescriptor()method 
public function getDescriptor(label:ILabel, parameter:ILabelModelParameter):ILabelCandidateDescriptor

Parameters

label:ILabel
 
parameter:ILabelModelParameter

Returns
ILabelCandidateDescriptor
getGeometry()method 
public function getGeometry(modelParameter:ILabelModelParameter, label:ILabel):IOrientedRectangle

Parameters

modelParameter:ILabelModelParameter
 
label:ILabel

Returns
IOrientedRectangle
getParameters()method 
public function getParameters(label:ILabel, model:ILabelModel):Iterator

Parameters

label:ILabel
 
model:ILabelModel

Returns
Iterator
lookup()method 
public function lookup(type:Class):Object

Parameters

type:Class

Returns
Object