All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.replay.SplitbarLayout
java.lang.Object
|
+----ncsa.replay.SplitbarLayout
- public class SplitbarLayout
- extends Object
- implements LayoutManager
SplitbarLayout
The layout for a splitbar
-
EQUAL_WEIGHT
-
-
FAVOR_FIRST
-
-
FAVOR_SECOND
-
-
HORIZONTAL
-
-
VERTICAL
-
-
SplitbarLayout(int)
- Constructs a new SplitbarLayout.
-
addLayoutComponent(String, Component)
- Adds the specified named component to the layout.
-
layoutContainer(Container)
- Lays out the specified 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.
-
setDefaultLayout(Container)
-
Set the container to default layout
-
setWeight(int)
- Set preferrence in space distribution amoung two components splited by the Splitbar
-
toString()
- Returns the String representation of this BorderLayout's values.
EQUAL_WEIGHT
public static final int EQUAL_WEIGHT
FAVOR_FIRST
public static final int FAVOR_FIRST
FAVOR_SECOND
public static final int FAVOR_SECOND
HORIZONTAL
public static final int HORIZONTAL
VERTICAL
public static final int VERTICAL
SplitbarLayout
public SplitbarLayout(int Orientation)
- Constructs a new SplitbarLayout.
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
- Adds the specified named component to the layout.
- Parameters:
- name - the String name
- comp - the component to be added
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Removes the specified component from the layout.
- Parameters:
- comp - the component to be removed
minimumLayoutSize
public Dimension minimumLayoutSize(Container target)
- Returns the minimum dimensions needed to layout the components
contained in the specified target container.
- Parameters:
- target - the Container on which to do the layout
- See Also:
- Container, 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
- See Also:
- Container, minimumLayoutSize
layoutContainer
public void layoutContainer(Container target)
- Lays out the specified container. This method will actually reshape the
components in the specified target container in order to satisfy the
constraints of the BorderLayout object.
- Parameters:
- target - the component being laid out
- See Also:
- Container
toString
public String toString()
- Returns the String representation of this BorderLayout's values.
- Overrides:
- toString in class Object
setWeight
public void setWeight(int w)
- Set preferrence in space distribution amoung two components splited by the Splitbar
- Parameters:
- w - preferrence that is one of EQUAL_WEIGHT, FAVOR_FIRST, FARVOR_SECOND
setDefaultLayout
public void setDefaultLayout(Container target)
- Set the container to default layout
- Parameters:
- target - the container to layout
All Packages Class Hierarchy This Package Previous Next Index