|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.EdgeLayout
public class EdgeLayout
Implementation of Layout that arranges a 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 Summary | |
---|---|
EdgeLayout(double hgap,
double vgap)
Creates an EdgeLayout with the specified distances between the components. |
Method Summary | |
---|---|
Dimension2D |
getPreferredSize(Container container)
Returns the preferred size of the specified Container using this Layout. |
void |
layout(Container container)
Arranges the components of this Container according to this Layout. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EdgeLayout(double hgap, double vgap)
hgap
- Horizontal gap.vgap
- Vertical gap.Method Detail |
---|
public void layout(Container container)
Layout
layout
in interface Layout
container
- Container to be laid out.public Dimension2D getPreferredSize(Container container)
Layout
getPreferredSize
in interface Layout
container
- Container whose preferred size is to be returned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |