public class JRDesignCrosstabColumnGroup extends JRDesignCrosstabGroup implements JRCrosstabColumnGroup
| Modifier and Type | Field and Description |
|---|---|
protected int |
height |
protected CrosstabColumnPositionEnum |
positionValue |
static String |
PROPERTY_HEIGHT |
static String |
PROPERTY_POSITION |
designVariable, parent, PROPERTY_BUCKET, PROPERTY_HEADER, PROPERTY_NAME, PROPERTY_TOTAL_HEADER, PROPERTY_TOTAL_POSITIONbucket, header, name, totalHeader, totalPositionValue, variable| Constructor and Description |
|---|
JRDesignCrosstabColumnGroup()
Creates a column group.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Returns the height of the group headers.
|
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(CrosstabColumnPositionEnum positionValue)
Sets the header contents stretch position.
|
void |
setTotalHeader(JRDesignCellContents totalHeader)
Sets the group total header cell.
|
clone, clone, getEventSupport, getParent, setBucket, setCellOrigin, setName, setTotalPositiongetBucket, getHeader, getName, getTotalHeader, getTotalPositionValue, getVariable, hasTotalequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBucket, getHeader, getName, getTotalHeader, getTotalPositionValue, getVariable, hasTotalclonepublic static final String PROPERTY_HEIGHT
public static final String PROPERTY_POSITION
protected int height
protected CrosstabColumnPositionEnum positionValue
public JRDesignCrosstabColumnGroup()
public CrosstabColumnPositionEnum getPositionValue()
JRCrosstabColumnGroupThe 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 sizegetPositionValue in interface JRCrosstabColumnGrouppublic void setPosition(CrosstabColumnPositionEnum positionValue)
positionValue - the header contents stretch positionJRCrosstabColumnGroup.getPositionValue()public int getHeight()
JRCrosstabColumnGroupgetHeight in interface JRCrosstabColumnGroupJRCrosstabGroup.getHeader(),
JRCrosstabGroup.getTotalHeader()public void setHeight(int height)
height - the heightJRCrosstabColumnGroup.getHeight()public void setHeader(JRDesignCellContents header)
JRDesignCrosstabGroupsetHeader in class JRDesignCrosstabGroupheader - the header cellJRCrosstabGroup.getHeader()public void setTotalHeader(JRDesignCellContents totalHeader)
JRDesignCrosstabGroupsetTotalHeader in class JRDesignCrosstabGrouptotalHeader - the total headerJRCrosstabGroup.getTotalHeader()Copyright © 2012. All Rights Reserved.