net.sf.jasperreports.crosstabs
Interface JRCellContents

All Superinterfaces:
JRChild, JRElementGroup
All Known Implementing Classes:
JRBaseCellContents, JRDesignCellContents, JRFillCellContents

public interface JRCellContents
extends JRElementGroup

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,v 1.3 2005/11/28 09:20:43 teodord Exp $
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()
          Returns the cell border.
 int getHeight()
          Returns the computed cell height.
 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
getCopy, writeXml
 

Field Detail

POSITION_X_LEFT

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public 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

public java.awt.Color getBackcolor()
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.

Returns:
the cell backcolor

getBox

public JRBox getBox()
Returns the cell border.

Returns:
the cell border

getWidth

public int getWidth()
Returns the computed cell width.

Returns:
the computed cell width
See Also:
NOT_CALCULATED

getHeight

public int getHeight()
Returns the computed cell height.

Returns:
the computed cell height
See Also:
NOT_CALCULATED


© 2001-2005 JasperSoft Corporation www.jaspersoft.com