net.sf.vex.layout
Interface BoxFactory

All Known Implementing Classes:
CssBoxFactory

public interface BoxFactory

Interface to an object that creates boxes from elements.


Method Summary
 Box createBox(BlockElementBox parent, Element element)
          Creates a box given an element.
 RootBox createRootBox(Element element)
          Creates a box that is the root of the layout.
 

Method Detail

createBox

public Box createBox(BlockElementBox parent,
                     Element element)
Creates a box given an element.

Parameters:
parent - Parent box for the new box.
element - Element for which the box should be created.

createRootBox

public RootBox createRootBox(Element element)
Creates a box that is the root of the layout.

Parameters:
element - Root element of the document.