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.


Constructor Summary
LabelRanking()
           
 
Method Summary
 double getProfit(LabelCandidate candidate)
          Returns the profit for placing a label-candidate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelRanking

public LabelRanking()
Method Detail

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.

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003