|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.StackedLayout
public class StackedLayout
Class that represents a layout manager which arranges its components lying upon another.
Constructor Summary | |
---|---|
StackedLayout(DrawableConstants.Orientation orientation)
Creates a new StackedLayout object with the specified orientation and default gap between the components. |
|
StackedLayout(DrawableConstants.Orientation orientation,
Dimension2D gap)
Creates a new StackedLayout object with the specified orientation gap between the components. |
Method Summary | |
---|---|
Dimension2D |
getGap()
Returns the minimal space between components. |
DrawableConstants.Orientation |
getOrientation()
Returns whether the components will be laid out horizontally or vertically. |
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 StackedLayout(DrawableConstants.Orientation orientation)
orientation
- Orientation in which components are stacked.public StackedLayout(DrawableConstants.Orientation orientation, Dimension2D gap)
orientation
- Orientation in which components are stacked.gap
- Gap between the components.Method Detail |
---|
public Dimension2D getPreferredSize(Container container)
Layout
getPreferredSize
in interface Layout
container
- Container whose preferred size is to be returned.
public void layout(Container container)
Layout
layout
in interface Layout
container
- Container to be laid out.public DrawableConstants.Orientation getOrientation()
public Dimension2D getGap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |