开发者

Where to find information about patterns in 2D layout positioning and measurement?

开发者 https://www.devze.com 2023-02-07 04:48 出处:网络
I would like to know the best practices/design patterns of layouting in 2D. Must have reference to: absolute layout

I would like to know the best practices/design patterns of layouting in 2D.

Must have reference to:

  • absolute layout
  • vertical layout
  • horizontal layout

Components properties can be:

  • width
  • height
  • minWidth
  • minHeight
  • maxWidth
  • maxHeight
  • top
  • right
  • bottom
  • left
  • x
  • y
  • horizontalAlign(left|center|right)
  • verticalAlign(top|center|bottom)

Of course all these elements are not used for each component and are not used by all the layouts.

So for example I set a components width, height, top, ri开发者_高级运维ght it should automatically recognize its bottom and left values.

Then about all these implication about minWidth, minHeight.

It can have a reference to how to find the scroller position, to appear when is needed.

*this will be build in javascript


sounds like java's swing. they use layout managers. gwt has a similar set of widgets and containers. microsoft has always had some of this similar, it's latest is wpf.

these frameworks use composite, iterator, flyweight, observer/observable (m$ has delegate which naict is an observable), and maybe strategy.

users of a framework could use mediator.

0

精彩评论

暂无评论...
验证码 换一张
取 消