luigi.arrangerIn Luigi, Arrangers are responsible for deciding how widgets are arranged in a container. The Arranger interface actually does not depend on the GUI portion of the library it all. It only requires items to support the Arrangeable interface. The Arrangeable interface just provides information about an item's preferred, and minimum sizes.Note in many toolkits "arranging" is referred to as "layout". Layout is a good word, but the problem is that its hard to come up with good names for the things that can be laid-out and the thing that does the laying-out. You end up with words like "Layoutable", "Layouter", "Layoutee", "Layouting", or "LayoutManager", which are all either dubious as English words, or just too long. Adding to the mess is the fact that "layout" is both a verb and a noun, so just "layout" alone is ambiguious. Is layout() a method that does the layout or one that returns an arrangement of items, or perhaps one that returns the object responsible for laying things out? In contrast, starting from the verb "arrange" we can use the very reasonable English words "arrange", "arranging", "arranged", "arrangement", " arranger ", and "arrangeable".
|
Page was generated with on Wed Dec 6 09:51:44 2006 |