Package | com.yworks.yfiles.layout |
Interface | public interface ProfitModel |
Implementors | ExtendedLabelCandidateProfitModel, LabelRanking |
Method | Defined By | ||
---|---|---|---|
getProfit(candidate:LabelCandidate):Number
Returns the profit for placing a label-candidate. | ProfitModel |
getProfit | () | method |
public function getProfit(candidate:LabelCandidate):Number
Returns the profit for placing a label-candidate. Higher profit means higher probability that the candidate is chosen by a labeling algorithm.
Parameters
candidate:LabelCandidate — a label candidate
|
Number — a value between 0 and 1.
|