net.sf.jasperreports.engine.fill
Class JRFillBand

java.lang.Object
  extended bynet.sf.jasperreports.engine.fill.JRFillElementGroup
      extended bynet.sf.jasperreports.engine.fill.JRFillBand
All Implemented Interfaces:
JRBand, JRChild, JRElementGroup, JRVirtualPrintPage.IdentityDataProvider

public class JRFillBand
extends JRFillElementGroup
implements JRBand, JRVirtualPrintPage.IdentityDataProvider

Version:
$Id: JRFillBand.java,v 1.23 2005/07/20 16:11:53 lucianc Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Field Summary
protected  JRBaseFiller.BoundElementMap boundElements
          Map of elements to be resolved at band level.
protected  JRBaseFiller filler
           
protected  java.util.Map pageToBoundElements
          Per page map of elements to be resolved at band level.
 
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElementGroup
children, elementGroup, elements
 
Constructor Summary
protected JRFillBand(JRBaseFiller filler, JRBand band, JRFillObjectFactory factory)
           
 
Method Summary
protected  void evaluate(byte evaluation)
           
protected  void evaluatePrintWhenExpression(byte evaluation)
           
protected  JRPrintBand fill()
           
protected  JRPrintBand fill(int availableStretchHeight)
           
protected  JRPrintBand fill(int availableStretchHeight, boolean isOverflowAllowed)
           
 int getHeight()
           
 JRVirtualPrintPage.ObjectIDPair[] getIdentityData(JRVirtualPrintPage page)
          Get identity data that the provider later want to handle when the virtual object is paged in.
 JRExpression getPrintWhenExpression()
          Returns the boolean expression that specifies if the band will be displayed.
protected  void initBoundElementMap(boolean perPageElements)
           
protected  boolean isNewGroup(JRGroup group)
           
protected  boolean isNewPageColumn()
           
protected  boolean isPrintWhenExpressionNull()
           
protected  boolean isPrintWhenTrue()
           
 boolean isSplitAllowed()
          Specifies if the band can be splitted between two pages.
protected  boolean isToPrint()
           
protected  JRPrintBand refill(int availableStretchHeight)
           
protected  void rewind()
           
 void setIdentityData(JRVirtualPrintPage page, JRVirtualPrintPage.ObjectIDPair[] identityData)
          Handle the identity data as necessary.
protected  void setNewGroup(JRGroup group, boolean isNew)
           
protected  void setNewPageColumn(boolean isNew)
           
protected  void setPrintWhenTrue(boolean isPrintWhenTrue)
           
 void setSplitAllowed(boolean isSplitAllowed)
           
protected  boolean willOverflow()
           
 
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElementGroup
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
 
Methods inherited from interface net.sf.jasperreports.engine.JRElementGroup
getChildren, getElementByKey, getElementGroup, getElements
 
Methods inherited from interface net.sf.jasperreports.engine.JRChild
getCopy, writeXml
 

Field Detail

filler

protected JRBaseFiller filler

boundElements

protected JRBaseFiller.BoundElementMap boundElements
Map of elements to be resolved at band level.


pageToBoundElements

protected java.util.Map pageToBoundElements
Per page map of elements to be resolved at band level.

Constructor Detail

JRFillBand

protected JRFillBand(JRBaseFiller filler,
                     JRBand band,
                     JRFillObjectFactory factory)
Method Detail

setNewPageColumn

protected void setNewPageColumn(boolean isNew)

isNewPageColumn

protected boolean isNewPageColumn()

setNewGroup

protected void setNewGroup(JRGroup group,
                           boolean isNew)

isNewGroup

protected boolean isNewGroup(JRGroup group)

getHeight

public int getHeight()
Specified by:
getHeight in interface JRBand

isSplitAllowed

public boolean isSplitAllowed()
Description copied from interface: JRBand
Specifies if the band can be splitted between two pages.

Specified by:
isSplitAllowed in interface JRBand

setSplitAllowed

public void setSplitAllowed(boolean isSplitAllowed)
Specified by:
setSplitAllowed in interface JRBand

getPrintWhenExpression

public JRExpression getPrintWhenExpression()
Description copied from interface: JRBand
Returns the boolean expression that specifies if the band will be displayed.

Specified by:
getPrintWhenExpression in interface JRBand

willOverflow

protected boolean willOverflow()

isPrintWhenExpressionNull

protected boolean isPrintWhenExpressionNull()

isPrintWhenTrue

protected boolean isPrintWhenTrue()

setPrintWhenTrue

protected void setPrintWhenTrue(boolean isPrintWhenTrue)

isToPrint

protected boolean isToPrint()

evaluate

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

evaluatePrintWhenExpression

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

refill

protected JRPrintBand refill(int availableStretchHeight)
                      throws JRException
Throws:
JRException

fill

protected JRPrintBand fill()
                    throws JRException
Throws:
JRException

fill

protected JRPrintBand fill(int availableStretchHeight)
                    throws JRException
Throws:
JRException

fill

protected JRPrintBand fill(int availableStretchHeight,
                           boolean isOverflowAllowed)
                    throws JRException
Throws:
JRException

rewind

protected void rewind()
               throws JRException
Throws:
JRException

initBoundElementMap

protected void initBoundElementMap(boolean perPageElements)

getIdentityData

public JRVirtualPrintPage.ObjectIDPair[] getIdentityData(JRVirtualPrintPage page)
Description copied from interface: JRVirtualPrintPage.IdentityDataProvider
Get identity data that the provider later want to handle when the virtual object is paged in.

Specified by:
getIdentityData in interface JRVirtualPrintPage.IdentityDataProvider

setIdentityData

public void setIdentityData(JRVirtualPrintPage page,
                            JRVirtualPrintPage.ObjectIDPair[] identityData)
Description copied from interface: JRVirtualPrintPage.IdentityDataProvider
Handle the identity data as necessary.

Specified by:
setIdentityData in interface JRVirtualPrintPage.IdentityDataProvider


© 2001-2005 JasperSoft Corporation www.jaspersoft.com