|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.lwuit.layouts.Layout
com.sun.lwuit.layouts.CoordinateLayout
Allows laying out components based on absolute positions/sizes that are adapted based on available space for the layout.
Constructor Summary | |
CoordinateLayout(Dimension d)
This constructor accepts a Dimension object
in order 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, getComponentConstraint, removeLayoutComponent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CoordinateLayout(int width, int height)
width
- the widthheight
- the heightpublic CoordinateLayout(Dimension d)
Dimension
object
in order to define the aspect ratio of the Container.
d
- the aspect ratio of the Container as a Dimension objectMethod Detail |
public void layoutContainer(Container parent)
Layout
layoutContainer
in class Layout
parent
- the given parent containerpublic Dimension getPreferredSize(Container parent)
Layout
getPreferredSize
in class Layout
parent
- the parent container
public boolean isOverlapSupported()
Layout
isOverlapSupported
in class Layout
|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |