org.jdesktop.swingx
Class HorizontalLayout

java.lang.Object
  extended by org.jdesktop.swingx.HorizontalLayout
All Implemented Interfaces:
LayoutManager, Serializable

@JavaBean
public class HorizontalLayout
extends Object

Organizes components in a horizontal layout.

Author:
Romain Guy , Karl Schaefer
See Also:
Serialized Form

Constructor Summary
HorizontalLayout()
           
HorizontalLayout(int gap)
           
 
Method Summary
 void addLayoutComponent(String name, Component comp)
          
 int getGap()
           
 void layoutContainer(Container parent)
           
 Dimension minimumLayoutSize(Container parent)
          
 Dimension preferredLayoutSize(Container parent)
           
 void removeLayoutComponent(Component comp)
          
 void setGap(int gap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HorizontalLayout

public HorizontalLayout()

HorizontalLayout

public HorizontalLayout(int gap)
Method Detail

getGap

public int getGap()

setGap

public void setGap(int gap)

layoutContainer

public void layoutContainer(Container parent)

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)

addLayoutComponent

public void addLayoutComponent(String name,
                               Component comp)

This implementation does nothing.

Specified by:
addLayoutComponent in interface LayoutManager

removeLayoutComponent

public void removeLayoutComponent(Component comp)

This implementation does nothing.

Specified by:
removeLayoutComponent in interface LayoutManager

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)

This implementation defers to LayoutManager.preferredLayoutSize(Container).

Specified by:
minimumLayoutSize in interface LayoutManager


Copyright © 2012. All Rights Reserved.