cynosurex.awt
Class TicTacToeLayout

java.lang.Object
  extended by cynosurex.awt.TicTacToeLayout
All Implemented Interfaces:
cynosurex.internal.AuthorCommon, cynosurex.internal.CommonInterface, cynosurex.internal.CompanyCommon, java.awt.LayoutManager

public class TicTacToeLayout
extends java.lang.Object
implements cynosurex.internal.CommonInterface, java.awt.LayoutManager

TicTacToeLayout will layout a container using members named "Northwest", "North", "Northeast", "West", "Center", "East", "Southwest", "South", "Southeast". The "Northeast", "Northwest", "Southeast" and "Southwest" components get sized relative to the adjacent corner's components and the constraints of the container's size.


Field Summary
 
Fields inherited from interface cynosurex.internal.CommonInterface
copyright, copyrightYears, notice, program, version
 
Fields inherited from interface cynosurex.internal.AuthorCommon
author, copyrightSymbol, noticeMsg, rights
 
Fields inherited from interface cynosurex.internal.CompanyCommon
company, email, website
 
Constructor Summary
TicTacToeLayout()
          Constructs a new layout.
TicTacToeLayout(int hgap, int vgap)
          Constructs a new TicTacToeLayout with specified gaps.
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 void layoutContainer(java.awt.Container target)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TicTacToeLayout

public TicTacToeLayout()
Constructs a new layout.


TicTacToeLayout

public TicTacToeLayout(int hgap,
                       int vgap)
Constructs a new TicTacToeLayout with specified gaps.

Parameters:
hgap - horizontal gap
vgap - vertical gap
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container target)
Specified by:
layoutContainer in interface java.awt.LayoutManager

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object