public class OuterEdgeLayout extends Object implements Layout
Container
's components
inside or in the regions outside of the container. This is similar to
EdgeLayout
, but also allows components to be placed outside the
container.Constructor and Description |
---|
OuterEdgeLayout()
Initializes a layout manager object without space between the
components.
|
OuterEdgeLayout(double gap)
Initializes a layout manager object with the specified space between the
container's edges and the components.
|
Modifier and Type | Method and Description |
---|---|
Dimension2D |
getGap()
Returns the minimal space between components.
|
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 OuterEdgeLayout(double gap)
gap
- Spacing between the container's edges and the components.public OuterEdgeLayout()
public void layout(Container container)
public Dimension2D getPreferredSize(Container container)
getPreferredSize
in interface Layout
container
- Container whose preferred size is to be returned.public Dimension2D getGap()
Copyright © 2009-2013. All Rights Reserved.