All Packages Class Hierarchy This Package Previous Next Index
Class datarep.common.BottomLayout
java.lang.Object
|
+----datarep.common.BottomLayout
- public class BottomLayout
- extends Object
- implements LayoutManager, Serializable
The BottomLayout lays out objects in a bottom justified, horizontal row.
They can be aligned left, right, or centered. It is also possible to set the
horizontal gap, and whether the components should fill vertically any extra space.
- Version:
- 1.2
- Author:
- Data Representations, Inc.
-
CENTER
-
-
LEFT
-
-
RIGHT
-
-
BottomLayout()
- creates a BottomLayout with the default values of gap=0, alignment=LEFT, vertical fill=false
-
BottomLayout(boolean)
- creates a BottomLayout with specified value for vertical fill, and default values for gap and
alignment.
-
BottomLayout(int)
- creates a BottomLayout with the specified alignment, and default values for gap and vertical
fill.
-
BottomLayout(int, int)
- creates a BottomLayout with the specified alignment and gap, and the default value for vertical
fill.
-
BottomLayout(int, int, boolean)
- creates a BottomLayout with the specified values for alignment, gap, and vertical fill.
-
addLayoutComponent(String, Component)
-
-
getAlignment()
-
-
getFill()
-
-
getHgap()
-
-
layoutContainer(Container)
-
-
minimumLayoutSize(Container)
-
-
preferredLayoutSize(Container)
-
-
removeLayoutComponent(Component)
-
-
setAlignment(int)
- sets the aligments of objects in the bottom layout.
-
setFill(boolean)
- Sets whether empty vertical space is filled or not.
-
setHgap(int)
- sets the Horizontal gap between elements.
LEFT
public static final int LEFT
CENTER
public static final int CENTER
RIGHT
public static final int RIGHT
BottomLayout
public BottomLayout()
- creates a BottomLayout with the default values of gap=0, alignment=LEFT, vertical fill=false
BottomLayout
public BottomLayout(int alignment)
- creates a BottomLayout with the specified alignment, and default values for gap and vertical
fill.
BottomLayout
public BottomLayout(int alignment,
int gap)
- creates a BottomLayout with the specified alignment and gap, and the default value for vertical
fill.
BottomLayout
public BottomLayout(boolean fill)
- creates a BottomLayout with specified value for vertical fill, and default values for gap and
alignment.
BottomLayout
public BottomLayout(int alignment,
int gap,
boolean fill)
- creates a BottomLayout with the specified values for alignment, gap, and vertical fill.
setAlignment
public void setAlignment(int alignment)
- sets the aligments of objects in the bottom layout.
The options are
- LEFT
- CENTER
- RIGHT
getAlignment
public int getAlignment()
setHgap
public void setHgap(int gap)
- sets the Horizontal gap between elements.
getHgap
public int getHgap()
setFill
public void setFill(boolean fill)
- Sets whether empty vertical space is filled or not.
getFill
public boolean getFill()
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
removeLayoutComponent
public void removeLayoutComponent(Component comp)
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
layoutContainer
public void layoutContainer(Container parent)
All Packages Class Hierarchy This Package Previous Next Index