public class EdgeLayout extends java.lang.Object implements Layout
Container
's components
according to a certain grid. This is similar to Java's
BorderLayout
, but also allows components to be placed in
each of the corners.Constructor and Description |
---|
EdgeLayout()
Initializes a layout manager object without space between the
components.
|
EdgeLayout(double gapH,
double gapV)
Initializes a layout manager object with the specified space between the
components.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Dimension2D |
getGap()
Returns the minimal space between components.
|
java.awt.geom.Dimension2D |
getPreferredSize(Container container)
Returns the preferred size of the specified container using this layout.
|
void |
layout(Container container)
Arranges the components of the specified container according to this
layout.
|
public EdgeLayout(double gapH, double gapV)
gapH
- Horizontal gap.gapV
- Vertical gap.public EdgeLayout()
public void layout(Container container)
public java.awt.geom.Dimension2D getPreferredSize(Container container)
getPreferredSize
in interface Layout
container
- Container whose preferred size is to be returned.public java.awt.geom.Dimension2D getGap()