Draw2d 学习札记四 XYLayout

Draw2d 学习笔记四 XYLayoutXYLayout就是采用绝对坐标来确定子figure的位置和大小。/**?* Calculates and r

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。


?

?