Package | com.yworks.graph.model |
Class | public class ExtendedLabelCandidateProfitModel |
Inheritance | ExtendedLabelCandidateProfitModel Object |
Implements | ProfitModel |
ProfitModel
that returns tha profit of a label candidate
for instances of ExtendedNodeLabelCandidate
and ExtendedEdgeLabelCandidate
.
Method | Defined By | ||
---|---|---|---|
getProfit(candidate:LabelCandidate):Number
Returns the profit for placing a label-candidate. | ExtendedLabelCandidateProfitModel |
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 LabelCandidate
s.
Parameters
candidate:LabelCandidate — A label candidate.
|
Number — A value between 0 and 1.
|