Class JRBaseCrosstabRowGroup
java.lang.Object
net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
net.sf.jasperreports.crosstabs.base.JRBaseCrosstabRowGroup
- All Implemented Interfaces:
Serializable,Cloneable,CrosstabBaseCloneable,JRCrosstabGroup,JRCrosstabRowGroup,JRCloneable
Base read-only implementation of crosstab row groups.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected CrosstabRowPositionEnumprotected intFields inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
bucket, header, mergeHeaderCells, name, totalHeader, totalPosition, variable -
Constructor Summary
ConstructorsConstructorDescriptionJRBaseCrosstabRowGroup(JRCrosstabRowGroup group, JRBaseObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionReturns the position of the header contents for header stretching.intgetWidth()Returns the width of the group headers.booleanDetermines whether the row group should be kept together on a single page.Methods inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
clone, 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
-
width
protected int width -
position
-
keepTogether
protected boolean keepTogether
-
-
Constructor Details
-
JRBaseCrosstabRowGroup
-
-
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
-
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:
-
isKeepTogether
public boolean isKeepTogether()Description copied from interface:JRCrosstabRowGroupDetermines whether the row group should be kept together on a single page.When set to
true, all rows belonging to the same row group instance will be kept together on a single page. If there is not enough space on the current page, the entire row group will be moved to the next page.- Specified by:
isKeepTogetherin interfaceJRCrosstabRowGroup- Returns:
- whether the row group should be kept together
-