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.
-
CENTER
- The right alignment variable.
-
LEFT
- The left alignment variable.
-
RIGHT
- The right alignment variable.
-
VJFlowLayout()
- Constructs a new Flow Layout with a centered alignment.
-
addLayoutComponent(String, Component)
- Adds the specified component to the layout.
-
getAlignment()
-
-
getHGap()
-
-
getMinimumWidth()
-
-
getVGap()
-
-
layoutContainer(Container)
- Lays out the container.
-
minimumLayoutSize(Container)
- Returns the minimum dimensions needed to layout the components
contained in the specified target container.
-
preferredLayoutSize(Container)
- Returns the preferred dimensions for this layout given the components
in the specified target container.
-
removeLayoutComponent(Component)
- Removes the specified component from the layout.
-
setAlignment(int)
-
-
setHGap(int)
-
-
setMinimumWidth(int)
-
-
setVGap(int)
-
-
toString()
- Returns the String representation of this FlowLayout's values.
LEFT
public final static int LEFT
- The left alignment variable.
CENTER
public final static int CENTER
- The right alignment variable.
RIGHT
public final static int RIGHT
- The right alignment variable.
VJFlowLayout
public VJFlowLayout()
- Constructs a new Flow Layout with a centered alignment.
setAlignment
public void setAlignment(int align)
getAlignment
public int getAlignment()
setHGap
public void setHGap(int hgap)
getHGap
public int getHGap()
setVGap
public void setVGap(int vgap)
getVGap
public int getVGap()
setMinimumWidth
public void setMinimumWidth(int width)
getMinimumWidth
public int getMinimumWidth()
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
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Removes the specified component from the layout. Not used by
this class.
- Parameters:
- comp - the component to remove
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
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
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
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