|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.dtv.lwuit.layouts.Layout
com.sun.dtv.lwuit.layouts.CoordinateLayout
public class 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.dtv.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 object| Method Detail |
|---|
public void layoutContainer(Container parent)
Layout
layoutContainer in class Layoutparent - the given parent containerpublic Dimension getPreferredSize(Container parent)
Layout
getPreferredSize in class Layoutparent - the parent container
public boolean isOverlapSupported()
Layout
isOverlapSupported in class Layout
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||