|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.ist.mwt.MarginLayoutManager | +--uk.co.ist.mwt.PanedWindowLayout
A PanedWindowLayout splits itself vertically, with each of its children taking up the whole width of the parent container, and a portion of its height. The children are separated by separators. The height of each child can be dynamically changed by the user. Each child's position and other details can be specified in a PanedWindowConstraints object using layout.constrain(); if this is not called, ot a null constrains is used, a default set of constraints are used.
Fields inherited from class uk.co.ist.mwt.MarginLayoutManager |
marginHeight,
marginWidth |
Constructor Summary | |
PanedWindowLayout()
|
Method Summary | |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Add a component to the layout manager's records. |
void |
constrain(java.awt.Component comp,
PanedWindowConstraints constr)
Add a set of constraints to one of the children in the layout; if the child has not yet been added, throw the constraints away (as the child must have been added to the container before we can safely add it here. |
protected void |
doFirstTimeLayout(java.awt.Container parent,
java.awt.Dimension totalSize)
Lays out the container when we first come to it. |
void |
doLayout(java.awt.Container parent)
Wrapper for the doLayout with more parameters; calculates the missing parameters from the parent. |
protected void |
doLayout(java.awt.Container parent,
java.awt.Dimension totalSize,
Sorter children)
Places the children into their caculated positions |
protected void |
doNormalLayout(java.awt.Container parent,
java.awt.Dimension totalSize)
Lays out the container at any time after the first layout; |
boolean |
getSeparatorsOn()
Finds out whether or not this layout puts separators between the components it is laying out. |
void |
layoutContainer(java.awt.Container parent)
Lays out the container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Finds out the minimum size this layout needs in the given parent |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Finds out the preferred size this layout wants in the given parent |
void |
removeLayoutComponent(java.awt.Component comp)
Remove a component from the layout manager's records. |
void |
setSeparatorsOn(boolean whether)
Sets whether or not this layout puts separators between the components it is laying out. |
Sorter |
sortedChildren(java.awt.Container parent)
Sorts the children into the order of their position indices |
Methods inherited from class uk.co.ist.mwt.MarginLayoutManager |
getMarginHeight,
getMarginWidth,
setMarginHeight,
setMarginWidth,
sizeOfComponent |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public PanedWindowLayout()
Method Detail |
public void constrain(java.awt.Component comp, PanedWindowConstraints constr)
public Sorter sortedChildren(java.awt.Container parent)
parent
- the container of these childrenpublic void doLayout(java.awt.Container parent)
protected void doLayout(java.awt.Container parent, java.awt.Dimension totalSize, Sorter children)
parent
- the container we're attached tototalSize
- the amount of its space we may usechildren
- a sorted list of the childrenprotected void doNormalLayout(java.awt.Container parent, java.awt.Dimension totalSize)
protected void doFirstTimeLayout(java.awt.Container parent, java.awt.Dimension totalSize)
public void layoutContainer(java.awt.Container parent)
parent
- the component which needs to be laid outpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
parent
- the component to be laid outMarginLayoutManager.preferredLayoutSize(java.awt.Container)
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
parent
- the component to be laid outMarginLayoutManager.minimumLayoutSize(java.awt.Container)
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)
public void setSeparatorsOn(boolean whether)
public boolean getSeparatorsOn()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |