public interface ILabelCandidateDescriptor
Typically, instances of this interface are created by an implementation of ILabelCandidateDescriptorProvider
for
a pair of an ILabel
and a ILabelModelParameter
that describes a potential
placement of that label (a 'candidate').
ILabelCandidateDescriptorProvider
Modifier and Type | Method and Description |
---|---|
double |
getEdgeOverlapPenalty()
Gets a penalty value that is used by labeling algorithms to judge the severity if this candidate overlaps with an edge
path.
|
double |
getNodeOverlapPenalty()
Gets a penalty value that is used by labeling algorithms to judge the severity if this label candidate overlaps with a
node's bounds.
|
double |
getProfit()
Gets a profit value that is used by labeling algorithms to judge how good this label candidate is.
|
boolean |
isExternalCandidate()
Gets a value indicating whether this candidate is deemed an external candidate.
|
double getEdgeOverlapPenalty()
This value must be between 0 and 1 (inclusive). A value of 0 means that an overlap is considered not important, while a value of 1 means that an overlap is considered severe.
double getNodeOverlapPenalty()
This value must be between 0 and 1 (inclusive). A value of 0 means that an overlap is considered not important, while a value of 1 means that an overlap is considered severe.
double getProfit()
This value must be between 0 and 1 (inclusive). Higher profit means better candidates. Hence, there is a higher probability that the candidate is chosen by a labeling algorithm.
boolean isExternalCandidate()
This is mainly for INode
labels that are a visual part of the node's internals. It could
be used for edge labels, too, if the edge occupies significant amounts of visual space.
true
if this describes an external candidate; false
otherwise.