de.kosi.gui.util
Class ConstraintFactory

java.lang.Object
  |
  +--de.kosi.gui.util.ConstraintFactory
Direct Known Subclasses:
GuiFactory

public class ConstraintFactory
extends java.lang.Object


Constructor Summary
ConstraintFactory()
           
 
Method Summary
static java.awt.GridBagConstraints createConstraints(int x, int y, java.awt.Insets insets)
          Returns the default GridBagConstraints for a component placed in the grid at (x, y).
static java.awt.GridBagConstraints createConstraints(int x, int y, int gridWidth, int gridHeight, java.awt.Insets insets)
          Returns the default GridBagConstraints for a component that fills more than one GridBox.
static java.awt.GridBagConstraints createEastConstraints(int x, int y, int gridWidth, int gridHeight, java.awt.Insets insets)
          Returns the default GridBagConstraints for a component that fills more than one GridBox and is anchored East.
static java.awt.GridBagConstraints createFillHConstraints(int x, int y, java.awt.Insets insets)
          Returns the default check box GridBagConstraints for a component, that fills horizontally.
static java.awt.GridBagConstraints createNorthWestConstraints(int x, int y, java.awt.Insets insets)
          Returns the default GridBagConstraints for a component that is anchored NorthWest.
static java.awt.GridBagConstraints createNorthWestConstraints(int x, int y, int gridWidth, int gridHeight, java.awt.Insets insets)
          Returns the default GridBagConstraints for a component that fills more than one GridBox and is anchored NorthWest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintFactory

public ConstraintFactory()
Method Detail

createConstraints

public static java.awt.GridBagConstraints createConstraints(int x,
                                                            int y,
                                                            java.awt.Insets insets)
Returns the default GridBagConstraints for a component placed in the grid at (x, y).
Parameters:
x - X coordinate in the grid.
y - Y coordinate in the grid.
insets - Insets of the constraint.
Returns:
The default GridBagConstraints.

createFillHConstraints

public static java.awt.GridBagConstraints createFillHConstraints(int x,
                                                                 int y,
                                                                 java.awt.Insets insets)
Returns the default check box GridBagConstraints for a component, that fills horizontally.
Parameters:
x - X coordinate in the grid.
y - Y coordinate in the grid.
insets - Insets of the constraint.
Returns:
The default GridBagConstraints.

createNorthWestConstraints

public static java.awt.GridBagConstraints createNorthWestConstraints(int x,
                                                                     int y,
                                                                     java.awt.Insets insets)
Returns the default GridBagConstraints for a component that is anchored NorthWest.
Parameters:
x - X coordinate in the grid.
y - Y coordinate in the grid.
insets - Insets of the constraint.
Returns:
The default GridBagConstraints.

createConstraints

public static java.awt.GridBagConstraints createConstraints(int x,
                                                            int y,
                                                            int gridWidth,
                                                            int gridHeight,
                                                            java.awt.Insets insets)
Returns the default GridBagConstraints for a component that fills more than one GridBox.
Parameters:
x - X coordinate in the grid.
y - Y coordinate in the grid.
gridWidth - Width in the Grid.
gridHeight - Height in the Grid.
insets - Insets of the constraint.
Returns:
The default GridBagConstraints.

createEastConstraints

public static java.awt.GridBagConstraints createEastConstraints(int x,
                                                                int y,
                                                                int gridWidth,
                                                                int gridHeight,
                                                                java.awt.Insets insets)
Returns the default GridBagConstraints for a component that fills more than one GridBox and is anchored East.
Parameters:
x - X coordinate in the grid.
y - Y coordinate in the grid.
gridWidth - Width in the Grid.
gridHeight - Height in the Grid.
insets - Insets of the constraint.
Returns:
The default GridBagConstraints.

createNorthWestConstraints

public static java.awt.GridBagConstraints createNorthWestConstraints(int x,
                                                                     int y,
                                                                     int gridWidth,
                                                                     int gridHeight,
                                                                     java.awt.Insets insets)
Returns the default GridBagConstraints for a component that fills more than one GridBox and is anchored NorthWest.
Parameters:
x - X coordinate in the grid.
y - Y coordinate in the grid.
gridWidth - Width in the Grid.
gridHeight - Height in the Grid.
insets - Insets of the constraint.
Returns:
The default GridBagConstraints.