Packagecom.yworks.graph.model
Classpublic class ExtendedLabelCandidateProfitModel
InheritanceExtendedLabelCandidateProfitModel Inheritance Object
Implements ProfitModel

An implementation of ProfitModel that returns tha profit of a label candidate for instances of ExtendedNodeLabelCandidate and ExtendedEdgeLabelCandidate.



Public Methods
 MethodDefined By
  
getProfit(candidate:LabelCandidate):Number
Returns the profit for placing a label-candidate.
ExtendedLabelCandidateProfitModel
Method Detail
getProfit()method
public function getProfit(candidate:LabelCandidate):Number

Returns the profit for placing a label-candidate.

This implementation returns the profit for instances of ExtendedNodeLabelCandidate and ExtendedEdgeLabelCandidate or 0 for other LabelCandidates.

Parameters

candidate:LabelCandidate — A label candidate.

Returns
Number — A value between 0 and 1.