Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class uk.co.ist.mwt.ScaleChildLayout

java.lang.Object
  |
  +--uk.co.ist.mwt.ScaleChildLayout

public class ScaleChildLayout
extends java.lang.Object
implements java.awt.LayoutManager, java.io.Serializable
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.

See Also:
Serialized Form

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.
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Method Detail

setVertical

public void setVertical(boolean whether)
Sets the orientation of this layout

isVertical

public boolean isVertical()
Gets the orientation of this layout
Returns:
true if it's vertical, false otherwise

layoutContainer

public void layoutContainer(java.awt.Container parent)
Lays out the container.
Specified by:
layoutContainer(java.awt.Container) in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Method to find the minimum size of the parent container with this layout
Specified by:
minimumLayoutSize(java.awt.Container) in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Method to find the preferred size of the parent container with this layout
Specified by:
preferredLayoutSize(java.awt.Container) in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Remove a component from the layout manager's records.
Specified by:
removeLayoutComponent(java.awt.Component) in interface java.awt.LayoutManager
Parameters:
comp - would be the component to remove.
See Also:
addLayoutComponent

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Add a component to the layout manager's records.
Specified by:
addLayoutComponent(java.lang.String, java.awt.Component) in interface java.awt.LayoutManager
Parameters:
comp - would be the component to add.
name - would be the name with which to add the component.
See Also:
removeLayoutComponent

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD