读书人

Draw2d 学习札记四 XYLayout

发布时间: 2012-09-12 09:21:30 作者: rapoo

Draw2d 学习笔记四 XYLayout

XYLayout就是采用绝对坐标来确定子figure的位置和大小。

/**
?* Calculates and returns the preferred size of the input figure. Since in XYLayout the
?* location of the child should be preserved, the preferred size would be a region which
?* would hold all the children of the input figure. If no constraint is set, that child
?* is ignored for calculation. If width and height are not positive, the preferred
?* dimensions of the child are taken.

?*/

所以用户至少要指定figure的位置,然后指定大小为负值,系统就会把用preferred size。


?

?

读书人网 >软件架构设计

热点推荐