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
public class JRBaseCrosstabRowGroup extends JRBaseCrosstabGroup implements JRCrosstabRowGroup
Base read-only implementation of crosstab row groups.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CrosstabRowPositionEnum
position
protected int
width
-
Fields inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
bucket, header, mergeHeaderCells, name, totalHeader, totalPosition, variable
-
-
Constructor Summary
Constructors Constructor Description JRBaseCrosstabRowGroup(JRCrosstabRowGroup group, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CrosstabRowPositionEnum
getPosition()
Returns the position of the header contents for header stretching.int
getWidth()
Returns the width of the group headers.-
Methods inherited from class net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup
clone, clone, getBucket, getHeader, getMergeHeaderCells, getName, getTotalHeader, getTotalPosition, 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.engine.JRCloneable
clone
-
Methods inherited from interface net.sf.jasperreports.crosstabs.JRCrosstabGroup
getBucket, getHeader, getMergeHeaderCells, getName, getTotalHeader, getTotalPosition, getVariable, hasTotal
-
-
-
-
Field Detail
-
width
protected int width
-
position
protected CrosstabRowPositionEnum position
-
-
Constructor Detail
-
JRBaseCrosstabRowGroup
public JRBaseCrosstabRowGroup(JRCrosstabRowGroup group, JRBaseObjectFactory factory)
-
-
Method Detail
-
getPosition
public CrosstabRowPositionEnum getPosition()
Description copied from interface:JRCrosstabRowGroup
Returns 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:
getPosition
in interfaceJRCrosstabRowGroup
- Returns:
- the position of the header contents for header stretching
-
getWidth
public int getWidth()
Description copied from interface:JRCrosstabRowGroup
Returns the width of the group headers.- Specified by:
getWidth
in interfaceJRCrosstabRowGroup
- Returns:
- the width of the group headers
- See Also:
JRCrosstabGroup.getHeader()
,JRCrosstabGroup.getTotalHeader()
-
-