| CARVIEW |
|
designgridlayout
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Summary | Easy to use LayoutManager inspired by canonical design grids. |
|---|---|
| Categories | None |
| License | Lesser General Public License (LGPL) |
| Owner(s) | josgood |
DesignGridLayout is a LayoutManager inspired by the use of canonical grids for user interface design. Its goal is to be useful for typical form-based designs. DesignGridLayout is an alternative to other grid-based layout managers (FormsLayout, GridLayout, GridBagLayout, HIGLayout, PnutsLayout, RiverLayout, SGLayout, and TableLayout). DesignGridLayout works with JDK 1.5 and later.
The idea of user interfaces based on canonical grids is described in the book Designing Visual Interfaces: Communication Oriented Techniques by Kevin Mullet and Darrell Sano. Available online, Patrizia Nanni's thesis Human-Computer Interaction: Principles of Interface Design has a nice chapter called Module and Program: Grid-based Design, which also references Mullet and Sano's work.
DesignGridLayout's primary innovation is a well behaved simple layout algorithm exposed as a convenient API. No need to specify constraints. Just add rows from top to bottom and components from left to right. Sizing, resizing, aligning component baselines, margins, and gutters are all handled automatically.
Praise
Very impressive, and you nailed it!
-- Darrell Sano, March 21st, 2006
Quick Start
Try it now using webstart: DesignGridLayout Examples
Try it offline: Download both designgridlayout-0.1.jar
and swing-layout-1.0.jar. Add them to your
classpath. Launch the examples with
java zappini.designgridlayout.Examples.
Keep reading for explanations and screenshots.
Canonical Grid
Canonical grids are visual tools used by graphic artists to design magazines, posters, advertisements, forms, and so forth. As an artist friend told me, the use of grids is "graphic design 101, taught on the first day".
Here are the steps to create a simple 4 column canonical grid. First, divide the rectangle horizontally into halves (1/2). The light gray represents the gaps (for gutters and margins) between columns.
| Powered by CollabNet | Feedback |
FAQ |
Press |
Developer tools
© 1995 - 2007 CollabNet. CollabNet is a registered trademark of CollabNet, Inc. |
