org.pentaho.reporting.engine.classic.core.layout.process
Class ProcessUtility

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.layout.process.ProcessUtility

public class ProcessUtility
extends Object

Creation-Date: 16.07.2007, 13:42:43

Author:
Thomas Morgner

Method Summary
static long computeBlockContextWidth(RenderNode box)
          Returns the computed block-context width.
static long computeLength(long min, long max, long pref)
           
static boolean hasBorderEdge(StyleSheet style)
           
static boolean isContent(RenderBox element, boolean ellipseAsBackground, boolean shapesAsContent)
           
static BorderEdge produceBorderEdge(StyleSheet style)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

computeBlockContextWidth

public static long computeBlockContextWidth(RenderNode box)
Returns the computed block-context width. This width is a content-size width - so it excludes paddings and borders. (See CSS3-BOX 4.2; http://www.w3.org/TR/css3-box/#containing)

Parameters:
box - the box for which the block-context width should be computed.
Returns:
the block context width.

isContent

public static boolean isContent(RenderBox element,
                                boolean ellipseAsBackground,
                                boolean shapesAsContent)

hasBorderEdge

public static boolean hasBorderEdge(StyleSheet style)

produceBorderEdge

public static BorderEdge produceBorderEdge(StyleSheet style)

computeLength

public static long computeLength(long min,
                                 long max,
                                 long pref)