Class JDPRowLayout
java.lang.Object
|
+----JDPRowLayout
- public class JDPRowLayout
- extends Object
- implements LayoutManager
Class JDPRowLayout represents layout manager for laying out components in straight
horizontal lines and vertical rows with scroll bars if necessary.
-
JDPRowLayout()
- Constructs a new JDPRowLayout.
-
JDPRowLayout(int, int)
- Constructs a JDPRowLayout with the specified gap.
-
JDPRowLayout(int, int, boolean)
- Constructs a JDPRowLayout with the specified gap.
-
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.
-
reDrawPanel(Container)
- Redraw this panel from scratch
-
removeLayoutComponent(Component)
- Removes the specified component from the layout.
-
toString()
- Returns the String representation of this JDPRowLayout's values.
JDPRowLayout
public JDPRowLayout()
- Constructs a new JDPRowLayout.
JDPRowLayout
public JDPRowLayout(int hgap,
int vgap)
- Constructs a JDPRowLayout with the specified gap.
- Parameters:
- hgap - the horizontal gap
- vgap - the vertical gap
JDPRowLayout
public JDPRowLayout(int hgap,
int vgap,
boolean staticLayout)
- Constructs a JDPRowLayout with the specified gap.
- Parameters:
- hgap - the horizontal gap
- vgap - the vertical gap
- staticLayout - set to true to allow a component to be removed and then
put back in the same position
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
reDrawPanel
public void reDrawPanel(Container target)
- Redraw this panel from scratch
- Parameters:
- target - the target panel where this one presently resides
toString
public String toString()
- Returns the String representation of this JDPRowLayout's values.
- Overrides:
- toString in class Object