| Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object | +--uk.co.ist.mwt.MarginLayoutManager
| Constructor Summary | |
| MarginLayoutManager()
|
|
| Method Summary | |
| void | addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Add a component to the layout manager's records. |
| int | getMarginHeight()
Get accessor for the margin height attribute |
| int | getMarginWidth()
Get accessor for the margin width attribute |
| void | layoutContainer(java.awt.Container parent)
Lays out the container. |
| java.awt.Dimension | minimumLayoutSize(java.awt.Container parent)
Method to find the minimum size of the parent container with this layout |
| java.awt.Dimension | preferredLayoutSize(java.awt.Container parent)
Method to find the preferred size of the parent container with this layout |
| void | removeLayoutComponent(java.awt.Component comp)
Remove a component from the layout manager's records. |
| void | setMarginHeight(int height)
Set accessor for the margin height attribute |
| void | setMarginWidth(int width)
Set accessor for the margin width attribute |
| Methods inherited from class java.lang.Object | |
| equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait | |
| Constructor Detail |
public MarginLayoutManager()
| Method Detail |
public void setMarginWidth(int width)
width
- the new margin widthpublic int getMarginWidth()
public void setMarginHeight(int height)
height
- the new margin heightpublic int getMarginHeight()
public abstract void layoutContainer(java.awt.Container parent)
parent
- the component which needs to be laid outpublic abstract java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
parent
- the component to be laid outpublic abstract java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
parent
- the component to be laid outpublic abstract void removeLayoutComponent(java.awt.Component comp)
comp
- would be the component to remove.
public abstract void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
comp
- would be the component to add.
name
- would be the name with which to add the component.| Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||