首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Draw2d 学习札记四 XYLayout

2012-09-12 
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。


?

?

热点排行