public class ExtendedLabelCandidateProfitModel extends Object implements IProfitModel
IProfitModel
that returns the profit of a label candidate for instances of ExtendedNodeLabelCandidate
and ExtendedEdgeLabelCandidate
.
This class is used by LayoutExecutor
and LayoutGraphAdapter
to convert an IGraph
into a corresponding
Graph
. Unless that conversion needs to be customized, or aforementioned classes
cannot be used, this class usually doesn't need to be used explicitly.
Constructor and Description |
---|
ExtendedLabelCandidateProfitModel() |
Modifier and Type | Method and Description |
---|---|
double |
getProfit(LabelCandidate candidate)
Returns the profit for placing a label-candidate.
|
public final double getProfit(LabelCandidate candidate)
This implementation returns the profit for instances of ExtendedNodeLabelCandidate
or 0.0 for other
LabelCandidate
s.
getProfit
in interface IProfitModel
candidate
- a label candidate