y.layout
Class LabelRanking
java.lang.Object
|
+--y.layout.LabelRanking
- All Implemented Interfaces:
- ProfitModel
- public class LabelRanking
- extends Object
- implements ProfitModel
Implements the ranking for edge and node labels for Graph2D.
Node label positions have no ranking for the moment, they are all
equal to 1.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabelRanking
public LabelRanking()
getProfit
public double getProfit(LabelCandidate candidate)
- Description copied from interface:
ProfitModel
- Returns the profit for placing a label-candidate.
Higher profit means higher probability that the candidate is choosen
by a labeling algorithm.
- Specified by:
getProfit in interface ProfitModel
- Parameters:
candidate - a label candidate
- Returns:
- a value between 0 and 1.