com.sun.lwuit.layouts
Class CoordinateLayout

java.lang.Object
  extended by com.sun.lwuit.layouts.Layout
      extended by com.sun.lwuit.layouts.CoordinateLayout

public class CoordinateLayout
extends Layout

Allows laying out components based on absolute positions/sizes that are adapted based on available space for the layout. The layout


Constructor Summary
CoordinateLayout()
          Allows creating a coordinate layouts that disables the scaling feature
CoordinateLayout(Dimension d)
          This constructor accepts the relative width and height used to define the aspect ratio of the Container
CoordinateLayout(int width, int height)
          This constructor accepts the relative width and height used to define the aspect ratio of the Container
 
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
 
Methods inherited from class com.sun.lwuit.layouts.Layout
addLayoutComponent, equals, getComponentConstraint, hashCode, removeLayoutComponent
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinateLayout

public CoordinateLayout()
Allows creating a coordinate layouts that disables the scaling feature


CoordinateLayout

public CoordinateLayout(int width,
                        int height)
This constructor accepts the relative width and height used to define the aspect ratio of the Container

Parameters:
width -
height -

CoordinateLayout

public CoordinateLayout(Dimension d)
This constructor accepts the relative width and height used to define the aspect ratio of the Container

Parameters:
d - the width/height
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

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