edu.iastate.metnet.birdseyeview
Class GenePanelLayout
java.lang.Object
edu.iastate.metnet.birdseyeview.GenePanelLayout
- All Implemented Interfaces:
- java.awt.LayoutManager
public class GenePanelLayout
- extends java.lang.Object
- implements java.awt.LayoutManager
The GenePanelLayout Class constructs a layout in which components are bounded by a square
and the individual components are laid out in grid fashion starting in the center of the square.
This is different from other grid layouts in which the top left position is filled first and then
it moves right and down.
- Author:
- Matt Studham
Created May 27, 2005
|
Field Summary |
(package private) int |
gheight
|
(package private) int |
gwidth
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gwidth
int gwidth
gheight
int gheight
GenePanelLayout
public GenePanelLayout(int w,
int h)
GenePanelLayout
public GenePanelLayout()
layoutContainer
public void layoutContainer(java.awt.Container container)
- Specified by:
layoutContainer in interface java.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container container)
- Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
addLayoutComponent
public void addLayoutComponent(java.lang.String arg0,
java.awt.Component arg1)
- Specified by:
addLayoutComponent in interface java.awt.LayoutManager
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container container)
- Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component arg0)
- Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
main
public static void main(java.lang.String[] args)
- This method tests the GenePanelLayout class.
- Parameters:
args -