visad.ss
Class SSLayout

java.lang.Object
  extended by visad.ss.SSLayout
All Implemented Interfaces:
java.awt.LayoutManager

public class SSLayout
extends java.lang.Object
implements java.awt.LayoutManager

SSLayout is the layout manager for the SpreadSheet's cells and their labels. It sets up components in a rectangular grid similar to GridLayout, but uses the components' preferred sizes to allow for variable-sized cells.


Constructor Summary
SSLayout(int ncol, int nrow, int wspace, int hspace)
          Constructs an SSLayout.
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Not used by SSLayout.
 void layoutContainer(java.awt.Container parent)
          Lays out the components.
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          Gets minimum layout size.
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          Gets preferred layout size.
 void removeLayoutComponent(java.awt.Component comp)
          Not used by SSLayout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLayout

public SSLayout(int ncol,
                int nrow,
                int wspace,
                int hspace)
Constructs an SSLayout.

Method Detail

layoutContainer

public void layoutContainer(java.awt.Container parent)
Lays out the components.

Specified by:
layoutContainer in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Gets minimum layout size.

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Gets preferred layout size.

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Not used by SSLayout.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Not used by SSLayout.

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager