Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class uk.co.ist.mwt.ColumnPackedRCLayout

java.lang.Object
  |
  +--uk.co.ist.mwt.MarginLayoutManager
        |
        +--uk.co.ist.mwt.RowColLayout
              |
              +--uk.co.ist.mwt.ColumnPackedRCLayout

public class ColumnPackedRCLayout
extends RowColLayout
This layout manager (when attached to a Container) mimics the behaviour of a Motif XmRowColumn with XmNpacking set to XmPACK_COLUMN.

Irritatingly enough, a Motif XmRowColumn does with packing set to XmPACK_COLUMN does not quite map to a GridLayout. For example, if the container is too large for all of the children, the RowColumn just leaves empty space, or if it's adjusting the last column, it expands just that. The GridLayout, however, will just resize all of the children so that they all have an equal width and height and so that the container is filled.


Method Summary
int getNumColumns()
          Get accessor for the number of columns in this layout (the number of rows if it's being laid out horizontally
void layoutContainer(java.awt.Container parent)
          Lays out the container.
void setNumColumns(int num)
          Set accessor for the number of columns in this layout (the number of rows if it's being laid out horizontally
 
Methods inherited from class uk.co.ist.mwt.RowColLayout
addLayoutComponent, getAdjustLast, getVertical, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setAdjustLast, setVertical
 
Methods inherited from class uk.co.ist.mwt.MarginLayoutManager
addLayoutComponent, getMarginHeight, getMarginWidth, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setMarginHeight, setMarginWidth
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Method Detail

setNumColumns

public void setNumColumns(int num)
Set accessor for the number of columns in this layout (the number of rows if it's being laid out horizontally
Parameters:
num - the new number of columns.
See Also:
setVertical, getVertical, getNumColumns

getNumColumns

public int getNumColumns()
Get accessor for the number of columns in this layout (the number of rows if it's being laid out horizontally
Returns:
the number of columns
See Also:
setNumColumns, setVertical, getVertical

layoutContainer

public void layoutContainer(java.awt.Container parent)
Lays out the container.
Parameters:
parent - the component which needs to be laid out
Overrides:
layoutContainer in class MarginLayoutManager

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD