org.jfree.layouting.renderer.process
Class ComputeStaticPropertiesStep

java.lang.Object
  extended by org.jfree.layouting.renderer.process.IterateVisualProcessStep
      extended by org.jfree.layouting.renderer.process.ComputeStaticPropertiesStep

public class ComputeStaticPropertiesStep
extends IterateVisualProcessStep

This step computes the defined margins, the border and paddings. Before margins and borders can be computed, this derives the block-context-width.

The block-context-width is a precomputed value and defaults to the total page width (or when there is no such width, a predefined value). The block-context-width is independent of the final size of the element.

Table-Cells establish their own context, if the width is known. (This adds the dependency, that the table structure must be validated before the static properties can be computed.) If the width is not known, the block-context-width will be undefined (zero) unless a new known context gets established.

Author:
Thomas Morgner

Constructor Summary
ComputeStaticPropertiesStep()
           
 
Method Summary
 void compute(LogicalPageBox root)
           
protected  RenderLength computeBlockContextWidth(RenderNode node)
           
protected  void processBlockLevelNode(RenderNode node)
           
protected  void processInlineLevelNode(RenderNode node)
           
protected  void processParagraphChilds(ParagraphRenderBox box)
           
protected  boolean startBlockLevelBox(RenderBox box)
           
protected  boolean startInlineLevelBox(RenderBox box)
           
 
Methods inherited from class org.jfree.layouting.renderer.process.IterateVisualProcessStep
finishBlockLevelBox, finishInlineLevelBox, processBlockLevelChild, processBoxChilds, processFlow, processInlineLevelChild, processOtherLevelChild, startProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputeStaticPropertiesStep

public ComputeStaticPropertiesStep()
Method Detail

compute

public void compute(LogicalPageBox root)

processParagraphChilds

protected void processParagraphChilds(ParagraphRenderBox box)
Specified by:
processParagraphChilds in class IterateVisualProcessStep

startBlockLevelBox

protected boolean startBlockLevelBox(RenderBox box)
Overrides:
startBlockLevelBox in class IterateVisualProcessStep

processBlockLevelNode

protected void processBlockLevelNode(RenderNode node)
Overrides:
processBlockLevelNode in class IterateVisualProcessStep

startInlineLevelBox

protected boolean startInlineLevelBox(RenderBox box)
Overrides:
startInlineLevelBox in class IterateVisualProcessStep

processInlineLevelNode

protected void processInlineLevelNode(RenderNode node)
Overrides:
processInlineLevelNode in class IterateVisualProcessStep

computeBlockContextWidth

protected RenderLength computeBlockContextWidth(RenderNode node)