dori.jasper.engine.fill
Class JRFillElement

java.lang.Object
  extended bydori.jasper.engine.fill.JRFillElement
All Implemented Interfaces:
JRElement
Direct Known Subclasses:
JRFillGraphicElement, JRFillSubreport, JRFillTextElement

public abstract class JRFillElement
extends java.lang.Object
implements JRElement


Field Summary
protected  JRFillBand band
           
protected  JRFillElementGroup elementGroup
           
protected  JRBaseFiller filler
           
protected  JRElement parent
           
protected  JRGroup printWhenGroupChanges
           
protected  JRTemplateElement template
           
 
Fields inherited from interface dori.jasper.engine.JRElement
MODE_OPAQUE, MODE_TRANSPARENT, POSITION_TYPE_FIX_RELATIVE_TO_BOTTOM, POSITION_TYPE_FIX_RELATIVE_TO_TOP, POSITION_TYPE_FLOAT, STRETCH_TYPE_NO_STRETCH, STRETCH_TYPE_RELATIVE_TO_BAND_HEIGHT, STRETCH_TYPE_RELATIVE_TO_TALLEST_OBJECT
 
Constructor Summary
protected JRFillElement(JRBaseFiller filler, JRElement element, JRFillObjectFactory factory)
          private JRElement topElementInGroup = null; private JRElement bottomElementInGroup = null; /**
 
Method Summary
protected  void addDependantElement(JRElement element)
           
protected abstract  void evaluate(byte evaluation)
           
protected  void evaluatePrintWhenExpression(byte evaluation)
           
protected abstract  JRPrintElement fill()
           
 java.awt.Color getBackcolor()
           
protected  JRFillBand getBand()
           
protected  int getBandBottomY()
           
protected  java.util.Collection getDependantElements()
          protected void setGroupElements(Collection groupElements) { this.groupElements = groupElements; } /** protected void addGroupElement(JRFElement element) { this.groupElements.add(element); } /**
 JRElementGroup getElementGroup()
           
 java.awt.Color getForecolor()
           
protected  JRElement[] getGroupElements()
           
 int getHeight()
           
 java.lang.String getKey()
           
 byte getMode()
           
 byte getPositionType()
           
 JRExpression getPrintWhenExpression()
           
 JRGroup getPrintWhenGroupChanges()
           
protected  int getRelativeY()
           
protected  int getStretchHeight()
           
 byte getStretchType()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
protected  boolean isAlreadyPrinted()
           
 boolean isPrintInFirstWholeBand()
           
 boolean isPrintRepeatedValues()
           
 boolean isPrintWhenDetailOverflows()
           
protected  boolean isPrintWhenExpressionNull()
           
protected  boolean isPrintWhenTrue()
           
 boolean isRemoveLineWhenBlank()
           
protected  boolean isReprinted()
           
protected  boolean isToPrint()
           
protected  void moveDependantElements()
           
protected  boolean prepare(int availableStretchHeight, boolean isOverflow)
           
protected  void reset()
           
protected abstract  void rewind()
           
protected  void setAlreadyPrinted(boolean isAlreadyPrinted)
           
 void setBackcolor(java.awt.Color backcolor)
           
protected  void setBand(JRFillBand band)
           
protected  void setBandBottomY(int bandBottomY)
           
 void setForecolor(java.awt.Color forecolor)
           
 void setMode(byte mode)
           
 void setPositionType(byte positionType)
           
 void setPrintInFirstWholeBand(boolean isPrint)
           
 void setPrintRepeatedValues(boolean isPrintRepeatedValues)
           
 void setPrintWhenDetailOverflows(boolean isPrint)
           
protected  void setPrintWhenExpressionNull(boolean isPrintWhenExpressionNull)
           
protected  void setPrintWhenTrue(boolean isPrintWhenTrue)
           
protected  void setRelativeY(int relativeY)
           
 void setRemoveLineWhenBlank(boolean isRemoveLine)
           
protected  void setReprinted(boolean isReprinted)
           
protected  void setStretchHeight(int stretchHeight)
           
 void setStretchType(byte stretchType)
           
protected  void setToPrint(boolean isToPrint)
           
 void setWidth(int width)
           
 void setX(int x)
           
protected  void stretchElement(int bandStretch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected JRElement parent

template

protected JRTemplateElement template

filler

protected JRBaseFiller filler

printWhenGroupChanges

protected JRGroup printWhenGroupChanges

elementGroup

protected JRFillElementGroup elementGroup

band

protected JRFillBand band
Constructor Detail

JRFillElement

protected JRFillElement(JRBaseFiller filler,
                        JRElement element,
                        JRFillObjectFactory factory)
private JRElement topElementInGroup = null; private JRElement bottomElementInGroup = null; /**

Method Detail

getKey

public java.lang.String getKey()
Specified by:
getKey in interface JRElement

getPositionType

public byte getPositionType()
Specified by:
getPositionType in interface JRElement

setPositionType

public void setPositionType(byte positionType)
Specified by:
setPositionType in interface JRElement

getStretchType

public byte getStretchType()
Specified by:
getStretchType in interface JRElement

setStretchType

public void setStretchType(byte stretchType)
Specified by:
setStretchType in interface JRElement

isPrintRepeatedValues

public boolean isPrintRepeatedValues()
Specified by:
isPrintRepeatedValues in interface JRElement

setPrintRepeatedValues

public void setPrintRepeatedValues(boolean isPrintRepeatedValues)
Specified by:
setPrintRepeatedValues in interface JRElement

getMode

public byte getMode()
Specified by:
getMode in interface JRElement

setMode

public void setMode(byte mode)
Specified by:
setMode in interface JRElement

getX

public int getX()
Specified by:
getX in interface JRElement

setX

public void setX(int x)
Specified by:
setX in interface JRElement

getY

public int getY()
Specified by:
getY in interface JRElement

getWidth

public int getWidth()
Specified by:
getWidth in interface JRElement

setWidth

public void setWidth(int width)
Specified by:
setWidth in interface JRElement

getHeight

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

isRemoveLineWhenBlank

public boolean isRemoveLineWhenBlank()
Specified by:
isRemoveLineWhenBlank in interface JRElement

setRemoveLineWhenBlank

public void setRemoveLineWhenBlank(boolean isRemoveLine)
Specified by:
setRemoveLineWhenBlank in interface JRElement

isPrintInFirstWholeBand

public boolean isPrintInFirstWholeBand()
Specified by:
isPrintInFirstWholeBand in interface JRElement

setPrintInFirstWholeBand

public void setPrintInFirstWholeBand(boolean isPrint)
Specified by:
setPrintInFirstWholeBand in interface JRElement

isPrintWhenDetailOverflows

public boolean isPrintWhenDetailOverflows()
Specified by:
isPrintWhenDetailOverflows in interface JRElement

setPrintWhenDetailOverflows

public void setPrintWhenDetailOverflows(boolean isPrint)
Specified by:
setPrintWhenDetailOverflows in interface JRElement

getForecolor

public java.awt.Color getForecolor()
Specified by:
getForecolor in interface JRElement

setForecolor

public void setForecolor(java.awt.Color forecolor)
Specified by:
setForecolor in interface JRElement

getBackcolor

public java.awt.Color getBackcolor()
Specified by:
getBackcolor in interface JRElement

setBackcolor

public void setBackcolor(java.awt.Color backcolor)
Specified by:
setBackcolor in interface JRElement

getPrintWhenExpression

public JRExpression getPrintWhenExpression()
Specified by:
getPrintWhenExpression in interface JRElement

getPrintWhenGroupChanges

public JRGroup getPrintWhenGroupChanges()
Specified by:
getPrintWhenGroupChanges in interface JRElement

getElementGroup

public JRElementGroup getElementGroup()
Specified by:
getElementGroup in interface JRElement

isPrintWhenExpressionNull

protected boolean isPrintWhenExpressionNull()

setPrintWhenExpressionNull

protected void setPrintWhenExpressionNull(boolean isPrintWhenExpressionNull)

isPrintWhenTrue

protected boolean isPrintWhenTrue()

setPrintWhenTrue

protected void setPrintWhenTrue(boolean isPrintWhenTrue)

isToPrint

protected boolean isToPrint()

setToPrint

protected void setToPrint(boolean isToPrint)

isReprinted

protected boolean isReprinted()

setReprinted

protected void setReprinted(boolean isReprinted)

isAlreadyPrinted

protected boolean isAlreadyPrinted()

setAlreadyPrinted

protected void setAlreadyPrinted(boolean isAlreadyPrinted)

getGroupElements

protected JRElement[] getGroupElements()

getDependantElements

protected java.util.Collection getDependantElements()
protected void setGroupElements(Collection groupElements) { this.groupElements = groupElements; } /** protected void addGroupElement(JRFElement element) { this.groupElements.add(element); } /**


addDependantElement

protected void addDependantElement(JRElement element)

getRelativeY

protected int getRelativeY()

setRelativeY

protected void setRelativeY(int relativeY)

getStretchHeight

protected int getStretchHeight()

setStretchHeight

protected void setStretchHeight(int stretchHeight)

getBandBottomY

protected int getBandBottomY()

setBandBottomY

protected void setBandBottomY(int bandBottomY)

getBand

protected JRFillBand getBand()

setBand

protected void setBand(JRFillBand band)

reset

protected void reset()

evaluate

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

evaluatePrintWhenExpression

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

rewind

protected abstract void rewind()
                        throws JRException
Throws:
JRException

fill

protected abstract JRPrintElement fill()
                                throws JRException
Throws:
JRException

prepare

protected boolean prepare(int availableStretchHeight,
                          boolean isOverflow)
                   throws JRException
Throws:
JRException

stretchElement

protected void stretchElement(int bandStretch)
                       throws JRException
Throws:
JRException

moveDependantElements

protected void moveDependantElements()
                              throws JRException
Throws:
JRException


Copyright © 2001-2004 Teodor Danciu. All Rights Reserved.