com.levigo.util.swing.infobar
Class RackLayout

java.lang.Object
  extended by javax.swing.BoxLayout
      extended by com.levigo.util.swing.infobar.RackLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2, Serializable

public class RackLayout
extends BoxLayout

A Rack is like a BoxLayout, except that for a horizontal/vertical layout it forces all cells to be as high/wide as the cell provided by the enclosing container. Thus, with respect to the fill behaviour more closely resembles a BorderLayout.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.BoxLayout
LINE_AXIS, PAGE_AXIS, X_AXIS, Y_AXIS
 
Constructor Summary
RackLayout(Container target, int axis)
           
 
Method Summary
 void layoutContainer(Container target)
           
 
Methods inherited from class javax.swing.BoxLayout
addLayoutComponent, addLayoutComponent, getAxis, getLayoutAlignmentX, getLayoutAlignmentY, getTarget, invalidateLayout, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RackLayout

public RackLayout(Container target,
                  int axis)
Parameters:
target -
axis -
Method Detail

layoutContainer

public void layoutContainer(Container target)
Specified by:
layoutContainer in interface LayoutManager
Overrides:
layoutContainer in class BoxLayout


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.