Class JRDesignCrosstabColumnGroup
java.lang.Object
net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
net.sf.jasperreports.crosstabs.design.JRDesignCrosstabGroup
net.sf.jasperreports.crosstabs.design.JRDesignCrosstabColumnGroup
- All Implemented Interfaces:
Serializable,Cloneable,CrosstabBaseCloneable,JRCrosstabColumnGroup,JRCrosstabGroup,JRChangeEventsSupport,JRCloneable
public class JRDesignCrosstabColumnGroup
extends JRDesignCrosstabGroup
implements JRCrosstabColumnGroup
Crosstab column group implementation to be used for report designing.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRCellContentsprotected intprotected CrosstabColumnPositionEnumstatic final Stringstatic final Stringstatic final StringFields inherited from class net.sf.jasperreports.crosstabs.design.JRDesignCrosstabGroup
designVariable, parent, PROPERTY_BUCKET, PROPERTY_HEADER, PROPERTY_MERGE_HEADER_CELLS, PROPERTY_NAME, PROPERTY_TOTAL_HEADER, PROPERTY_TOTAL_POSITIONFields inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
bucket, header, mergeHeaderCells, name, totalHeader, totalPosition, variable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the crosstab header cell of the column group.intReturns the height of the group headers.Returns the position of the header contents for header stretching.voidsetCrosstabHeader(JRDesignCellContents crosstabHeader) protected voidvoidsetHeader(JRDesignCellContents header) Sets the group header cell.voidsetHeight(int height) Sets the header cell height.voidsetPosition(CrosstabColumnPositionEnum position) Sets the header contents stretch position.voidsetTotalHeader(JRDesignCellContents totalHeader) Sets the group total header cell.Methods inherited from class net.sf.jasperreports.crosstabs.design.JRDesignCrosstabGroup
clone, getEventSupport, getParent, setBucket, setCellOrigin, setMergeHeaderCells, setName, setTotalPositionMethods inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
clone, getBucket, getHeader, getMergeHeaderCells, getName, getTotalHeader, getTotalPosition, getVariable, hasTotalMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.crosstabs.JRCrosstabGroup
getBucket, getHeader, getMergeHeaderCells, getName, getTotalHeader, getTotalPosition, getVariable, hasTotal
-
Field Details
-
PROPERTY_HEIGHT
- See Also:
-
PROPERTY_POSITION
- See Also:
-
PROPERTY_CROSSTAB_HEADER
- See Also:
-
height
protected int height -
position
-
crosstabHeader
-
-
Constructor Details
-
JRDesignCrosstabColumnGroup
public JRDesignCrosstabColumnGroup()Creates a column group.
-
-
Method Details
-
getPosition
Description copied from interface:JRCrosstabColumnGroupReturns 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:
CrosstabColumnPositionEnum.LEFT- the contents will be rendered on the left side of the headerCrosstabColumnPositionEnum.CENTER- the contents will be rendered on the center of the headerCrosstabColumnPositionEnum.RIGHT- the contents will be rendered on the right side of the headerCrosstabColumnPositionEnum.STRETCH- the contents will be proportionally stretched to the new header size
- Specified by:
getPositionin interfaceJRCrosstabColumnGroup- Returns:
- the position of the header contents for header stretching
-
setPosition
Sets the header contents stretch position.- Parameters:
position- the header contents stretch position- See Also:
-
getHeight
public int getHeight()Description copied from interface:JRCrosstabColumnGroupReturns the height of the group headers.- Specified by:
getHeightin interfaceJRCrosstabColumnGroup- Returns:
- the height of the group headers
- See Also:
-
setHeight
public void setHeight(int height) Sets the header cell height.- Parameters:
height- the height- See Also:
-
setHeader
Description copied from class:JRDesignCrosstabGroupSets the group header cell.- Overrides:
setHeaderin classJRDesignCrosstabGroup- Parameters:
header- the header cell- See Also:
-
setTotalHeader
Description copied from class:JRDesignCrosstabGroupSets the group total header cell.- Overrides:
setTotalHeaderin classJRDesignCrosstabGroup- Parameters:
totalHeader- the total header- See Also:
-
getCrosstabHeader
Description copied from interface:JRCrosstabColumnGroupReturns the crosstab header cell of the column group.The cell will be rendered at the left of the corresponding row of column headers, potentially overlapping
the crosstab header cell.The width of the cell is the total width of row group headers, and the height is the height of the corresponding column header.
- Specified by:
getCrosstabHeaderin interfaceJRCrosstabColumnGroup- Returns:
- the crosstab header cell of the column group, or
nullif no header cell is present - See Also:
-
setCrosstabHeader
-
setCrosstabHeaderOrigin
protected void setCrosstabHeaderOrigin() -
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRDesignCrosstabGroup
-