com.sun.lwuit.layouts
Class LayeredLayout

java.lang.Object
  extended by com.sun.lwuit.layouts.Layout
      extended by 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.


Constructor Summary
LayeredLayout()
           
 
Method Summary
 Dimension getPreferredSize(Container parent)
          Returns the container preferred size
 boolean isOverlapSupported()
          This method returns true if the Layout allows Components to Overlap.
 void layoutContainer(Container parent)
          Layout the given parent container children
 java.lang.String toString()
           
 
Methods inherited from class com.sun.lwuit.layouts.Layout
addLayoutComponent, equals, getComponentConstraint, hashCode, removeLayoutComponent
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayeredLayout

public LayeredLayout()
Method Detail

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