com.googlecode.whatswrong
Class SimpleGridBagConstraints

java.lang.Object
  extended by java.awt.GridBagConstraints
      extended by com.googlecode.whatswrong.SimpleGridBagConstraints
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SimpleGridBagConstraints
extends java.awt.GridBagConstraints

A SimpleGridBagConstraints object is a GridBagConstraints object that can be created using a set of convenience constructors. This allows us to create constraints more easily and makes GridBagConstraint-based code more readable.

Author:
Sebastian Riedel
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.GridBagConstraints
anchor, BOTH, CENTER, EAST, fill, FIRST_LINE_END, FIRST_LINE_START, gridheight, gridwidth, gridx, gridy, HORIZONTAL, insets, ipadx, ipady, LAST_LINE_END, LAST_LINE_START, LINE_END, LINE_START, NONE, NORTH, NORTHEAST, NORTHWEST, PAGE_END, PAGE_START, RELATIVE, REMAINDER, SOUTH, SOUTHEAST, SOUTHWEST, VERTICAL, weightx, weighty, WEST
 
Constructor Summary
SimpleGridBagConstraints(int gridy, boolean left)
           
SimpleGridBagConstraints(int gridy, boolean left, boolean fill)
           
SimpleGridBagConstraints(int gridx, int gridy)
          Creates a SimpleGridBagConstraints object with default properties and the given gridx and gridy attributes.
SimpleGridBagConstraints(int gridx, int gridy, double weightx, double weighty, int anchor, int fill)
           
SimpleGridBagConstraints(int gridx, int gridy, int gridwidth, int gridheight)
           
 
Method Summary
 
Methods inherited from class java.awt.GridBagConstraints
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGridBagConstraints

public SimpleGridBagConstraints(int gridx,
                                int gridy)
Creates a SimpleGridBagConstraints object with default properties and the given gridx and gridy attributes.

Parameters:
gridx - the x-position in the grid
gridy - the y-position in the grid

SimpleGridBagConstraints

public SimpleGridBagConstraints(int gridx,
                                int gridy,
                                double weightx,
                                double weighty,
                                int anchor,
                                int fill)

SimpleGridBagConstraints

public SimpleGridBagConstraints(int gridx,
                                int gridy,
                                int gridwidth,
                                int gridheight)

SimpleGridBagConstraints

public SimpleGridBagConstraints(int gridy,
                                boolean left)

SimpleGridBagConstraints

public SimpleGridBagConstraints(int gridy,
                                boolean left,
                                boolean fill)


Copyright © 2009. All Rights Reserved.