PamView
Class PamPanelTiler

java.lang.Object
  extended by PamView.PamPanelTiler

public class PamPanelTiler
extends java.lang.Object

Class to lay out windows within a JDesktopPane

Author:
Doug

Nested Class Summary
private  class PamPanelTiler.Cascade
           
private  class PamPanelTiler.Tile
           
private  class PamPanelTiler.TileHorizontal
           
private  class PamPanelTiler.TileVertical
           
 
Field Summary
(package private)  javax.swing.JDesktopPane desktopPane
           
 
Constructor Summary
PamPanelTiler(javax.swing.JDesktopPane desktopPane)
           
 
Method Summary
 void cascade()
           
 javax.swing.JMenu getMenu()
           
 void tile()
          auto tile the windows always have zero or one more window in x than in y and increase until there are enough spaces in the grid.
 void tileHorizontal()
           
 void tileVertical()
           
private  void tileWindows(int nX, int nY)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desktopPane

javax.swing.JDesktopPane desktopPane
Constructor Detail

PamPanelTiler

public PamPanelTiler(javax.swing.JDesktopPane desktopPane)
Method Detail

tile

public void tile()
auto tile the windows always have zero or one more window in x than in y and increase until there are enough spaces in the grid.


tileHorizontal

public void tileHorizontal()

tileVertical

public void tileVertical()

tileWindows

private void tileWindows(int nX,
                         int nY)

cascade

public void cascade()

getMenu

public javax.swing.JMenu getMenu()