|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.fill.JRFillElement
public abstract class JRFillElement
| Field Summary | |
|---|---|
protected JRFillBand |
band
|
protected JRFillElementGroup |
elementGroup
|
protected JRBaseFiller |
filler
|
protected JRElement |
parent
|
protected JRGroup |
printWhenGroupChanges
|
protected JRTemplateElement |
template
|
| Fields inherited from interface net.sf.jasperreports.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()
Indicates the logical group that the element belongs to. |
java.awt.Color |
getForecolor()
|
protected JRElement[] |
getGroupElements()
|
int |
getHeight()
|
java.lang.String |
getKey()
Returns the string value that uniquely identifies the element. |
byte |
getMode()
Returns the element transparency mode. |
byte |
getPositionType()
Returns the position type for the element |
JRExpression |
getPrintWhenExpression()
Gets the the expression that is evaluated in order to decide if the element should be displayed. |
JRGroup |
getPrintWhenGroupChanges()
Returns the group for which an element with a printRepeatedValues attribute set to true will be redisplayed even if the value has not changed. |
protected int |
getRelativeY()
|
protected int |
getStretchHeight()
|
byte |
getStretchType()
Returns the stretch type for the element |
int |
getWidth()
|
int |
getX()
Gets the the section relative horizontal offset of the element top left corner. |
int |
getY()
Gets the the section relative vertical offset of the element top left corner. |
protected boolean |
isAlreadyPrinted()
|
boolean |
isPrintInFirstWholeBand()
Returns true if an element with a printRepeatedValues attribute set to true will be redisplayed for every new page or column that is not an overflow from a previous page or column. |
boolean |
isPrintRepeatedValues()
Specifies if the element value will be printed for every iteration, even if its value has not changed. |
boolean |
isPrintWhenDetailOverflows()
If this is set to true, the element will be reprinted on the next page if the band does not fit in the current page. |
protected boolean |
isPrintWhenExpressionNull()
|
protected boolean |
isPrintWhenTrue()
|
boolean |
isRemoveLineWhenBlank()
Returns true if the remaining blank space appearing when the value is not printed will be removed. |
protected boolean |
isReprinted()
|
protected boolean |
isToPrint()
|
protected void |
moveDependantElements()
|
protected boolean |
prepare(int availableStretchHeight,
boolean isOverflow)
|
protected void |
reset()
|
protected abstract void |
resolveElement(JRPrintElement element,
byte evaluation)
Resolves an element. |
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)
Returns the element transparency mode. |
void |
setPositionType(byte positionType)
Sets the position type for the element. |
void |
setPrintInFirstWholeBand(boolean isPrint)
Specifies whether an element with a printRepeatedValues attribute set to true should be redisplayed for every new page or column that is not an overflow from a previous page or column. |
void |
setPrintRepeatedValues(boolean isPrintRepeatedValues)
|
void |
setPrintWhenDetailOverflows(boolean isPrint)
If this is set to true, the element will be reprinted on the next page if the band does not fit in the current page. |
protected void |
setPrintWhenExpressionNull(boolean isPrintWhenExpressionNull)
|
protected void |
setPrintWhenTrue(boolean isPrintWhenTrue)
|
protected void |
setRelativeY(int relativeY)
|
void |
setRemoveLineWhenBlank(boolean isRemoveLine)
Specifies whether the remaining blank space appearing when the value is not printed will be removed. |
protected void |
setReprinted(boolean isReprinted)
|
protected void |
setStretchHeight(int stretchHeight)
|
void |
setStretchType(byte stretchType)
Sets the stretch type for the element. |
protected void |
setToPrint(boolean isToPrint)
|
void |
setWidth(int width)
|
void |
setX(int x)
Sets the the section relative horizontal offset of the element top left corner. |
protected void |
stretchElement(int bandStretch)
|
| 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.JRElement |
|---|
collectExpressions |
| Methods inherited from interface net.sf.jasperreports.engine.JRChild |
|---|
getCopy, writeXml |
| Field Detail |
|---|
protected JRElement parent
protected JRTemplateElement template
protected JRBaseFiller filler
protected JRGroup printWhenGroupChanges
protected JRFillElementGroup elementGroup
protected JRFillBand band
| Constructor Detail |
|---|
protected JRFillElement(JRBaseFiller filler,
JRElement element,
JRFillObjectFactory factory)
| Method Detail |
|---|
public java.lang.String getKey()
JRElement
getKey in interface JRElementpublic byte getPositionType()
JRElement
getPositionType in interface JRElementpublic void setPositionType(byte positionType)
JRElement
setPositionType in interface JRElementpositionType - a byte value that must be one of the position type constants in this classpublic byte getStretchType()
JRElement
getStretchType in interface JRElementpublic void setStretchType(byte stretchType)
JRElement
setStretchType in interface JRElementstretchType - a byte value that must be one of the stretch type constants in this classpublic boolean isPrintRepeatedValues()
JRElement
isPrintRepeatedValues in interface JRElementJRElement.isRemoveLineWhenBlank(),
JRElement.isPrintInFirstWholeBand()public void setPrintRepeatedValues(boolean isPrintRepeatedValues)
setPrintRepeatedValues in interface JRElementpublic byte getMode()
JRElement
getMode in interface JRElementpublic void setMode(byte mode)
JRElement
setMode in interface JRElementpublic int getX()
JRElement
getX in interface JRElementpublic void setX(int x)
JRElement
setX in interface JRElementpublic int getY()
JRElement
getY in interface JRElementpublic int getWidth()
getWidth in interface JRElementpublic void setWidth(int width)
setWidth in interface JRElementpublic int getHeight()
getHeight in interface JRElementpublic boolean isRemoveLineWhenBlank()
JRElement
isRemoveLineWhenBlank in interface JRElementpublic void setRemoveLineWhenBlank(boolean isRemoveLine)
JRElement
setRemoveLineWhenBlank in interface JRElementpublic boolean isPrintInFirstWholeBand()
JRElement
isPrintInFirstWholeBand in interface JRElementJRElement.isPrintRepeatedValues()public void setPrintInFirstWholeBand(boolean isPrint)
JRElement
setPrintInFirstWholeBand in interface JRElementJRElement.isPrintRepeatedValues()public boolean isPrintWhenDetailOverflows()
JRElement
isPrintWhenDetailOverflows in interface JRElementpublic void setPrintWhenDetailOverflows(boolean isPrint)
JRElement
setPrintWhenDetailOverflows in interface JRElementpublic java.awt.Color getForecolor()
getForecolor in interface JRElementpublic void setForecolor(java.awt.Color forecolor)
setForecolor in interface JRElementpublic java.awt.Color getBackcolor()
getBackcolor in interface JRElementpublic void setBackcolor(java.awt.Color backcolor)
setBackcolor in interface JRElementpublic JRExpression getPrintWhenExpression()
JRElement
getPrintWhenExpression in interface JRElementpublic JRGroup getPrintWhenGroupChanges()
JRElement
getPrintWhenGroupChanges in interface JRElementJRElement.isPrintRepeatedValues()public JRElementGroup getElementGroup()
JRElement
getElementGroup in interface JRElementJRElement.STRETCH_TYPE_RELATIVE_TO_TALLEST_OBJECTprotected boolean isPrintWhenExpressionNull()
protected void setPrintWhenExpressionNull(boolean isPrintWhenExpressionNull)
protected boolean isPrintWhenTrue()
protected void setPrintWhenTrue(boolean isPrintWhenTrue)
protected boolean isToPrint()
protected void setToPrint(boolean isToPrint)
protected boolean isReprinted()
protected void setReprinted(boolean isReprinted)
protected boolean isAlreadyPrinted()
protected void setAlreadyPrinted(boolean isAlreadyPrinted)
protected JRElement[] getGroupElements()
protected java.util.Collection getDependantElements()
protected void addDependantElement(JRElement element)
protected int getRelativeY()
protected void setRelativeY(int relativeY)
protected int getStretchHeight()
protected void setStretchHeight(int stretchHeight)
protected int getBandBottomY()
protected void setBandBottomY(int bandBottomY)
protected JRFillBand getBand()
protected void setBand(JRFillBand band)
protected void reset()
protected abstract void evaluate(byte evaluation)
throws JRException
JRException
protected void evaluatePrintWhenExpression(byte evaluation)
throws JRException
JRException
protected abstract void rewind()
throws JRException
JRException
protected abstract JRPrintElement fill()
throws JRException
JRException
protected boolean prepare(int availableStretchHeight,
boolean isOverflow)
protected void stretchElement(int bandStretch)
protected void moveDependantElements()
protected abstract void resolveElement(JRPrintElement element,
byte evaluation)
throws JRException
element - the elementevaluation - the evaluation type
JRException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||