visad.util
Class WidgetLayout

java.lang.Object
  extended by visad.util.WidgetLayout
All Implemented Interfaces:
java.awt.LayoutManager

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

A simple layout manager for use in the visad ColorWidget. Stacks the first two components vertically, and stretches them to fit the panel.

Since:
Visad Utility Library, 0.5

Constructor Summary
WidgetLayout(ColorWidget colorWidget)
          Make a new WidgetLayout for the specified ColorWidget
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component component)
          Not used, no effect
 void layoutContainer(java.awt.Container parent)
          Lay out the container
 java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
          Return the maximum size for this layout
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          Return the minimum size for this layout
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          Return the preferred size for this layout
 void removeLayoutComponent(java.awt.Component component)
          Not used, no effect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetLayout

public WidgetLayout(ColorWidget colorWidget)
Make a new WidgetLayout for the specified ColorWidget

Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component component)
Not used, no effect

Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component component)
Not used, no effect

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)
Lay out the container

Specified by:
layoutContainer in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Return the minimum size for this layout

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Return the preferred size for this layout

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
Return the maximum size for this layout