A NodeLabelCandidate that provides a candidate descriptor.
Remarks
Type Details
- yfiles module
- view-layout-bridge
- yfiles-umd modules
- view-layout-bridge
- Legacy UMD name
- yfiles.layout.ExtendedNodeLabelCandidate
Constructors
ExtendedNodeLabelCandidate
(pos: YPoint, size: YDimension, param: Object, owner: INodeLabelLayout, descriptor: ILabelCandidateDescriptor)Returns a new instance of ExtendedNodeLabelCandidate.
Parameters
A map of options to pass to the method.
- 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 - INodeLabelLayout
- the label associated to the candidate.
- descriptor - ILabelCandidateDescriptor
- the label candidate descriptor.
ExtendedNodeLabelCandidate
(orientedBox: YOrientedRectangle, param: Object, owner: INodeLabelLayout, internal: boolean, descriptor: ILabelCandidateDescriptor)Returns a new instance of ExtendedNodeLabelCandidate.
Parameters
A map of options to pass to the method.
- orientedBox - YOrientedRectangle
- the label size and orientation
- param - Object
- the parameters of the labeling model associated with this candidate.
- owner - INodeLabelLayout
- the label associated to the candidate.
- internal - boolean
- flag whether the candidate is inside the node, or outside.
- descriptor - ILabelCandidateDescriptor
- the label candidate descriptor.
ExtendedNodeLabelCandidate
(pos: YPoint, size: YDimension, param: Object, owner: INodeLabelLayout, internal: boolean, descriptor: ILabelCandidateDescriptor)Returns a new instance of ExtendedNodeLabelCandidate.
Parameters
A map of options to pass to the method.
- 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 - INodeLabelLayout
- the label associated to the candidate.
- internal - boolean
- flag whether the candidate is inside the node, or outside.
- descriptor - ILabelCandidateDescriptor
- the label candidate descriptor.
Properties
Gets the bounding box of this candidate.
Remarks
Implements
Gets the oriented box of this candidate.
Gets or sets the custom profit for this candidate.
Remarks
The profit describes the priority of this candidate with respect to other candidates. Labeling algorithms will use the profit to decide which candidate to choose.
The value is restricted to the interval [0,1]
, where 1
specifies the highest possible profit.
Default Value
0
.Throws
- Exception({ name: 'ArgumentError' })
- if the specified value lies outside of
[0,1]
Defined in
Gets the label candidate descriptor.
Gets or sets a penalty for a candidate position that overlaps the path of an edge.
Remarks
0
and 1
, where 0
means that an overlap is considered unimportant and 1
means that an overlap is considered severe.Default Value
1
.Throws
- Exception({ name: 'ArgumentError' })
- if the specified penalty is outside
[0,1]
Defined in
Gets the height of the candidate's bounding box.
Remarks
See Also
Defined in
Gets whether or not this candidate describes an internal label.
Gets the coordinates of the upper-left corner of the candidate's bounds.
Remarks
See Also
Defined in
Gets the model parameter that was used by the underlying model to generate this label candidate.
Defined in
Gets or sets a penalty for a candidate position that overlaps the box of a node.
Remarks
0
and 1
, where 0
means that an overlap is considered unimportant and 1
means that an overlap is considered severe.Default Value
1
.Throws
- Exception({ name: 'ArgumentError' })
- if the specified penalty is outside
[0,1]
Defined in
Gets the sum of node overlap penalty and edge overlap penalty.
See Also
Defined in
Gets the ILabelLayout for which this candidate was created.
Defined in
Gets whether or not this candidate's box had already been chosen by the labeling algorithm.
Remarks
See Also
Defined in
Gets the width and height of the candidate's bounds.
Remarks
See Also
Defined in
Gets the width of the candidate's bounds.
Remarks
See Also
Defined in
Gets the minimum x-coordinate of the candidate's bounds.
Remarks
See Also
Defined in
Gets the minimum y-coordinate of the candidate's bounds.
Remarks
See Also
Defined in
Methods
Replaces the model parameter and box of the owner with the model parameter and box of this candidate.
Remarks
See Also
Defined in
Returns a string representation of this LabelCandidate.
Remarks
Returns
- ↪string
- a representation of the candidate