com.vlsolutions.swing.toolbars
Class ToolBarConstraints
java.lang.Object
com.vlsolutions.swing.toolbars.ToolBarConstraints
public class ToolBarConstraints
extends java.lang.Object
Constraints to be used with the ToolBarLayout.
Depending on the orientation of the layout, the two integers majorOrder and minorOrder
express the opposite measures :
- in an horizontal layout, majorOrder is the ROW, and minorOrder is the COLUMN
- in a vertical layout, majorOrder is the COLUMN, and minorOrder is the ROW
Example : To layout two toolbars horizontally on an horizontal layout, use the following constraints
(0,0) and (0,1) (the column is the minor order on an horizontal layout).
to layout them in a row (one above the other), use the constraints (0,0) and (1,0) (the row
is the major order on an horizontal layout).
int | majorOrder - The major order is the row index for horizontal toolbars, and the column index for
vertical toolbars.
|
int | minorOrder - The minor order is the column index for horizontal toolbars, and the row index for
vertical toolbars.
|
String | toString() - Returns a description of these constraints.
|
majorOrder
public int majorOrder
The major order is the row index for horizontal toolbars, and the column index for
vertical toolbars.
minorOrder
public int minorOrder
The minor order is the column index for horizontal toolbars, and the row index for
vertical toolbars.
ToolBarConstraints
public ToolBarConstraints()
Constructs a new ToolBarConstraints at (0,0)
ToolBarConstraints
public ToolBarConstraints(int majorOrder,
int minorOrder)
Constructs a new ToolBarConstraints at (majorOrder,minorOrder).
the majorOrder is the ROW for an horizontal layout, and the columns for a vertical layout.
toString
public String toString()
Returns a description of these constraints.
© Copyright 2004-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications