org.apache.batik.util.gui
Class ExtendedGridBagConstraints

java.lang.Object
  |
  +--java.awt.GridBagConstraints
        |
        +--org.apache.batik.util.gui.ExtendedGridBagConstraints
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class ExtendedGridBagConstraints
extends java.awt.GridBagConstraints

This class extends the java.awt.GridBagConstraints in order to provide some utility methods.

See Also:
Serialized Form

Fields inherited from class java.awt.GridBagConstraints
anchor, BOTH, CENTER, EAST, fill, gridheight, gridwidth, gridx, gridy, HORIZONTAL, insets, ipadx, ipady, NONE, NORTH, NORTHEAST, NORTHWEST, RELATIVE, REMAINDER, SOUTH, SOUTHEAST, SOUTHWEST, VERTICAL, weightx, weighty, WEST
 
Constructor Summary
ExtendedGridBagConstraints()
           
 
Method Summary
 void setGridBounds(int x, int y, int width, int height)
          Modifies gridx, gridy, gridwidth, gridheight.
 void setWeight(double weightx, double weighty)
          Modifies the weightx and weighty.
 
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

ExtendedGridBagConstraints

public ExtendedGridBagConstraints()
Method Detail

setGridBounds

public void setGridBounds(int x,
                          int y,
                          int width,
                          int height)
Modifies gridx, gridy, gridwidth, gridheight.
Parameters:
x - The value for gridx.
y - The value for gridy.
width - The value for gridwidth.
height - The value for gridheight.

setWeight

public void setWeight(double weightx,
                      double weighty)
Modifies the weightx and weighty.
Parameters:
weightx - The value for weightx
weighty - The value for weighty


Copyright © 2002 Apache Software Foundation. All Rights Reserved.