net.sf.vex.layout
Class CssBoxFactory

java.lang.Object
  |
  +--net.sf.vex.layout.CssBoxFactory
All Implemented Interfaces:
BoxFactory

public class CssBoxFactory
extends java.lang.Object
implements BoxFactory

Implementation of the BoxFactory interface that returns boxes that represent CSS semantics.


Constructor Summary
CssBoxFactory()
          Class constructor.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssBoxFactory

public CssBoxFactory()
Class constructor.

Method Detail

createBox

public Box createBox(BlockElementBox parent,
                     Element element)
Description copied from interface: BoxFactory
Creates a box given an element.

Specified by:
createBox in interface BoxFactory
Parameters:
parent - Parent box for the new box.
element - Element for which the box should be created.

createRootBox

public RootBox createRootBox(Element element)
Description copied from interface: BoxFactory
Creates a box that is the root of the layout.

Specified by:
createRootBox in interface BoxFactory
Parameters:
element - Root element of the document.