public class EdgeLabelCandidate extends LabelCandidate
EdgeLabelCandidate describes one valid placement for an edge label considering the label model.| Constructor and Description |
|---|
EdgeLabelCandidate(YOrientedRectangle labelBox,
Object param,
IEdgeLabelLayout owner)
Creates a new instance of
EdgeLabelCandidate described by its box, model parameter and internal flag. |
EdgeLabelCandidate(YOrientedRectangle labelBox,
Object param,
IEdgeLabelLayout owner,
boolean internal)
Creates a new instance of
EdgeLabelCandidate described by its box, model parameter and internal flag. |
EdgeLabelCandidate(YPoint pos,
YDimension size,
Object param,
IEdgeLabelLayout owner)
Creates a new instance of
EdgeLabelCandidate described by location, size, model parameter and internal flag. |
EdgeLabelCandidate(YPoint pos,
YDimension size,
Object param,
IEdgeLabelLayout owner,
boolean internal)
Creates a new instance of
EdgeLabelCandidate 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 EdgeLabelCandidate(YOrientedRectangle labelBox, Object param, IEdgeLabelLayout owner)
EdgeLabelCandidate 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 EdgeLabelCandidate(YOrientedRectangle labelBox, Object param, IEdgeLabelLayout owner, boolean internal)
EdgeLabelCandidate 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 EdgeLabelCandidate(YPoint pos, YDimension size, Object param, IEdgeLabelLayout owner)
EdgeLabelCandidate 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 EdgeLabelCandidate(YPoint pos, YDimension size, Object param, IEdgeLabelLayout owner, boolean internal)
EdgeLabelCandidate 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