net.sf.jasperreports.crosstabs.base
Class JRBaseCellContents

java.lang.Object
  extended bynet.sf.jasperreports.engine.base.JRBaseElementGroup
      extended bynet.sf.jasperreports.crosstabs.base.JRBaseCellContents
All Implemented Interfaces:
JRCellContents, JRChild, JRElementGroup, java.io.Serializable

public class JRBaseCellContents
extends JRBaseElementGroup
implements JRCellContents, java.io.Serializable

Base read-only implementation of JRCellContents.

Version:
$Id: JRBaseCellContents.java,v 1.2 2005/11/28 09:20:45 teodord Exp $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  java.awt.Color backcolor
           
protected  JRBox box
           
protected  int height
           
protected  int width
           
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup
children, elementGroup
 
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
 
Constructor Summary
JRBaseCellContents(JRCellContents cell, JRBaseObjectFactory factory)
           
 
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 class net.sf.jasperreports.engine.base.JRBaseElementGroup
getChildren, getCopy, getElementByKey, getElementByKey, getElementGroup, getElements, getElements, writeXml
 
Methods inherited from class java.lang.Object
clone, 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
getCopy, writeXml
 

Field Detail

backcolor

protected java.awt.Color backcolor

box

protected JRBox box

width

protected int width

height

protected int height
Constructor Detail

JRBaseCellContents

public JRBaseCellContents(JRCellContents cell,
                          JRBaseObjectFactory factory)
Method Detail

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

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

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


© 2001-2005 JasperSoft Corporation www.jaspersoft.com