public class NodeLabelCandidate extends LabelCandidate
NodeLabelCandidate describes one valid placement for a node label considering the label model.| Constructor and Description |
|---|
NodeLabelCandidate(YOrientedRectangle labelBox,
Object param,
INodeLabelLayout owner)
Creates a new instance of
NodeLabelCandidate described by its box, model parameter and internal flag. |
NodeLabelCandidate(YOrientedRectangle labelBox,
Object param,
INodeLabelLayout owner,
boolean internal)
Creates a new instance of
NodeLabelCandidate described by its box, model parameter and internal flag. |
NodeLabelCandidate(YPoint pos,
YDimension size,
Object param,
INodeLabelLayout owner)
Creates a new instance of
NodeLabelCandidate described by location, size, model parameter and internal flag. |
NodeLabelCandidate(YPoint pos,
YDimension size,
Object param,
INodeLabelLayout owner,
boolean internal)
Creates a new instance of
NodeLabelCandidate described by location, size, model parameter and internal flag. |
getBoundingBox, getBox, getCustomProfit, getEdgeOverlapPenalty, getHeight, getLocation, getModelParameter, getNodeOverlapPenalty, getOverlapPenalty, getOwner, getSize, getWidth, getX, getY, isInternal, isPropagated, propagate, setCustomProfit, setEdgeOverlapPenalty, setNodeOverlapPenalty, toStringpublic NodeLabelCandidate(YOrientedRectangle labelBox, Object param, INodeLabelLayout owner)
NodeLabelCandidate described by its box, model parameter and internal flag.labelBox - the box that specifies the candidate's size and positionparam - the parameters of the label model associated with this candidateowner - the label associated with the candidatepublic NodeLabelCandidate(YOrientedRectangle labelBox, Object param, INodeLabelLayout owner, boolean internal)
NodeLabelCandidate described by its box, model parameter and internal flag.labelBox - the box that specifies the candidate's size and positionparam - the parameters of the label model associated with this candidateowner - the label associated with the candidateinternal - true if the candidate is allowed to overlap with its owner, false otherwisepublic NodeLabelCandidate(YPoint pos, YDimension size, Object param, INodeLabelLayout owner)
NodeLabelCandidate described by location, size, model parameter and internal flag.pos - the location of the upper left corner of the candidatesize - the size of the candidateparam - the parameters of the label model associated with this candidateowner - the label associated with the candidatepublic NodeLabelCandidate(YPoint pos, YDimension size, Object param, INodeLabelLayout owner, boolean internal)
NodeLabelCandidate described by location, size, model parameter and internal flag.pos - the location of the upper left corner of the candidatesize - the size of the candidateparam - the parameters of the label model associated with this candidateowner - the label associated with the candidateinternal - true if the candidate is allowed to overlap with its owner, false otherwise