public class ExtendedNodeLabelCandidate extends NodeLabelCandidate
NodeLabelCandidate
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 |
---|
ExtendedNodeLabelCandidate(YOrientedRectangle orientedBox,
Object param,
INodeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of NodeLabelCandidate.
|
ExtendedNodeLabelCandidate(YPoint pos,
YDimension size,
Object param,
INodeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of NodeLabelCandidate.
|
ExtendedNodeLabelCandidate(YPoint pos,
YDimension size,
Object param,
INodeLabelLayout owner,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedNodeLabelCandidate.
|
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, toString
public ExtendedNodeLabelCandidate(YOrientedRectangle orientedBox, Object param, INodeLabelLayout owner, boolean internal, ILabelCandidateDescriptor descriptor)
Returns a new instance of NodeLabelCandidate.
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 inside the node, or outside.descriptor
- the label candidate descriptor.public ExtendedNodeLabelCandidate(YPoint pos, YDimension size, Object param, INodeLabelLayout owner, boolean internal, ILabelCandidateDescriptor descriptor)
Returns a new instance of NodeLabelCandidate.
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 inside the node, or outside.descriptor
- the label candidate descriptor.public ExtendedNodeLabelCandidate(YPoint pos, YDimension size, Object param, INodeLabelLayout owner, ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedNodeLabelCandidate.
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()