jwo.utils.gui
Class PointLayout

java.lang.Object
  extended by jwo.utils.gui.SGLayout
      extended by jwo.utils.gui.PointLayout
All Implemented Interfaces:
LayoutManager, Serializable

public class PointLayout
extends SGLayout

Creates simple scalded grid layout with a single cell. Useful when alignment and margins need to be controlled. See JavaWorld Tips, 129.

Version:
2.3, 9th August, 2002.
Author:
John Redmond, modified by Jo Wood
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jwo.utils.gui.SGLayout
BOTTOM, bottomBorder, CENTER, cols, columnScale, columnSizes, FILL, hAlignment, hAlignments, hgap, LEFT, leftBorder, minH, minW, RIGHT, rightBorder, rows, rowScale, rowSizes, TOP, topBorder, vAlignment, vAlignments, vgap
 
Constructor Summary
PointLayout()
          Simple point layout with default margins and alignment.
PointLayout(int hAlignment, int vAlignment)
          Simple point layout with default margins and given alignment.
 
Method Summary
 void setAlignment(int hAlignment, int vAlignment)
          Sets the given alignment properties.
 
Methods inherited from class jwo.utils.gui.SGLayout
addLayoutComponent, allocateMaxSizes, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setAlignment, setColumnAlignment, setColumnScale, setMargins, setRowAlignment, setRowScale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointLayout

public PointLayout()
Simple point layout with default margins and alignment.


PointLayout

public PointLayout(int hAlignment,
                   int vAlignment)
Simple point layout with default margins and given alignment.

Parameters:
hAlignment - Horizontal alignment property (LEFT, RIGHT, CENTER, FILL).
vAlignment - Vertical alignment property (TOP, BOTTOM, CENTER, FILL).
Method Detail

setAlignment

public void setAlignment(int hAlignment,
                         int vAlignment)
Sets the given alignment properties.

Parameters:
hAlignment - Horizontal alignment property (LEFT, RIGHT, CENTER, FILL).
vAlignment - Vertical alignment property (TOP, BOTTOM, CENTER, FILL).


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009