net.sf.jasperreports.engine.fill
Class JRFillCellContents
java.lang.Object
net.sf.jasperreports.engine.fill.JRFillElementGroup
net.sf.jasperreports.engine.fill.JRFillElementContainer
net.sf.jasperreports.engine.fill.JRFillCellContents
- All Implemented Interfaces:
- JRCellContents, JRChild, JRCloneable, JRElementGroup
- public class JRFillCellContents
- extends JRFillElementContainer
- implements JRCellContents, JRCloneable
Crosstab cell contents filler.
- Version:
- $Id: JRFillCellContents.java,v 1.7 2005/11/28 09:20:42 teodord Exp $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
Methods inherited from class net.sf.jasperreports.engine.fill.JRFillElementContainer |
addSubElements, evaluate, fillElements, getFirstY, getStretchHeight, initElements, initFill, moveBandBottomElements, prepareElements, removeBlankElements, resetElements, rewind, setElementsBandBottomY, setStretchHeight, stretchElements, willOverflow |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JRFillCellContents
public JRFillCellContents(JRBaseFiller filler,
JRCellContents cell,
JRFillObjectFactory factory)
JRFillCellContents
protected JRFillCellContents(JRFillCellContents cellContents,
JRFillCloneFactory factory)
createTemplate
protected void createTemplate()
getBackcolor
public java.awt.Color getBackcolor()
- Description copied from interface:
JRCellContents
- Returns the cell background color.
The cell is filled with the background color only if the crosstab has opaque mode.
The default cell background color is the crosstab element background color.
- Specified by:
getBackcolor
in interface JRCellContents
- Returns:
- the cell backcolor
getBox
public JRBox getBox()
- Description copied from interface:
JRCellContents
- Returns the cell border.
- Specified by:
getBox
in interface JRCellContents
- Returns:
- the cell border
setBox
protected void setBox(JRBox box)
getHeight
public int getHeight()
- Description copied from interface:
JRCellContents
- Returns the computed cell height.
- Specified by:
getHeight
in interface JRCellContents
- Returns:
- the computed cell height
- See Also:
JRCellContents.NOT_CALCULATED
getWidth
public int getWidth()
- Description copied from interface:
JRCellContents
- Returns the computed cell width.
- Specified by:
getWidth
in interface JRCellContents
- Returns:
- the computed cell width
- See Also:
JRCellContents.NOT_CALCULATED
setHeight
protected void setHeight(int height)
setWidth
protected void setWidth(int width)
getBoxContents
public JRFillCellContents getBoxContents(boolean left,
boolean top)
getTransformedContents
public JRFillCellContents getTransformedContents(int newWidth,
int newHeight,
byte xPosition,
byte yPosition)
throws JRException
- Throws:
JRException
prepare
protected void prepare(int availableStretchHeight)
throws JRException
- Throws:
JRException
fill
protected JRPrintFrame fill()
throws JRException
- Throws:
JRException
verticallyPositionElements
protected void verticallyPositionElements(JRTemplatePrintFrame printCell)
getPrintHeight
protected int getPrintHeight()
stretchTo
protected void stretchTo(int stretchHeight)
getContainerHeight
protected int getContainerHeight()
- Description copied from class:
JRFillElementContainer
- Returns the height of the element container.
- Specified by:
getContainerHeight
in class JRFillElementContainer
- Returns:
- the height of the element container
getTopPadding
protected int getTopPadding()
getBottomPadding
protected int getBottomPadding()
createClone
public JRCloneable createClone()
createClone
public JRCloneable createClone(JRFillCloneFactory factory)
- Description copied from interface:
JRCloneable
- Creates a working clone of itself.
- Specified by:
createClone
in interface JRCloneable
- Overrides:
createClone
in class JRFillElementGroup
getWorkingClone
public JRFillCellContents getWorkingClone()
releaseWorkingClone
public void releaseWorkingClone()
setX
public void setX(int x)
setY
public void setY(int y)
getVerticalSpan
public int getVerticalSpan()
setVerticalSpan
public void setVerticalSpan(int span)
setVerticalPositionType
public void setVerticalPositionType(byte positionType)
© 2001-2005 JasperSoft Corporation www.jaspersoft.com