org.tigris.swidgets
Class NewspaperLayout
- LayoutManager, java.io.Serializable
public class NewspaperLayout
Similar to
GridLayout2
but once the components fill
the height of the container they flow into another grid on the
right until the full width of the container is filled. Once the
containers width is full it flows to the right no more, the grid
depths increase instead so that the user scrolls up/down instead of
left/right.
BOTH , CENTER , EAST , FITPARENT , HORIZONTAL , MAXPREFERRED , NONE , NORTH , NORTHEAST , NORTHWEST , ROWCOLPREFERRED , SOUTH , SOUTHEAST , SOUTHWEST , VERTICAL , WEST |
addLayoutComponent , calculateSizes , getColWidth , getColumns , getComponentCellHeight , getComponentCellWidth , getHgap , getLargestHeight , getLargestWidth , getRowHeight , getRows , getVgap , layoutContainer , minimumLayoutSize , positionComponentInCell , preferredLayoutSize , removeLayoutComponent , setColWidth , setCols , setHgap , setLargestHeight , setLargestWidth , setRowHeight , setRows , setVgap |
NewspaperLayout
public NewspaperLayout()
The constructor.
NewspaperLayout
public NewspaperLayout(int rows,
int cols)
The constructor.
rows
- the number of rowscols
- the number of columns
NewspaperLayout
public NewspaperLayout(int rows,
int cols,
int hgap,
int vgap,
int gg)
The constructor.
rows
- the number of rowscols
- the number of columnshgap
- the horizontal gapvgap
- the vertical gapgg
- the grid gap
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
- addLayoutComponent in interface GridLayout2
java.awt.LayoutManager.addLayoutComponent(java.lang.String,
java.awt.Component)
layoutContainer
public void layoutContainer(Container parent)
- layoutContainer in interface GridLayout2
java.awt.LayoutManager.layoutContainer(java.awt.Container)
maximumLayoutSize
public Dimension maximumLayoutSize(Container parent)
TODO: This is never used, and not part of the interface LayoutContainer.
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- minimumLayoutSize in interface GridLayout2
java.awt.LayoutManager.minimumLayoutSize(java.awt.Container)
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- preferredLayoutSize in interface GridLayout2
java.awt.LayoutManager.preferredLayoutSize(java.awt.Container)
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- removeLayoutComponent in interface GridLayout2
java.awt.LayoutManager.removeLayoutComponent(java.awt.Component)