Class JRDesignCrosstabRowGroup
java.lang.Object
net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
net.sf.jasperreports.crosstabs.design.JRDesignCrosstabGroup
net.sf.jasperreports.crosstabs.design.JRDesignCrosstabRowGroup
- All Implemented Interfaces:
Serializable,Cloneable,CrosstabBaseCloneable,JRCrosstabGroup,JRCrosstabRowGroup,JRChangeEventsSupport,JRCloneable
Crosstab row group implementation to be used for report designing.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CrosstabRowPositionEnumstatic final Stringstatic final Stringprotected intFields 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 TypeMethodDescriptionReturns the position of the header contents for header stretching.intgetWidth()Returns the width of the group headers.voidsetHeader(JRDesignCellContents header) Sets the group header cell.voidsetPosition(CrosstabRowPositionEnum position) Sets the header contents stretch position.voidsetTotalHeader(JRDesignCellContents totalHeader) Sets the group total header cell.voidsetWidth(int width) Sets the header cell width.Methods inherited from class net.sf.jasperreports.crosstabs.design.JRDesignCrosstabGroup
clone, 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.engine.JRCloneable
cloneMethods inherited from interface net.sf.jasperreports.crosstabs.JRCrosstabGroup
getBucket, getHeader, getMergeHeaderCells, getName, getTotalHeader, getTotalPosition, getVariable, hasTotal
-
Field Details
-
PROPERTY_POSITION
- See Also:
-
PROPERTY_WIDTH
- See Also:
-
width
protected int width -
position
-
-
Constructor Details
-
JRDesignCrosstabRowGroup
public JRDesignCrosstabRowGroup()
-
-
Method Details
-
getPosition
Description copied from interface:JRCrosstabRowGroupReturns the position of the header contents for header stretching.The row group headers stretch vertically when there are multiple sub group entries. The header contents will be adjusted to the new height depending on this attribute:
CrosstabRowPositionEnum.TOP- the contents will be rendered at the top of of the headerCrosstabRowPositionEnum.MIDDLE- the contents will be rendered on the center of the headerJCrosstabRowPositionEnum.BOTTOM- the contents will be rendered at the bottom of the headerCrosstabRowPositionEnum.STRETCH- the contents will be proportionally stretched to the new header size
- Specified by:
getPositionin interfaceJRCrosstabRowGroup- 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:
-
getWidth
public int getWidth()Description copied from interface:JRCrosstabRowGroupReturns the width of the group headers.- Specified by:
getWidthin interfaceJRCrosstabRowGroup- Returns:
- the width of the group headers
- See Also:
-
setWidth
public void setWidth(int width) Sets the header cell width.- Parameters:
width- the width- 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:
-