Packagecom.yworks.graph.model
Classpublic class ExtendedEdgeLabelCandidate
InheritanceExtendedEdgeLabelCandidate Inheritance EdgeLabelCandidate Inheritance LabelCandidate Inheritance YObject Inheritance Object

A subclass of EdgeLabelCandidate that provides a ILabelCandidateDescriptor.

See also

ILabelCandidateDescriptor


Public Properties
 PropertyDefined By
 InheritedboundingBox : YRectangle
[read-only] Returns the bounding box of this label candidate.
LabelCandidate
 Inheritedbox : YOrientedRectangle
[read-only] Returns the real bounds of this label candidate.
LabelCandidate
 InheritedcustomProfit : Number
Specifies the custom profit for this label candidate.
LabelCandidate
  descriptor : ILabelCandidateDescriptor
[read-only] Gets the label candidate descriptor.
ExtendedEdgeLabelCandidate
 InheritededgeOverlapPenalty : Number
Specifies the penalty value for a candidate position that overlaps the path of an edge.
LabelCandidate
 Inheritedheight : Number
[read-only] Returns the height of the label candidate bounds.
LabelCandidate
 Inheritedinternal2 : Boolean
[read-only] Returns whether this candidate is an internal node label, i.e.
LabelCandidate
 Inheritedlocation : YPoint
[read-only] Returns the upper left corner of the label candidate bounds.
LabelCandidate
 InheritedmodelParameter : Object
[read-only] Returns the model parameter that was used by the underlying model to generate this label candidate.
LabelCandidate
 InheritednodeOverlapPenalty : Number
Specifies the penalty for a candidate position that overlaps the bounds of a node.
LabelCandidate
 InheritedoverlapPenalty : Number
[read-only] Returns the sum of node overlap penalty and edge overlap penalty.
LabelCandidate
 Inheritedowner : LabelLayout
[read-only] Returns the LabelLayout to which this candidate box belongs.
LabelCandidate
 Inheritedparameter : Object
[read-only] Returns the model parameter that was used by the underlying model to generate this label candidate.
LabelCandidate
 Inheritedpropagated : Boolean
[read-only] Returns if this box had been chosen by the labeling algorithm.
LabelCandidate
 Inheritedsize : YDimension
[read-only] Returns the width and height of the label candidate bounds.
LabelCandidate
 Inheritedwidth : Number
[read-only] Returns the width of the label candidate bounds.
LabelCandidate
 Inheritedx : Number
[read-only] Returns the minimal x-coordinate of the label candidate bounds.
LabelCandidate
 Inheritedy : Number
[read-only] Returns the minimal y-coordinate of the label candidate bounds.
LabelCandidate
Public Methods
 MethodDefined By
  
ExtendedEdgeLabelCandidate(orientedBox:YOrientedRectangle, param:Object, owner:EdgeLabelLayout, _internal:Boolean, descriptor:ILabelCandidateDescriptor, init:Boolean = true)
Creates a new instance of ExtendedEdgeLabelCandidate.
ExtendedEdgeLabelCandidate
 Inherited
equals(o:Object):Boolean
YObject
 Inherited
getClass():Class
[override]
EdgeLabelCandidate
 Inherited
hashCode():int
YObject
 Inherited
[static] Returns a new instance of EdgeLabelCandidate.
EdgeLabelCandidate
 Inherited
newEdgeLabelCandidate2(orientedBox:YOrientedRectangle, param:Object, owner:EdgeLabelLayout, _internal:Boolean):EdgeLabelCandidate
[static] Returns a new instance of EdgeLabelCandidate.
EdgeLabelCandidate
 Inherited
[static] Returns a new instance of LabelCandidate.
EdgeLabelCandidate
 Inherited
newEdgeLabelCandidate4(pos:YPoint, size:YDimension, param:Object, owner:EdgeLabelLayout, _internal:Boolean):EdgeLabelCandidate
[static] Returns a new instance of EdgeLabelCandidate.
EdgeLabelCandidate
  
newExtendedEdgeLabelCandidate(pos:YPoint, size:YDimension, param:Object, owner:EdgeLabelLayout, descriptor:ILabelCandidateDescriptor, _internal:Boolean = false):ExtendedEdgeLabelCandidate
[static] Returns a new instance of ExtendedEdgeLabelCandidate.
ExtendedEdgeLabelCandidate
 Inherited
[static] Returns a new instance of LabelCandidate.
LabelCandidate
 Inherited
newLabelCandidate2(labelBox:YOrientedRectangle, param:Object, owner:LabelLayout, _internal:Boolean):LabelCandidate
[static] Returns a new instance of LabelCandidate.
LabelCandidate
 Inherited
[static] Returns a new instance of LabelCandidate.
LabelCandidate
 Inherited
newLabelCandidate4(pos:YPoint, size:YDimension, param:Object, owner:LabelLayout, _internal:Boolean):LabelCandidate
[static] Returns a new instance of LabelCandidate.
LabelCandidate
 Inherited
propagate():void
Sets the model parameters of the owner of this label candidate to the model parameters of this candidate box.
LabelCandidate
 Inherited
toString():String
LabelCandidate
Protected Methods
 MethodDefined By
 Inherited
initEdgeLabelCandidate1(orientedBox:YOrientedRectangle, param:Object, owner:EdgeLabelLayout):void
Initializes this object.
EdgeLabelCandidate
 Inherited
initEdgeLabelCandidate2(orientedBox:YOrientedRectangle, param:Object, owner:EdgeLabelLayout, _internal:Boolean):void
Initializes this object.
EdgeLabelCandidate
 Inherited
initEdgeLabelCandidate3(pos:YPoint, size:YDimension, param:Object, owner:EdgeLabelLayout):void
Initializes this object.
EdgeLabelCandidate
 Inherited
initEdgeLabelCandidate4(pos:YPoint, size:YDimension, param:Object, owner:EdgeLabelLayout, _internal:Boolean):void
Initializes this object.
EdgeLabelCandidate
 Inherited
initLabelCandidate1(labelBox:YOrientedRectangle, param:Object, owner:LabelLayout):void
Initializes this object.
LabelCandidate
 Inherited
initLabelCandidate2(labelBox:YOrientedRectangle, param:Object, owner:LabelLayout, _internal:Boolean):void
Initializes this object.
LabelCandidate
 Inherited
initLabelCandidate3(pos:YPoint, size:YDimension, param:Object, owner:LabelLayout):void
Initializes this object.
LabelCandidate
 Inherited
initLabelCandidate4(pos:YPoint, size:YDimension, param:Object, owner:LabelLayout, _internal:Boolean):void
Initializes this object.
LabelCandidate
Property Detail
descriptorproperty
descriptor:ILabelCandidateDescriptor  [read-only]

Gets the label candidate descriptor.


Implementation
    public function get descriptor():ILabelCandidateDescriptor
Constructor Detail
ExtendedEdgeLabelCandidate()Constructor
public function ExtendedEdgeLabelCandidate(orientedBox:YOrientedRectangle, param:Object, owner:EdgeLabelLayout, _internal:Boolean, descriptor:ILabelCandidateDescriptor, init:Boolean = true)

Creates a new instance of ExtendedEdgeLabelCandidate.

Parameters
orientedBox:YOrientedRectangle — The label size and orientation.
 
param:Object — The parameters of the labeling model associated with this candidate.
 
owner:EdgeLabelLayout — The label associated with the candidate.
 
_internal:Boolean — Flag whether the candidate is allowed to overlap the layout of the edge.
 
descriptor:ILabelCandidateDescriptor — The label candidate descriptor.
 
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.
Method Detail
newExtendedEdgeLabelCandidate()method
public static function newExtendedEdgeLabelCandidate(pos:YPoint, size:YDimension, param:Object, owner:EdgeLabelLayout, descriptor:ILabelCandidateDescriptor, _internal:Boolean = false):ExtendedEdgeLabelCandidate

Returns a new instance of ExtendedEdgeLabelCandidate.

Parameters

pos:YPoint — The location of the upper left corner of the candidate.
 
size:YDimension — The size of the candidate.
 
param:Object — The parameters of the labeling model associated with this candidate.
 
owner:EdgeLabelLayout — The label associated with the candidate.
 
descriptor:ILabelCandidateDescriptor — The label candidate descriptor.
 
_internal:Boolean (default = false) — Flag whether the candidate is allowed to overlap the layout of the edge.

Returns
ExtendedEdgeLabelCandidate — A new instance of ExtendedEdgeLabelCandidate