|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementors of this interface calculate the size of a Label
.
The labels with no preferred size are queried by
StyledLayoutGraph.setStyle(y.base.Node, com.yworks.yfiles.server.graphml.flexio.data.INodeStyle)
or
StyledLayoutGraph.setStyle(y.base.Node, com.yworks.yfiles.server.graphml.flexio.data.INodeStyle)
for
a style which implements this interface.
Note that the size on the client still may differ from the calculated size.
Method Summary | |
boolean |
canCalculateSize(Label l)
Whether the size of the given label can be calculated. |
YDimension |
getCalculatedSize(Label l)
Calculates the size of a given label. |
Method Detail |
public YDimension getCalculatedSize(Label l) throws java.lang.IllegalArgumentException
Before calling this method, canCalculateSize(com.yworks.yfiles.server.graphml.flexio.data.Label)
should be queried if all prerequesites are met to calculate the size.
l
- The label to calculate the size for.
java.lang.IllegalArgumentException
- If the size of the label cannot be calculated.public boolean canCalculateSize(Label l)
Usually, some prerequesites have to be met in order to calculate the size of a label. Most commonly, at least font has to be set to the style.
This method should always be called before
getCalculatedSize(com.yworks.yfiles.server.graphml.flexio.data.Label)
is called.
l
- The label to calculate the size for.
true if the size can be calculated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |