com.sun.lwuit.layouts
Class LayeredLayout
java.lang.Object
com.sun.lwuit.layouts.Layout
com.sun.lwuit.layouts.LayeredLayout
public class LayeredLayout
- extends Layout
Allows placing components one on top of the other like a stack, this layout
effectively allows us to build a UI of overlapping components. The components
may be containers with their own layout managers to allow elaborate arbitrary
looks.
Since the Z-ordering creates a great deal of complexity and inefficiency it
is recommended that you first try to achieve the desired UI without resorting to
this layout or coordinate layout.
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
LayeredLayout
public LayeredLayout()
layoutContainer
public void layoutContainer(Container parent)
- Description copied from class:
Layout
- Layout the given parent container children
- Specified by:
layoutContainer
in class Layout
- Parameters:
parent
- the given parent container
getPreferredSize
public Dimension getPreferredSize(Container parent)
- Description copied from class:
Layout
- Returns the container preferred size
- Specified by:
getPreferredSize
in class Layout
- Parameters:
parent
- the parent container
- Returns:
- the container preferred size
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isOverlapSupported
public boolean isOverlapSupported()
- Description copied from class:
Layout
- This method returns true if the Layout allows Components to
Overlap.
- Overrides:
isOverlapSupported
in class Layout
- Returns:
- true if Components may intersect in this layout