|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--amber.awt.XYLayout
This is an XY layout manager which handles laying out components in a simple X,Y,W,H manner.
ApplicationHandler,
ComponentHandler| Constructor Summary | |
XYLayout()
Default constructor. |
|
| Method Summary | |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Add the specified component to the layout. |
java.lang.String |
getComponentLayout(java.awt.Component comp)
Find the layout characteristics for a specified component. |
static int[] |
getCoordinates(java.lang.String coords)
This function takes the input string and converts it to a coordinate array. |
static void |
getCoordinates(java.lang.String coords,
int[] data)
This function takes the input string and converts it to a coordinate array. |
void |
layoutContainer(java.awt.Container parent)
This function actually performs the required layout of the components. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Returns the minimum dimensions of the layout in pixels. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Returns the preferred dimensions of the layout in pixels. |
void |
removeLayoutComponent(java.awt.Component comp)
Remove the specified component from the layout. |
void |
setSize(int width,
int height)
Set the preferred and minimum size of the layout. |
static java.lang.String |
valuesToString(int[] coords)
This function takes the input array and converts it to a coordinate String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XYLayout()
| Method Detail |
public void setSize(int width,
int height)
width - int containing the width of the layout.height - int containing the height of the layout.
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagername - String containing where to place the component in the layout.
The format of the string is x,y,w,h (no spaces allowed).comp - Component to add to the layout.public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagercomp - Component to remove from the layout.public java.lang.String getComponentLayout(java.awt.Component comp)
comp - Component to get the characteristics for.public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerparent - Container which owns this layout.public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerparent - Container which owns this layout.public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerparent - Container which owns this layout.public static int[] getCoordinates(java.lang.String coords)
coords - String containing the coordinates in n,n... format.public static java.lang.String valuesToString(int[] coords)
coords - int array containing the coordinates.
public static void getCoordinates(java.lang.String coords,
int[] data)
coords - String containing the coordinates in n,n... format.data - The int array to place the converted data into.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||