: Download: FAQ: Licensing: Support: Contact ME
LwVCL Home
Introduction
Overview
Screen Shots
On-line Demos
Requirements
Further Plans
Docs
Tutorial
How-to (PDF)
API
FAQ
Download
Latest version

Home > J2SE > API

Overview  Package   Class  Tree  Deprecated  Index  Help 

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 columns 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 columns 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.NONE - do not align the component and use its preferred size.
  • LwToolkit.HORIZONTAL - make the component wide enough to fill its display area horizontally, but do not change its height.
  • LwToolkit.VERTICAL - make the component tall enough to fill its display area vertically, but do not change its width.
  • LwToolkit.HORIZONTAL | LwToolkit.VERTICAL - make the component fill its display area entirely.

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: LwToolkit.CENTER, LwToolkit.LEFT, LwToolkit.RIGHT, LwToolkit.NONE.

ay

public int ay
This field defines the component vertical alignment inside the area. Possible values for the alignment are: LwToolkit.TOP, LwToolkit.BOTTOM, LwToolkit.CENTER, LwToolkit.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()


: up