pagelayout.util
Class NamedSeparator.SepRow

java.lang.Object
  extended by pagelayout.Cell
      extended by pagelayout.CellContainer
          extended by pagelayout.Row
              extended by pagelayout.util.NamedSeparator.SepRow
Enclosing class:
NamedSeparator

public class NamedSeparator.SepRow
extends Row


Nested Class Summary
 
Nested classes/interfaces inherited from class pagelayout.Cell
Cell.Constraint
 
Field Summary
 
Fields inherited from class pagelayout.CellContainer
cells, halignment, parallelAlignment, valignment
 
Fields inherited from class pagelayout.Cell
BASELINE, BOTTOM, boundSpring, CENTER, constraint, filledSizeX, filledSizeY, fixMaxSize, FOUND_NOTREPLACED, FOUND_REPLACED, halign, JUSTIFIED, LEFT, links, MAX, NEWROW, NO_ALIGNMENT, NOT_FOUND, RIGHT, SKIP, TOP, valign
 
Constructor Summary
NamedSeparator.SepRow()
           
 
Method Summary
 BoundSpring computeBoundSpring()
          Computes the two-dimensional spring associated with the row that results from stacking horizontally the two-dimensional springs associated with each column of the row.
protected  void layout(int x, int y, int width, int height)
          This method of the top level cell is called by the layout manager whenever the container calls the manager to layout the components within it.
protected  void setBounds(int x, int y, int w, int h)
          Arranges the columns of the row within the specified rectangle of the container.
 
Methods inherited from class pagelayout.Row
duplicate, getBaseline, getColumnWidths, isHorizontal, newColumn, newColumn, newColumn, newColumn, newColumn, newColumn
 
Methods inherited from class pagelayout.CellContainer
add, add, add, add, add, add, add, addComponentsToContainer, changeAlignment, clear, getAlignment, getChildAt, getParallelAlignment, limitAlignment, numberOfChildren, replaceChild, toString, xmlserialize
 
Methods inherited from class pagelayout.Cell
addArgs, alignBaseline, alignBaseline, checkArgs, createLayout, dupConstraint, getBoundSpring, getCellByName, getComponent, getComponentCell, getComponentCell, getConstraint, getContainer, getDim, getFilledSizeX, getFilledSizeY, getName, getParent, getRootCell, getSize, invalidate, isCell, isCellOrComponent, isComponentCell, isFixedHeight, isFixedSize, isFixedWidth, linkHeight, linkHeight, linkHeight, linkToContainerHeight, linkToContainerWidth, linkWidth, linkWidth, linkWidth, removeAllComponents, removeComponent, replaceCell, setAlignment, setBounds, setComponentGaps, setDim, setFixedHeight, setFixedHeight, setFixedHeight, setFixedHeight, setFixedHeight, setFixedSize, setFixedSize, setFixedSize, setFixedWidth, setFixedWidth, setFixedWidth, setFixedWidth, setFixedWidth, setName, setParent, setSize, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedSeparator.SepRow

public NamedSeparator.SepRow()
Method Detail

setBounds

protected void setBounds(int x,
                         int y,
                         int w,
                         int h)
Description copied from class: Row
Arranges the columns of the row within the specified rectangle of the container.

Overrides:
setBounds in class Row
Parameters:
x - the x-coordinate of the top left of the rectangle.
y - the y-coordinate of the top left of the rectangle.
w - the width of the rectangle.
h - the height of the rectangle.

computeBoundSpring

public BoundSpring computeBoundSpring()
Description copied from class: Row
Computes the two-dimensional spring associated with the row that results from stacking horizontally the two-dimensional springs associated with each column of the row.

Overrides:
computeBoundSpring in class Row
Returns:
The computed two-dimensional spring.

layout

protected void layout(int x,
                      int y,
                      int width,
                      int height)
Description copied from class: Cell
This method of the top level cell is called by the layout manager whenever the container calls the manager to layout the components within it. Depending on the preferred and maximum size of the cell, appropriately modified parameters of the bounding rectangle within the container are passed to the setBounds method of this cell. In each cell, the the two-dimensional spring associated with each child is used to determine the actual layout dimension of the box within which the child is to laid out. This process continues recursively till all the components have been laid out.

Overrides:
layout in class CellContainer
Parameters:
x - the x-coordinate of the top left of the rectangle.
y - the y-coordinate of the top left of the rectangle.
width - the width of the rectangle.
height - the height of the rectangle.