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.MarginLayoutManager

java.lang.Object
  |
  +--uk.co.ist.mwt.MarginLayoutManager
Subclasses:
DlogTemplateLayout, DrawingAreaLayout, FormLayoutManager, FrameLayoutManager, PanedWindowLayout, RowColLayout, SelectionBoxLayout

public abstract class MarginLayoutManager
extends java.lang.Object
implements java.awt.LayoutManager, java.io.Serializable
Most of the Motif emulation layout managers have various properties in common; these are inherited from MarginLayoutManager

See Also:
Serialized Form

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

MarginLayoutManager

public MarginLayoutManager()
Method Detail

setMarginWidth

public void setMarginWidth(int width)
Set accessor for the margin width attribute
Parameters:
width - the new margin width
See Also:
getMarginWidth, getMarginHeight, setMarginHeight

getMarginWidth

public int getMarginWidth()
Get accessor for the margin width attribute
Returns:
the current margin width
See Also:
setMarginWidth, getMarginHeight, setMarginHeight

setMarginHeight

public void setMarginHeight(int height)
Set accessor for the margin height attribute
Parameters:
height - the new margin height
See Also:
getMarginHeight, getMarginWidth, setMarginWidth

getMarginHeight

public int getMarginHeight()
Get accessor for the margin height attribute
Returns:
the current margin height
See Also:
setMarginHeight, getMarginWidth, setMarginWidth

layoutContainer

public abstract void layoutContainer(java.awt.Container parent)
Lays out the container.
Specified by:
layoutContainer(java.awt.Container) in interface java.awt.LayoutManager
Parameters:
parent - the component which needs to be laid out

minimumLayoutSize

public abstract 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
Parameters:
parent - the component to be laid out
See Also:
preferredLayoutSize

preferredLayoutSize

public abstract 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
Parameters:
parent - the component to be laid out
See Also:
minimumLayoutSize

removeLayoutComponent

public abstract 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 abstract 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