public interface ILabelLayout
ILabelLayout
defines the properties of a label from the perspective of a labeling algorithm.
Both node and edge labels need to implement this interface. It describes the size and position of a label.
Note: To avoid inconsistencies, changing the model parameter
should always be
combined with updating the corresponding oriented box
.
Modifier and Type | Method and Description |
---|---|
YRectangle |
getBoundingBox()
Gets the bounding box of the label.
|
Object |
getModelParameter()
Gets the label model parameter that describes the position of this label.
|
YOrientedRectangle |
getOrientedBox()
Gets the box of the label.
|
void |
setModelParameter(Object value)
Sets the label model parameter that describes the position of this label.
|
YRectangle getBoundingBox()
The bounding box is the smallest, paraxial rectangle that contains the whole label.
Object getModelParameter()
The model parameter must fit the according label model.
setModelParameter(Object)
YOrientedRectangle getOrientedBox()
This box matches the area that is covered by the label. The up vector
of the rectangle encodes the orientation of the label.
void setModelParameter(Object value)
The model parameter must fit the according label model.
value
- the label model parametergetModelParameter()