|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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, 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()
|
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()
|
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()
JRCellContents
The cell is filled with the background color only if the cell has opaque mode.
getBackcolor
in interface JRCellContents
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
protected void setBox(JRLineBox box)
public int getHeight()
JRCellContents
getHeight
in interface JRCellContents
JRCellContents.NOT_CALCULATED
public int getWidth()
JRCellContents
getWidth
in interface JRCellContents
JRCellContents.NOT_CALCULATED
protected 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
JRException
protected 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 JRFillElementContainer
protected int getTopPadding()
protected int getBottomPadding()
public JRFillCloneable createClone()
public JRFillCloneable createClone(JRFillCloneFactory factory)
JRFillCloneable
createClone
in interface JRFillCloneable
createClone
in class JRFillElementGroup
factory
- 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 JRFillElementContainer
JRException
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider
in interface JRStyleContainer
public JRStyle getStyle()
JRStyleContainer
getStyle
in interface JRStyleContainer
protected void initConditionalStyles()
JRFillElementContainer
initConditionalStyles
in class JRFillElementContainer
public ModeEnum getModeValue()
JRCellContents
getModeValue
in interface JRCellContents
ModeEnum.OPAQUE
or ModeEnum.TRANSPARENT
public java.lang.String getStyleNameReference()
JRStyleContainer
templates
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 JRStyleContainer
public void setStyle(JRStyle style)
JRStyleSetter
setStyle
in interface JRStyleSetter
style
- the style to be used by the objectpublic void setStyleNameReference(java.lang.String name)
JRStyleSetter
setStyleNameReference
in interface JRStyleSetter
name
- 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 |