net.sf.jasperreports.crosstabs.design
Class JRDesignCrosstabColumnGroup

java.lang.Object
  extended by net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
      extended by net.sf.jasperreports.crosstabs.design.JRDesignCrosstabGroup
          extended by net.sf.jasperreports.crosstabs.design.JRDesignCrosstabColumnGroup
All Implemented Interfaces:
java.io.Serializable, JRCrosstabColumnGroup, JRCrosstabGroup

public class JRDesignCrosstabColumnGroup
extends JRDesignCrosstabGroup
implements JRCrosstabColumnGroup

Crosstab column group implementation to be used for report designing.

Version:
$Id: JRDesignCrosstabColumnGroup.java 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  int height
           
protected  byte position
           
 
Fields inherited from class net.sf.jasperreports.crosstabs.design.JRDesignCrosstabGroup
designVariable
 
Fields inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
bucket, header, name, totalHeader, totalPosition, variable
 
Constructor Summary
JRDesignCrosstabColumnGroup()
          Creates a column group.
 
Method Summary
 int getHeight()
          Returns the height of the group headers.
 byte getPosition()
          Returns the position of the header contents for header stretching.
 void setHeight(int height)
          Sets the header cell height.
 void setPosition(byte position)
          Sets the header contents stretch position.
 
Methods inherited from class net.sf.jasperreports.crosstabs.design.JRDesignCrosstabGroup
setBucket, setHeader, setName, setTotalHeader, setTotalPosition
 
Methods inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
getBucket, getHeader, getName, getTotalHeader, getTotalPosition, getVariable, hasTotal
 
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.crosstabs.JRCrosstabGroup
getBucket, getHeader, getName, getTotalHeader, getTotalPosition, getVariable, hasTotal
 

Field Detail

height

protected int height

position

protected byte position
Constructor Detail

JRDesignCrosstabColumnGroup

public JRDesignCrosstabColumnGroup()
Creates a column group.

Method Detail

getPosition

public byte getPosition()
Description copied from interface: JRCrosstabColumnGroup
Returns the position of the header contents for header stretching.

The column group headers stretch horizontally when there are multiple sub group entries. The header contents will be adjusted to the new width depending on this attribute:

Specified by:
getPosition in interface JRCrosstabColumnGroup
Returns:
the position of the header contents for header stretching

setPosition

public void setPosition(byte position)
Sets the header contents stretch position.

Parameters:
position - the header contents stretch position
See Also:
JRCrosstabColumnGroup.getPosition()

getHeight

public int getHeight()
Description copied from interface: JRCrosstabColumnGroup
Returns the height of the group headers.

Specified by:
getHeight in interface JRCrosstabColumnGroup
Returns:
the height of the group headers
See Also:
JRCrosstabGroup.getHeader(), JRCrosstabGroup.getTotalHeader()

setHeight

public void setHeight(int height)
Sets the header cell height.

Parameters:
height - the height
See Also:
JRCrosstabColumnGroup.getHeight()


© 2001-2006 JasperSoft Corporation www.jaspersoft.com