org.vizzini.ui.game.boardgame
Class GridBoardUISwing.MyGridLayout

java.lang.Object
  extended by java.awt.GridLayout
      extended by org.vizzini.ui.game.boardgame.GridBoardUISwing.MyGridLayout
All Implemented Interfaces:
LayoutManager, Serializable
Enclosing class:
GridBoardUISwing

static class GridBoardUISwing.MyGridLayout
extends GridLayout

Provides a grid layout which uses the Component.getWidth() and Component.getHeight() method instead of directly accessing member variables.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
GridBoardUISwing.MyGridLayout(int rows, int cols, int hgap, int vgap)
           
 
Method Summary
 void layoutContainer(Container parent)
           
 
Methods inherited from class java.awt.GridLayout
addLayoutComponent, getColumns, getHgap, getRows, getVgap, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setColumns, setHgap, setRows, setVgap, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GridBoardUISwing.MyGridLayout

public GridBoardUISwing.MyGridLayout(int rows,
                                     int cols,
                                     int hgap,
                                     int vgap)
Method Detail

layoutContainer

public void layoutContainer(Container parent)
Specified by:
layoutContainer in interface LayoutManager
Overrides:
layoutContainer in class GridLayout


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02