org.jfree.report.modules.output.pageable.base.operations
Class AligningMetaBandProducer

java.lang.Object
  |
  +--org.jfree.report.modules.output.meta.MetaBandProducer
        |
        +--org.jfree.report.modules.output.pageable.base.operations.AligningMetaBandProducer

public class AligningMetaBandProducer
extends MetaBandProducer


Inner classes inherited from class org.jfree.report.modules.output.meta.MetaBandProducer
MetaBandProducer.MetaElementStyleSheet
 
Constructor Summary
AligningMetaBandProducer(LayoutSupport support, org.jfree.util.Configuration configuration)
           
 
Method Summary
protected  Content alignContent(Content content, StrictBounds bounds, ElementAlignment hAlign, ElementAlignment vAlign)
          The content is already positioned on the page (but top/left aligned).
protected  Content alignHorizontalContent(Content content, StrictBounds bounds, ElementAlignment hAlign)
           
protected  Content createContent(Element e, ElementStyleSheet styleSheet)
           
 
Methods inherited from class org.jfree.report.modules.output.meta.MetaBandProducer
createBand, createBand, createElement, createElementBounds, createMetaBandInstace, createStyleForBand, createStyleForDrawableElement, createStyleForElement, createStyleForImageElement, createStyleForShapeElement, createStyleForTextElement, getLayoutSupport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AligningMetaBandProducer

public AligningMetaBandProducer(LayoutSupport support,
                                org.jfree.util.Configuration configuration)
Method Detail

createContent

protected Content createContent(Element e,
                                ElementStyleSheet styleSheet)
                         throws ContentCreationException
Overrides:
createContent in class MetaBandProducer

alignContent

protected Content alignContent(Content content,
                               StrictBounds bounds,
                               ElementAlignment hAlign,
                               ElementAlignment vAlign)
The content is already positioned on the page (but top/left aligned). Now, move the content to the location as defined by the ElementAlignment.

HackAttack: This method does not adjust the width and height of the element; we have to trust the code.

Parameters:
content -  
bounds -  
hAlign -  
vAlign -  
Returns:
 

alignHorizontalContent

protected Content alignHorizontalContent(Content content,
                                         StrictBounds bounds,
                                         ElementAlignment hAlign)