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, java.lang.Cloneable, JRCrosstabColumnGroup, JRCrosstabGroup, JRChangeEventsSupport, JRCloneable

public class JRDesignCrosstabColumnGroup
extends JRDesignCrosstabGroup
implements JRCrosstabColumnGroup

Crosstab column group implementation to be used for report designing.

Version:
$Id: JRDesignCrosstabColumnGroup.java 3715 2010-04-08 18:08:49Z teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  int height
           
protected  CrosstabColumnPositionEnum positionValue
           
static java.lang.String PROPERTY_HEIGHT
           
static java.lang.String PROPERTY_POSITION
           
 
Fields inherited from class net.sf.jasperreports.crosstabs.design.JRDesignCrosstabGroup
designVariable, parent, PROPERTY_BUCKET, PROPERTY_HEADER, PROPERTY_NAME, PROPERTY_TOTAL_HEADER, PROPERTY_TOTAL_POSITION
 
Fields inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
bucket, header, name, totalHeader, totalPositionValue, variable
 
Constructor Summary
JRDesignCrosstabColumnGroup()
          Creates a column group.
 
Method Summary
 int getHeight()
          Returns the height of the group headers.
 byte getPosition()
          Deprecated. Replaced by getPositionValue().
 CrosstabColumnPositionEnum getPositionValue()
          Returns the position of the header contents for header stretching.
 void setHeader(JRDesignCellContents header)
          Sets the group header cell.
 void setHeight(int height)
          Sets the header cell height.
 void setPosition(byte position)
          Deprecated. Replaced by setPosition(CrosstabColumnPositionEnum)
 void setPosition(CrosstabColumnPositionEnum positionValue)
          Sets the header contents stretch position.
 void setTotalHeader(JRDesignCellContents totalHeader)
          Sets the group total header cell.
 
Methods inherited from class net.sf.jasperreports.crosstabs.design.JRDesignCrosstabGroup
clone, clone, getEventSupport, getParent, setBucket, setCellOrigin, setName, setTotalPosition, setTotalPosition
 
Methods inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
getBucket, getHeader, getName, getTotalHeader, getTotalPosition, getTotalPositionValue, getVariable, hasTotal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jasperreports.crosstabs.JRCrosstabGroup
getBucket, getHeader, getName, getTotalHeader, getTotalPosition, getTotalPositionValue, getVariable, hasTotal
 
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
 

Field Detail

PROPERTY_HEIGHT

public static final java.lang.String PROPERTY_HEIGHT
See Also:
Constant Field Values

PROPERTY_POSITION

public static final java.lang.String PROPERTY_POSITION
See Also:
Constant Field Values

height

protected int height

positionValue

protected CrosstabColumnPositionEnum positionValue
Constructor Detail

JRDesignCrosstabColumnGroup

public JRDesignCrosstabColumnGroup()
Creates a column group.

Method Detail

getPosition

public byte getPosition()
Deprecated. Replaced by getPositionValue().

Specified by:
getPosition in interface JRCrosstabColumnGroup

getPositionValue

public CrosstabColumnPositionEnum getPositionValue()
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:
getPositionValue in interface JRCrosstabColumnGroup
Returns:
the position of the header contents for header stretching

setPosition

public void setPosition(byte position)
Deprecated. Replaced by setPosition(CrosstabColumnPositionEnum)


setPosition

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

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

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()

setHeader

public void setHeader(JRDesignCellContents header)
Description copied from class: JRDesignCrosstabGroup
Sets the group header cell.

Overrides:
setHeader in class JRDesignCrosstabGroup
Parameters:
header - the header cell
See Also:
JRCrosstabGroup.getHeader()

setTotalHeader

public void setTotalHeader(JRDesignCellContents totalHeader)
Description copied from class: JRDesignCrosstabGroup
Sets the group total header cell.

Overrides:
setTotalHeader in class JRDesignCrosstabGroup
Parameters:
totalHeader - the total header
See Also:
JRCrosstabGroup.getTotalHeader()


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com