All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class com.trumphurst.controls.HFlowLayout
java.lang.Object
   |
   +----com.trumphurst.controls.TFlowLayout
           |
           +----com.trumphurst.controls.HFlowLayout
  -  public class HFlowLayout
  -  extends TFlowLayout
HFlow layout is used to layout components in a panel. It will arrange
 components left to right until no more buttons fit in the same row.
 The constructor has full control over alignment and packing within the row.
   
  -   HFlowLayout() HFlowLayout()
-   Constructs a new HFlow Layout with a LEFT, SPREAD alignment and a
 default 5-unit horizontal and vertical gap.
  
-   HFlowLayout(int) HFlowLayout(int)
-   Constructs a new HFlow Layout with the specified alignment and a
 default 5-unit horizontal and vertical gap.
  
-   HFlowLayout(int, int, int) HFlowLayout(int, int, int)
-   Constructs a new HFlow Layout with the specified alignment and gap
 values.
   
  -   layoutContainer(Container) layoutContainer(Container)
-   Lays out the container.
  
-   minimumLayoutSize(Container) minimumLayoutSize(Container)
-   Returns the minimum dimensions needed to layout the components
 contained in the specified target container.
  
-   preferredLayoutSize(Container) preferredLayoutSize(Container)
-   Returns the preferred dimensions for this layout given the components
 in the specified target container.
   
 HFlowLayout
HFlowLayout
 public HFlowLayout()
  -  Constructs a new HFlow Layout with a LEFT, SPREAD alignment and a
 default 5-unit horizontal and vertical gap.
 
 HFlowLayout
HFlowLayout
 public HFlowLayout(int align)
  -  Constructs a new HFlow Layout with the specified alignment and a
 default 5-unit horizontal and vertical gap.
   
- 
    -  Parameters:
    
-  align - the alignment value
  
 
 HFlowLayout
HFlowLayout
 public HFlowLayout(int align,
                    int hgap,
                    int vgap)
  -  Constructs a new HFlow Layout with the specified alignment and gap
 values.
   
- 
    -  Parameters:
    
-  align - the alignment value
    -  hgap - the horizontal gap variable
    -  vgap - the vertical gap variable
  
 
   
 preferredLayoutSize
preferredLayoutSize
 public Dimension preferredLayoutSize(Container target)
  -  Returns the preferred dimensions for this layout given the components
 in the specified target container.
   
- 
    -  Parameters:
    
-  target - the component which needs to be laid out
    
-  Overrides:
    
-  preferredLayoutSize in class TFlowLayout
    
-  See Also:
    
-  Container, minimumLayoutSize
  
 
 minimumLayoutSize
minimumLayoutSize
 public Dimension minimumLayoutSize(Container target)
  -  Returns the minimum dimensions needed to layout the components
 contained in the specified target container.
   
- 
    -  Parameters:
    
-  target - the component which needs to be laid out
    
-  Overrides:
    
-  minimumLayoutSize in class TFlowLayout
    
-  See Also:
    
-  preferredLayoutSize
  
 
 layoutContainer
layoutContainer
 public void layoutContainer(Container target)
  -  Lays out the container. This method will actually reshape the
 components in the target in order to satisfy the constraints of
 the HFlowLayout object.
   
- 
    -  Parameters:
    
-  target - the specified component being laid out.
    
-  Overrides:
    
-  layoutContainer in class TFlowLayout
    
-  See Also:
    
-  Container
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index