com.partnersoft.v3x.gui
Class FixedPercentageLayout

java.lang.Object
  extended by com.partnersoft.v3x.gui.FixedPercentageLayout
All Implemented Interfaces:
java.awt.LayoutManager

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

A layout manager for fixed-percentage widths.


Constructor Summary
FixedPercentageLayout(double leftPercent)
           
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Adds the specified component with the specified name to the layout.
 double getLeftPercent()
           
 void layoutContainer(java.awt.Container parent)
          Lays out the specified container using this layout.
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          Determines the minimum size of the container argument using this layout.
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          Determines the preferred size of the container argument using this layout.
 void removeLayoutComponent(java.awt.Component comp)
          Removes the specified component from the layout.
 void setLeftPercent(double newPercent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedPercentageLayout

public FixedPercentageLayout(double leftPercent)
Method Detail

getLeftPercent

public double getLeftPercent()

setLeftPercent

public void setLeftPercent(double newPercent)

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Adds the specified component with the specified name to the layout.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager
Parameters:
name - the name of the component.
comp - the component to be added.

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout.

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Parameters:
comp - the component to be removed.

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Determines the preferred size of the container argument using this layout.

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Determines the minimum size of the container argument using this layout.

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)
Lays out the specified container using this layout.

Specified by:
layoutContainer in interface java.awt.LayoutManager