|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.fill.JRFillElementGroup
net.sf.jasperreports.engine.fill.JRFillElementContainer
net.sf.jasperreports.engine.fill.JRFillCellContents
public class JRFillCellContents
Crosstab cell contents filler.
| Nested Class Summary | |
|---|---|
protected static class |
JRFillCellContents.BoxContents
|
protected static class |
JRFillCellContents.StretchedContents
|
| Field Summary |
|---|
| Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElementContainer |
|---|
deepElements, evaluatedStyles, expressionEvaluator, filler, firstYElement, hasPrintWhenOverflowElement, isOverflow, stylesToEvaluate |
| Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElementGroup |
|---|
children, elementGroup, elements |
| Fields inherited from interface net.sf.jasperreports.crosstabs.JRCellContents |
|---|
NOT_CALCULATED, POSITION_X_CENTER, POSITION_X_LEFT, POSITION_X_RIGHT, POSITION_X_STRETCH, POSITION_Y_BOTTOM, POSITION_Y_MIDDLE, POSITION_Y_STRETCH, POSITION_Y_TOP, PROPERTIES_PREFIX, PROPERTY_COLUMN_SPAN, PROPERTY_ROW_SPAN, PROPERTY_TYPE, TYPE_COLUMN_HEADER, TYPE_CROSSTAB_HEADER, TYPE_DATA, TYPE_NO_DATA_CELL, TYPE_ROW_HEADER |
| Constructor Summary | |
|---|---|
|
JRFillCellContents(JRBaseFiller filler,
JRCellContents cell,
java.lang.String cellType,
JRFillCrosstabObjectFactory factory)
|
protected |
JRFillCellContents(JRFillCellContents cellContents,
JRFillCloneFactory factory)
|
| Method Summary | |
|---|---|
JRFillCloneable |
createClone()
|
JRFillCloneable |
createClone(JRFillCloneFactory factory)
Creates a working clone of itself. |
protected void |
evaluate(byte evaluation)
|
protected JRPrintFrame |
fill()
|
java.awt.Color |
getBackcolor()
Returns the cell background color. |
protected int |
getBottomPadding()
|
JRBox |
getBox()
Deprecated. Replaced by getLineBox() |
JRFillCellContents |
getBoxContents(boolean left,
boolean right,
boolean top)
|
protected int |
getContainerHeight()
Returns the height of the element container. |
java.awt.Color |
getDefaultLineColor()
|
JRDefaultStyleProvider |
getDefaultStyleProvider()
|
int |
getHeight()
Returns the computed cell height. |
int |
getHorizontalSpan()
|
JRLineBox |
getLineBox()
|
java.lang.Byte |
getMode()
Deprecated. Replaced by getModeValue(). |
ModeEnum |
getModeValue()
Returns the cell transparency mode. |
protected JROrigin |
getOrigin()
|
protected int |
getPrintHeight()
|
JRStyle |
getStyle()
Returns this object's style. |
java.lang.String |
getStyleNameReference()
Returns the name of an external style which is to be used by this object. |
protected JRTemplateFrame |
getTemplateFrame()
|
protected int |
getTopPadding()
|
JRFillCellContents |
getTransformedContents(int newWidth,
int newHeight,
CrosstabColumnPositionEnum xPosition,
CrosstabRowPositionEnum yPosition)
|
int |
getVerticalSpan()
|
int |
getWidth()
Returns the computed cell width. |
JRFillCellContents |
getWorkingClone()
|
protected void |
initConditionalStyles()
Find all styles containing conditional styles which are referenced by elements in this band. |
protected void |
prepare(int availableHeight)
|
void |
releaseWorkingClone()
|
protected void |
setBox(JRLineBox box)
|
protected void |
setCellProperties(JRTemplatePrintFrame printCell)
|
protected void |
setHeight(int height)
|
void |
setHorizontalSpan(int horizontalSpan)
|
void |
setStyle(JRStyle style)
Set the style on the object. |
void |
setStyleNameReference(java.lang.String name)
Set the name of an external style that is to be used by the object. |
void |
setVerticalPositionType(CrosstabRowPositionEnum positionType)
|
void |
setVerticalSpan(int span)
|
protected void |
setWidth(int width)
|
void |
setX(int x)
|
void |
setY(int y)
|
protected void |
stretchTo(int stretchHeight)
|
protected void |
verticallyPositionElements(JRTemplatePrintFrame printCell)
|
| Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElementContainer |
|---|
addSubElements, buildConsolidatedStyle, collectConditionalStyle, evaluateConditionalStyle, evaluateConditionalStyles, fillElements, getEvaluatedConditionalStyle, getFirstY, getStretchHeight, initElements, initFill, moveBandBottomElements, prepareElements, removeBlankElements, resetElements, rewind, setElementOriginProvider, setStretchHeight, stretchElements, willOverflow |
| Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElementGroup |
|---|
clone, clone, getChildren, getElementByKey, getElementGroup, getElements, getStretchHeightDiff, reset, visit |
| Methods inherited from class java.lang.Object |
|---|
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 |
|---|
clone |
| Methods inherited from interface net.sf.jasperreports.engine.JRVisitable |
|---|
visit |
| Methods inherited from interface net.sf.jasperreports.engine.JRCloneable |
|---|
clone |
| Constructor Detail |
|---|
public JRFillCellContents(JRBaseFiller filler,
JRCellContents cell,
java.lang.String cellType,
JRFillCrosstabObjectFactory factory)
protected JRFillCellContents(JRFillCellContents cellContents,
JRFillCloneFactory factory)
| Method Detail |
|---|
public java.awt.Color getBackcolor()
JRCellContentsThe cell is filled with the background color only if the cell has opaque mode.
getBackcolor in interface JRCellContentspublic JRBox getBox()
getLineBox()
JRCellContents
getBox in interface JRCellContentspublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerprotected void setBox(JRLineBox box)
public int getHeight()
JRCellContents
getHeight in interface JRCellContentsJRCellContents.NOT_CALCULATEDpublic int getWidth()
JRCellContents
getWidth in interface JRCellContentsJRCellContents.NOT_CALCULATEDprotected void setHeight(int height)
protected void setWidth(int width)
public JRFillCellContents getBoxContents(boolean left,
boolean right,
boolean top)
public JRFillCellContents getTransformedContents(int newWidth,
int newHeight,
CrosstabColumnPositionEnum xPosition,
CrosstabRowPositionEnum yPosition)
throws JRException
JRException
protected void prepare(int availableHeight)
throws JRException
JRException
protected JRPrintFrame fill()
throws JRException
JRExceptionprotected void setCellProperties(JRTemplatePrintFrame printCell)
protected JRTemplateFrame getTemplateFrame()
protected JROrigin getOrigin()
protected void verticallyPositionElements(JRTemplatePrintFrame printCell)
protected int getPrintHeight()
protected void stretchTo(int stretchHeight)
protected int getContainerHeight()
JRFillElementContainer
getContainerHeight in class JRFillElementContainerprotected int getTopPadding()
protected int getBottomPadding()
public JRFillCloneable createClone()
public JRFillCloneable createClone(JRFillCloneFactory factory)
JRFillCloneable
createClone in interface JRFillCloneablecreateClone in class JRFillElementGroupfactory - the clone factory to use while creating the clone
public JRFillCellContents getWorkingClone()
public void releaseWorkingClone()
public void setX(int x)
public void setY(int y)
public int getVerticalSpan()
public void setVerticalSpan(int span)
public void setVerticalPositionType(CrosstabRowPositionEnum positionType)
public int getHorizontalSpan()
public void setHorizontalSpan(int horizontalSpan)
protected void evaluate(byte evaluation)
throws JRException
evaluate in class JRFillElementContainerJRExceptionpublic JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerpublic JRStyle getStyle()
JRStyleContainer
getStyle in interface JRStyleContainerprotected void initConditionalStyles()
JRFillElementContainer
initConditionalStyles in class JRFillElementContainerpublic java.lang.Byte getMode()
getModeValue().
getMode in interface JRCellContentspublic ModeEnum getModeValue()
JRCellContents
getModeValue in interface JRCellContentsMODE_OPAQUE
or MODE_TRANSPARENTpublic java.lang.String getStyleNameReference()
JRStyleContainertemplates and are resolved
at fill time.
This attribute is only effective if no direct style (as returned by getStyle()
is specified for this object.
getStyleNameReference in interface JRStyleContainerpublic void setStyle(JRStyle style)
JRStyleSetter
setStyle in interface JRStyleSetterstyle - the style to be used by the objectpublic void setStyleNameReference(java.lang.String name)
JRStyleSetter
setStyleNameReference in interface JRStyleSettername - the name of an external stylepublic java.awt.Color getDefaultLineColor()
getDefaultLineColor in interface JRBoxContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||