|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LabelLayout
LabelLayout
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
.
Method Summary | |
---|---|
YRectangle |
getBox()
Returns the bounding box of the label. |
java.lang.Object |
getModelParameter()
Returns the label model parameter that describes the position of this label. |
OrientedRectangle |
getOrientedBox()
Returns the box of the label. |
void |
setModelParameter(java.lang.Object parameter)
Specifies the label model parameter that describes the position of this label. |
Method Detail |
---|
YRectangle getBox()
OrientedRectangle getOrientedBox()
up vector
of the rectangle encodes the orientation of the label.
java.lang.Object getModelParameter()
setModelParameter(Object)
void setModelParameter(java.lang.Object parameter)
parameter
- the label model parameter
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |