|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--uk.co.ist.mwt.MarginLayoutManager
Most of the Motif emulation layout managers have various properties in common; these are inherited from MarginLayoutManager
| Field Summary | |
protected int |
marginHeight
The minimum spacing in pixels between the top of the parent Container and the top of the child component nearest the top when the Container is its preferred size |
protected int |
marginWidth
The minimum spacing in pixels between the left of the parent Container and the rightmost side of the rightmost child component when the Container is its preferred size |
| Constructor Summary | |
MarginLayoutManager()
|
|
| Method Summary | |
abstract 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 |
abstract void |
layoutContainer(java.awt.Container parent)
Lays out the container. |
abstract java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Method to find the minimum size of the parent container with this layout |
abstract java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Method to find the preferred size of the parent container with this layout |
abstract 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 |
protected java.awt.Dimension |
sizeOfComponent(java.awt.Component c,
boolean minimum)
Calculates how large a component wants to be. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected int marginWidth
protected int marginHeight
| Constructor Detail |
public MarginLayoutManager()
| Method Detail |
public void setMarginWidth(int width)
width - the new margin widthgetMarginWidth(),
getMarginHeight(),
setMarginHeight(int)public int getMarginWidth()
setMarginWidth(int),
getMarginHeight(),
setMarginHeight(int)public void setMarginHeight(int height)
height - the new margin heightgetMarginHeight(),
getMarginWidth(),
setMarginWidth(int)public int getMarginHeight()
setMarginHeight(int),
getMarginWidth(),
setMarginWidth(int)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 outpreferredLayoutSize(java.awt.Container)public abstract java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
parent - the component to be laid outminimumLayoutSize(java.awt.Container)public abstract void removeLayoutComponent(java.awt.Component comp)
comp - would be the component to remove.addLayoutComponent(java.lang.String, java.awt.Component)
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.removeLayoutComponent(java.awt.Component)
protected java.awt.Dimension sizeOfComponent(java.awt.Component c,
boolean minimum)
c - the component whose size we wantminimum - true if the minimum size is wanted; false if preferred
size is wanted
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||