de.erichseifert.gral.graphics.layout
Class OuterEdgeLayout
- java.lang.Object
-
- de.erichseifert.gral.graphics.layout.AbstractLayout
-
- de.erichseifert.gral.graphics.layout.OuterEdgeLayout
-
- All Implemented Interfaces:
- Layout, java.io.Serializable
public class OuterEdgeLayout extends AbstractLayout
Implementation of Layout that arranges aContainer's components inside or in the regions outside of the container. This is similar toEdgeLayout, but also allows components to be placed outside the container.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.geom.Dimension2DgetPreferredSize(Container container)Returns the preferred size of the specified container using this layout.voidlayout(Container container)Arranges the components of the specified container according to this layout.-
Methods inherited from class de.erichseifert.gral.graphics.layout.AbstractLayout
getGapX, getGapY, setGapX, setGapY
-
-
-
-
Constructor Detail
-
OuterEdgeLayout
public OuterEdgeLayout(double gap)
Initializes a layout manager object with the specified space between the container's edges and the components.- Parameters:
gap- Spacing between the container's edges and the components.
-
OuterEdgeLayout
public OuterEdgeLayout()
Initializes a layout manager object without space between the components.
-
-
Method Detail
-
layout
public void layout(Container container)
Arranges the components of the specified container according to this layout.- Parameters:
container- Container to be laid out.
-
getPreferredSize
public java.awt.geom.Dimension2D getPreferredSize(Container container)
Returns the preferred size of the specified container using this layout.- Parameters:
container- Container whose preferred size is to be returned.- Returns:
- Preferred extent of the specified container.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG