|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.ist.mwt.ScaleChildLayout
As we don't let scale widgets have children, to get the normal Motif behaviour, you should put the scale in the East or South section of a BorderLayout, and puts its children in a Container in the Center. This latter Container should have a ScaleChildLayout. The effects should then be as expected. NB. if you change the scale's orientation, don't forget to change that of the layout, and to move it to a new position in the parent. The ScalePanel can be used as a short-cut; it implements the behaviour described above.
Constructor Summary | |
ScaleChildLayout()
|
Method Summary | |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Add a component to the layout manager's records. |
boolean |
isVertical()
Gets the orientation of this layout |
void |
layoutContainer(java.awt.Container parent)
Lays out the container. |
protected java.awt.Dimension |
layoutSize(java.awt.Container parent,
boolean minimum)
Find out the size - minimum if the flag is set, preferred otherwise - of the /parent/ with this layout attached. |
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 |
setVertical(boolean whether)
Sets the orientation of this layout |
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 |
Constructor Detail |
public ScaleChildLayout()
Method Detail |
public void setVertical(boolean whether)
public boolean isVertical()
public void layoutContainer(java.awt.Container parent)
protected java.awt.Dimension layoutSize(java.awt.Container parent, boolean minimum)
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
public void removeLayoutComponent(java.awt.Component comp)
comp
- would be the component to remove.addLayoutComponent(java.lang.String, java.awt.Component)
public 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)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |