net.sf.jasperreports.crosstabs
Interface JRCellContents

All Superinterfaces:
java.lang.Cloneable, JRBoxContainer, JRChild, JRCloneable, JRElementGroup, JRStyleContainer, JRVisitable
All Known Implementing Classes:
JRBaseCellContents, JRDesignCellContents, JRFillCellContents

public interface JRCellContents
extends JRElementGroup, JRStyleContainer, JRBoxContainer

Crosstab cell contents interface.

This interface is used for both crosstab row/column headers and data cells.

There are some restrictions/rules regarding crosstab cells:

Version:
$Id: JRCellContents.java 2006 2007-12-05 14:28:33Z teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)

Field Summary
static int NOT_CALCULATED
          Width or height value indicating that the value has not been computed.
static byte POSITION_X_CENTER
          Horizontal stretch position indicating that the contents will be rendered on the center.
static byte POSITION_X_LEFT
          Horizontal stretch position indicating that the contents will be rendered on the left side.
static byte POSITION_X_RIGHT
          Horizontal stretch position indicating that the contents will be rendered on the right side.
static byte POSITION_X_STRETCH
          Horizontal stretch position indicating that the contents will be horizontally stretched.
static byte POSITION_Y_BOTTOM
          Vertical stretch position indicating that the contents will be rendered on the bottom.
static byte POSITION_Y_MIDDLE
          Vertical stretch position indicating that the contents will be rendered on the middle.
static byte POSITION_Y_STRETCH
          Vertical stretch position indicating that the contents will be rendered vertically stretched.
static byte POSITION_Y_TOP
          Vertical stretch position indicating that the contents will be rendered on the top.
 
Method Summary
 java.awt.Color getBackcolor()
          Returns the cell background color.
 JRBox getBox()
          Deprecated. Replaced by JRBoxContainer.getLineBox()
 int getHeight()
          Returns the computed cell height.
 java.lang.Byte getMode()
          Returns the cell transparency mode.
 int getWidth()
          Returns the computed cell width.
 
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
 
Methods inherited from interface net.sf.jasperreports.engine.JRBoxContainer
getDefaultLineColor, getLineBox
 

Field Detail

POSITION_X_LEFT

static final byte POSITION_X_LEFT
Horizontal stretch position indicating that the contents will be rendered on the left side.

See Also:
Constant Field Values

POSITION_X_CENTER

static final byte POSITION_X_CENTER
Horizontal stretch position indicating that the contents will be rendered on the center.

See Also:
Constant Field Values

POSITION_X_RIGHT

static final byte POSITION_X_RIGHT
Horizontal stretch position indicating that the contents will be rendered on the right side.

See Also:
Constant Field Values

POSITION_X_STRETCH

static final byte POSITION_X_STRETCH
Horizontal stretch position indicating that the contents will be horizontally stretched.

See Also:
Constant Field Values

POSITION_Y_TOP

static final byte POSITION_Y_TOP
Vertical stretch position indicating that the contents will be rendered on the top.

See Also:
Constant Field Values

POSITION_Y_MIDDLE

static final byte POSITION_Y_MIDDLE
Vertical stretch position indicating that the contents will be rendered on the middle.

See Also:
Constant Field Values

POSITION_Y_BOTTOM

static final byte POSITION_Y_BOTTOM
Vertical stretch position indicating that the contents will be rendered on the bottom.

See Also:
Constant Field Values

POSITION_Y_STRETCH

static final byte POSITION_Y_STRETCH
Vertical stretch position indicating that the contents will be rendered vertically stretched.

See Also:
Constant Field Values

NOT_CALCULATED

static final int NOT_CALCULATED
Width or height value indicating that the value has not been computed.

See Also:
Constant Field Values
Method Detail

getBackcolor

java.awt.Color getBackcolor()
Returns the cell background color.

The cell is filled with the background color only if the cell has opaque mode.

Returns:
the cell backcolor

getBox

JRBox getBox()
Deprecated. Replaced by JRBoxContainer.getLineBox()

Returns the cell border.

Returns:
the cell border

getWidth

int getWidth()
Returns the computed cell width.

Returns:
the computed cell width
See Also:
NOT_CALCULATED

getHeight

int getHeight()
Returns the computed cell height.

Returns:
the computed cell height
See Also:
NOT_CALCULATED

getMode

java.lang.Byte getMode()
Returns the cell transparency mode.

Returns:
MODE_OPAQUE or MODE_TRANSPARENT


© 2001-2006 JasperSoft Corporation www.jaspersoft.com