public class AbstractLabelLayout extends Object implements ILabelLayout
AbstractLabelLayout
is the default implementation of the ILabelLayout
interface.Constructor and Description |
---|
AbstractLabelLayout()
Creates a new
AbstractLabelLayout instance. |
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 |
setBoundingBox(YRectangle value)
Sets the bounding box of the label.
|
void |
setModelParameter(Object value)
Sets the label model parameter that describes the position of this label.
|
void |
setOrientedBox(YOrientedRectangle value)
Sets the box of the label.
|
public AbstractLabelLayout()
AbstractLabelLayout
instance.public YRectangle getBoundingBox()
The bounding box is the smallest, paraxial rectangle that contains the whole label.
getBoundingBox
in interface ILabelLayout
setBoundingBox(YRectangle)
public Object getModelParameter()
ILabelLayout
The model parameter must fit the according label model.
getModelParameter
in interface ILabelLayout
ILabelLayout.setModelParameter(Object)
public 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.
getOrientedBox
in interface ILabelLayout
setOrientedBox(YOrientedRectangle)
public void setBoundingBox(YRectangle value)
The bounding box is the smallest, paraxial rectangle that contains the whole label.
value
- the bounding box of the labelgetBoundingBox()
public void setModelParameter(Object value)
ILabelLayout
The model parameter must fit the according label model.
setModelParameter
in interface ILabelLayout
value
- the label model parameterILabelLayout.getModelParameter()
public void setOrientedBox(YOrientedRectangle value)
This box matches the area that is covered by the label. The up vector
of the rectangle encodes the orientation of the label.
value
- the oriented box of the labelgetOrientedBox()