org.obolibrary.gui
Class GuiTools.GBHelper

java.lang.Object
  extended by java.awt.GridBagConstraints
      extended by org.obolibrary.gui.GuiTools.GBHelper
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
GuiTools

public static class GuiTools.GBHelper
extends GridBagConstraints

Simplify the GridBagConstrains handling.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.GridBagConstraints
ABOVE_BASELINE, ABOVE_BASELINE_LEADING, ABOVE_BASELINE_TRAILING, anchor, BASELINE, BASELINE_LEADING, BASELINE_TRAILING, BELOW_BASELINE, BELOW_BASELINE_LEADING, BELOW_BASELINE_TRAILING, 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
GuiTools.GBHelper()
           
 
Method Summary
 GuiTools.GBHelper anchorCenter()
          Set the anchor to center.
 GuiTools.GBHelper expandH()
          Expandable Height.
 GuiTools.GBHelper expandW()
          Expandable Width.
 GuiTools.GBHelper fill()
          Set the fill to both.
 GuiTools.GBHelper height(int rowsHigh)
          Sets the height of the area in terms of rows.
 GuiTools.GBHelper indentLeft(int pixel)
          Increase indent in the left.
 GuiTools.GBHelper indentRight(int pixel)
          Increase indent in the left.
 GuiTools.GBHelper nextCol()
          Moves the helper's cursor to the right one column.
 GuiTools.GBHelper nextRow()
          Moves the helper's cursor to first col in next row.
 GuiTools.GBHelper width(int columnsWide)
          Sets the width of the area in terms of rows.
 
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

GuiTools.GBHelper

public GuiTools.GBHelper()
Method Detail

nextCol

public GuiTools.GBHelper nextCol()
Moves the helper's cursor to the right one column.

Returns:
helper

nextRow

public GuiTools.GBHelper nextRow()
Moves the helper's cursor to first col in next row.

Returns:
helper

indentLeft

public GuiTools.GBHelper indentLeft(int pixel)
Increase indent in the left. Return new instance to minimize side effects.

Parameters:
pixel -
Returns:
helper

indentRight

public GuiTools.GBHelper indentRight(int pixel)
Increase indent in the left. Return new instance to minimize side effects.

Parameters:
pixel -
Returns:
helper

anchorCenter

public GuiTools.GBHelper anchorCenter()
Set the anchor to center. Return new instance to minimize side effects.

Returns:
helper

expandW

public GuiTools.GBHelper expandW()
Expandable Width. Returns new helper allowing horizontal expansion. Return new instance to minimize side effects.

Returns:
helper

expandH

public GuiTools.GBHelper expandH()
Expandable Height. Returns new helper allowing vertical expansion. Return new instance to minimize side effects.

Returns:
helper

height

public GuiTools.GBHelper height(int rowsHigh)
Sets the height of the area in terms of rows. Return new instance to minimize side effects.

Parameters:
rowsHigh -
Returns:
helper

width

public GuiTools.GBHelper width(int columnsWide)
Sets the width of the area in terms of rows. Return new instance to minimize side effects.

Parameters:
columnsWide -
Returns:
helper

fill

public GuiTools.GBHelper fill()
Set the fill to both. The component tries to fill the cell in both directions. Return new instance to minimize side effects.

Returns:
helper


Copyright © 2010-2012. All Rights Reserved.