net.sf.vex.layout
Class LayoutUtils

java.lang.Object
  |
  +--net.sf.vex.layout.LayoutUtils

public class LayoutUtils
extends java.lang.Object

Tools for layout and rendering of CSS-styled boxes


Constructor Summary
LayoutUtils()
           
 
Method Summary
static java.util.List createGeneratedInlines(LayoutContext context, Element pseudoElement)
          Create a List of generated inline boxes for the given pseudo-element.
static void drawBox(LayoutContext context, Box box, int x, int y)
          Draws the background and borders of a CSS-styled box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutUtils

public LayoutUtils()
Method Detail

createGeneratedInlines

public static java.util.List createGeneratedInlines(LayoutContext context,
                                                    Element pseudoElement)
Create a List of generated inline boxes for the given pseudo-element.

Parameters:
context - LayoutContext in use
pseudoElement - Element representing the generated content.

drawBox

public static void drawBox(LayoutContext context,
                           Box box,
                           int x,
                           int y)
Draws the background and borders of a CSS-styled box.

Parameters:
context - LayoutContext used for drawing.
box - ElementBox around which to draw the box.
x - x-coordinate of the left side of the box
y - y-coordinate of the top of the box