de.erichseifert.gral.graphics.layout
Class EdgeLayout
- java.lang.Object
-
- de.erichseifert.gral.graphics.layout.AbstractLayout
-
- de.erichseifert.gral.graphics.layout.EdgeLayout
-
- All Implemented Interfaces:
- Layout, java.io.Serializable
public class EdgeLayout extends AbstractLayout
Implementation of Layout that arranges aContainer's components according to a certain grid. This is similar to Java'sBorderLayout, but also allows components to be placed in each of the corners.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors 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.
-
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
-
EdgeLayout
public EdgeLayout(double gapH, double gapV)Initializes a layout manager object with the specified space between the components.- Parameters:
gapH- Horizontal gap.gapV- Vertical gap.
-
EdgeLayout
public EdgeLayout()
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