Class sunsoft.jws.visual.rt.awt.VJFlowLayout
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sunsoft.jws.visual.rt.awt.VJFlowLayout

java.lang.Object
   |
   +----sunsoft.jws.visual.rt.awt.VJFlowLayout

public class VJFlowLayout
extends Object
implements LayoutManager
Flow layout is used to layout buttons in a panel. It will arrange buttons left to right until no more buttons fit on the same line. Each line is centered.

Variable Index

 o CENTER
The right alignment variable.
 o LEFT
The left alignment variable.
 o RIGHT
The right alignment variable.

Constructor Index

 o VJFlowLayout()
Constructs a new Flow Layout with a centered alignment.

Method Index

 o addLayoutComponent(String, Component)
Adds the specified component to the layout.
 o getAlignment()
 o getHGap()
 o getMinimumWidth()
 o getVGap()
 o layoutContainer(Container)
Lays out the container.
 o minimumLayoutSize(Container)
Returns the minimum dimensions needed to layout the components contained in the specified target container.
 o preferredLayoutSize(Container)
Returns the preferred dimensions for this layout given the components in the specified target container.
 o removeLayoutComponent(Component)
Removes the specified component from the layout.
 o setAlignment(int)
 o setHGap(int)
 o setMinimumWidth(int)
 o setVGap(int)
 o toString()
Returns the String representation of this FlowLayout's values.

Variables

 o LEFT
  public final static int LEFT
The left alignment variable.
 o CENTER
  public final static int CENTER
The right alignment variable.
 o RIGHT
  public final static int RIGHT
The right alignment variable.

Constructors

 o VJFlowLayout
  public VJFlowLayout()
Constructs a new Flow Layout with a centered alignment.

Methods

 o setAlignment
  public void setAlignment(int align)
 o getAlignment
  public int getAlignment()
 o setHGap
  public void setHGap(int hgap)
 o getHGap
  public int getHGap()
 o setVGap
  public void setVGap(int vgap)
 o getVGap
  public int getVGap()
 o setMinimumWidth
  public void setMinimumWidth(int width)
 o getMinimumWidth
  public int getMinimumWidth()
 o addLayoutComponent
  public void addLayoutComponent(String name,
                                 Component comp)
Adds the specified component to the layout. Not used by this class.
Parameters:
name - the name of the component
comp - the the component to be added
 o removeLayoutComponent
  public void removeLayoutComponent(Component comp)
Removes the specified component from the layout. Not used by this class.
Parameters:
comp - the component to remove
 o 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
See Also:
Container, minimumLayoutSize
 o 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
See Also:
preferredLayoutSize
 o 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 BorderLayout object.
Parameters:
target - the specified component being laid out.
See Also:
Container
 o toString
  public String toString()
Returns the String representation of this FlowLayout's values.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index