Packagecom.yworks.graph.model
Classpublic class ExtendedNodeLabelCandidate
InheritanceExtendedNodeLabelCandidate Inheritance NodeLabelCandidate Inheritance LabelCandidate Inheritance YObject Inheritance Object

A subclass of NodeLabelCandidate 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.
ExtendedNodeLabelCandidate
 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
  
ExtendedNodeLabelCandidate(orientedBox:YOrientedRectangle, param:Object, owner:NodeLabelLayout, _internal:Boolean, descriptor:ILabelCandidateDescriptor, init:Boolean = true)
Creates a new instance of ExtendedNodeLabelCandidate.
ExtendedNodeLabelCandidate
 Inherited
equals(o:Object):Boolean
YObject
 Inherited
getClass():Class
[override]
NodeLabelCandidate
 Inherited
hashCode():int
YObject
  
newExtendedNodeLabelCandidate(pos:YPoint, size:YDimension, param:Object, owner:NodeLabelLayout, descriptor:ILabelCandidateDescriptor, _internal:Boolean = false):ExtendedNodeLabelCandidate
[static] Returns a new instance of ExtendedNodeLabelCandidate.
ExtendedNodeLabelCandidate
 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
newNodeLabelCandidate1(orientedBox:YOrientedRectangle, param:Object, owner:NodeLabelLayout, _internal:Boolean):NodeLabelCandidate
[static] Returns a new instance of NodeLabelCandidate.
NodeLabelCandidate
 Inherited
[static] Returns a new instance of NodeLabelCandidate.
NodeLabelCandidate
 Inherited
newNodeLabelCandidate3(pos:YPoint, size:YDimension, param:Object, owner:NodeLabelLayout, _internal:Boolean):NodeLabelCandidate
[static] Returns a new instance of NodeLabelCandidate.
NodeLabelCandidate
 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
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
 Inherited
initNodeLabelCandidate1(orientedBox:YOrientedRectangle, param:Object, owner:NodeLabelLayout, _internal:Boolean):void
Initializes this object.
NodeLabelCandidate
 Inherited
initNodeLabelCandidate2(pos:YPoint, size:YDimension, param:Object, owner:NodeLabelLayout):void
Initializes this object.
NodeLabelCandidate
 Inherited
initNodeLabelCandidate3(pos:YPoint, size:YDimension, param:Object, owner:NodeLabelLayout, _internal:Boolean):void
Initializes this object.
NodeLabelCandidate
Property Detail
descriptorproperty
descriptor:ILabelCandidateDescriptor  [read-only]

Gets the label candidate descriptor.


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

Creates a new instance of ExtendedNodeLabelCandidate.

Parameters
orientedBox:YOrientedRectangle — The label size and orientation.
 
param:Object — The parameters of the labeling model associated with this candidate.
 
owner:NodeLabelLayout — The label associated with the candidate.
 
_internal:Boolean — Flag whether the candidate is inside the node.
 
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
newExtendedNodeLabelCandidate()method
public static function newExtendedNodeLabelCandidate(pos:YPoint, size:YDimension, param:Object, owner:NodeLabelLayout, descriptor:ILabelCandidateDescriptor, _internal:Boolean = false):ExtendedNodeLabelCandidate

Returns a new instance of ExtendedNodeLabelCandidate.

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:NodeLabelLayout — The label associated with the candidate.
 
descriptor:ILabelCandidateDescriptor — The label candidate descriptor.
 
_internal:Boolean (default = false) — Flag whether the candidate is inside the node or outside.

Returns
ExtendedNodeLabelCandidate — A new instance of ExtendedNodeLabelCandidate