public class ExtendedEdgeLabelCandidate extends EdgeLabelCandidate
EdgeLabelCandidate that provides a candidate descriptor.
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 |
|---|
ExtendedEdgeLabelCandidate(YOrientedRectangle orientedBox,
Object param,
IEdgeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
|
ExtendedEdgeLabelCandidate(YPoint pos,
YDimension size,
Object param,
IEdgeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
|
ExtendedEdgeLabelCandidate(YPoint pos,
YDimension size,
Object param,
IEdgeLabelLayout owner,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
|
| Modifier and Type | Method and Description |
|---|---|
ILabelCandidateDescriptor |
getDescriptor()
Gets the label candidate descriptor.
|
getBoundingBox, getBox, getCustomProfit, getEdgeOverlapPenalty, getHeight, getLocation, getModelParameter, getNodeOverlapPenalty, getOverlapPenalty, getOwner, getSize, getWidth, getX, getY, isInternal, isPropagated, propagate, setCustomProfit, setEdgeOverlapPenalty, setNodeOverlapPenalty, toStringpublic ExtendedEdgeLabelCandidate(YOrientedRectangle orientedBox, Object param, IEdgeLabelLayout owner, boolean internal, ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
orientedBox - the label size and orientationparam - the parameters of the labeling model associated with this candidate.owner - the label associated to the candidate.internal - flag whether the candidate is allowed to overlap the layout of the edge.descriptor - the label candidate descriptor.public ExtendedEdgeLabelCandidate(YPoint pos, YDimension size, Object param, IEdgeLabelLayout owner, boolean internal, ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
pos - the location of the upper left corner of the candidate.size - the size of the candidate.param - the parameters of the labeling model associated with this candidate.owner - the label associated to the candidate.internal - flag whether the candidate is allowed to overlap the layout of the edge.descriptor - the label candidate descriptor.public ExtendedEdgeLabelCandidate(YPoint pos, YDimension size, Object param, IEdgeLabelLayout owner, ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
pos - the location of the upper left corner of the candidate.size - the size of the candidate.param - the parameters of the labeling model associated with this candidate.owner - the label associated to the candidate.descriptor - the label candidate descriptor.public final ILabelCandidateDescriptor getDescriptor()