org.zaval.lw
Class LwConstraints

java.lang.Object
  |
  +--org.zaval.lw.LwConstraints

public class LwConstraints
extends java.lang.Object

The class is used to specify constrains that are used with the LwGridLayout layout manager.


Field Summary
 int ax
          This field defines the component horizontal alignment inside the area.
 int ay
          This field defines the component vertical alignment inside the area.
 int colSpan
          Specifies number of columuns that has to be used for the cell.
 int fill
          This field is used when the component display area is larger than the component requested size.
 java.awt.Insets insets
          This field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.
 int rowSpan
          Specifies number of rows that has to be used for the cell.
 
Constructor Summary
LwConstraints()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colSpan

public int colSpan
Specifies number of columuns that has to be used for the cell. The field is not used with the LwGridLayout layout manager. It is going to be utilized in the future version of the library

rowSpan

public int rowSpan
Specifies number of rows that has to be used for the cell. The field is not used with the LwGridLayout layout manager. It is going to be utilized in the future version of the library

fill

public int fill
This field is used when the component display area is larger than the component requested size. It determines whether to align the component, and if so, how.

The following constants can be used as the value:

LwToolkit.HORIZONTAL|LwToolkit.VERTICAL is used as default value for the field.


ax

public int ax
This field defines the component horizontal alignment inside the area. Possible values for the alignment are: Alignment.CENTER, Alignment.LEFT, Alignment.RIGHT, Alignment.NONE.

ay

public int ay
This field defines the component vertical alignment inside the area. Possible values for the alignment are: Alignment.TOP, Alignment.BOTTOM, Alignment.CENTER, Alignment.NONE.

insets

public java.awt.Insets insets
This field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.

The default value is null. This is equivalent of (0, 0, 0, 0) insets.

Constructor Detail

LwConstraints

public LwConstraints()


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org