net.sf.jasperreports.engine.fill
Class JRFillElementContainer

java.lang.Object
  extended bynet.sf.jasperreports.engine.fill.JRFillElementGroup
      extended bynet.sf.jasperreports.engine.fill.JRFillElementContainer
All Implemented Interfaces:
JRChild, JRCloneable, JRElementGroup
Direct Known Subclasses:
JRFillBand, JRFillCellContents, JRFillFrame.JRFillFrameElements

public abstract class JRFillElementContainer
extends JRFillElementGroup

Abstract implementation of an element container filler.

This is the base for band, frame and crosstab cell fillers.

Version:
$Id: JRFillElementContainer.java,v 1.7 2005/11/28 09:20:42 teodord Exp $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)

Field Summary
protected  JRBaseFiller filler
           
protected  boolean isOverflow
           
 
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElementGroup
children, elementGroup, elements
 
Constructor Summary
protected JRFillElementContainer(JRBaseFiller filler, JRElementGroup container, JRFillObjectFactory factory)
           
protected JRFillElementContainer(JRFillElementContainer container, JRFillCloneFactory factory)
           
 
Method Summary
protected  void addSubElements(JRPrintElementContainer printContainer, JRFillElement element, java.util.Collection printElements)
           
protected  void evaluate(byte evaluation)
           
protected  void fillElements(JRPrintElementContainer printContainer)
           
protected abstract  int getContainerHeight()
          Returns the height of the element container.
protected  int getFirstY()
           
protected  int getStretchHeight()
           
protected  void initElements()
           
protected  void initFill()
           
protected  void moveBandBottomElements()
           
protected  void prepareElements(int availableStretchHeight, boolean isOverflowAllowed)
           
protected  void removeBlankElements()
           
protected  void resetElements()
           
protected  void rewind()
           
protected  void setElementsBandBottomY()
           
protected  void setStretchHeight(int stretchHeight)
           
protected  void stretchElements()
           
protected  boolean willOverflow()
           
 
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElementGroup
createClone, getChildren, getCopy, getElementByKey, getElementGroup, getElements, getStretchHeightDiff, reset, writeXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filler

protected JRBaseFiller filler

isOverflow

protected boolean isOverflow
Constructor Detail

JRFillElementContainer

protected JRFillElementContainer(JRBaseFiller filler,
                                 JRElementGroup container,
                                 JRFillObjectFactory factory)

JRFillElementContainer

protected JRFillElementContainer(JRFillElementContainer container,
                                 JRFillCloneFactory factory)
Method Detail

initElements

protected final void initElements()

setElementsBandBottomY

protected final void setElementsBandBottomY()

evaluate

protected void evaluate(byte evaluation)
                 throws JRException
Throws:
JRException

resetElements

protected void resetElements()

willOverflow

protected boolean willOverflow()

initFill

protected void initFill()

prepareElements

protected void prepareElements(int availableStretchHeight,
                               boolean isOverflowAllowed)
                        throws JRException
Throws:
JRException

setStretchHeight

protected void setStretchHeight(int stretchHeight)

stretchElements

protected void stretchElements()

getStretchHeight

protected int getStretchHeight()

moveBandBottomElements

protected void moveBandBottomElements()

removeBlankElements

protected void removeBlankElements()

fillElements

protected void fillElements(JRPrintElementContainer printContainer)
                     throws JRException
Throws:
JRException

addSubElements

protected void addSubElements(JRPrintElementContainer printContainer,
                              JRFillElement element,
                              java.util.Collection printElements)

rewind

protected void rewind()
               throws JRException
Throws:
JRException

getFirstY

protected int getFirstY()

getContainerHeight

protected abstract int getContainerHeight()
Returns the height of the element container.

Returns:
the height of the element container


© 2001-2005 JasperSoft Corporation www.jaspersoft.com