public class JRDesignCrosstabColumnGroup extends JRDesignCrosstabGroup implements JRCrosstabColumnGroup
| Modifier and Type | Field and Description |
|---|---|
protected JRCellContents |
crosstabHeader |
protected int |
height |
protected CrosstabColumnPositionEnum |
positionValue |
static String |
PROPERTY_CROSSTAB_HEADER |
static String |
PROPERTY_HEIGHT |
static String |
PROPERTY_POSITION |
designVariable, parent, PROPERTY_BUCKET, PROPERTY_HEADER, PROPERTY_MERGE_HEADER_CELLS, PROPERTY_NAME, PROPERTY_TOTAL_HEADER, PROPERTY_TOTAL_POSITIONbucket, header, mergeHeaderCells, name, totalHeader, totalPositionValue, variable| Constructor and Description |
|---|
JRDesignCrosstabColumnGroup()
Creates a column group.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
JRCellContents |
getCrosstabHeader()
Returns the crosstab header cell of the column group.
|
int |
getHeight()
Returns the height of the group headers.
|
CrosstabColumnPositionEnum |
getPositionValue()
Returns the position of the header contents for header stretching.
|
void |
setCrosstabHeader(JRDesignCellContents crosstabHeader) |
protected void |
setCrosstabHeaderOrigin() |
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, getEventSupport, getParent, setBucket, setCellOrigin, setMergeHeaderCells, setName, setTotalPositionclone, getBucket, getHeader, getMergeHeaderCells, getName, getTotalHeader, getTotalPositionValue, getVariable, hasTotalequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBucket, getHeader, getMergeHeaderCells, getName, getTotalHeader, getTotalPositionValue, getVariable, hasTotalpublic static final String PROPERTY_HEIGHT
public static final String PROPERTY_POSITION
public static final String PROPERTY_CROSSTAB_HEADER
protected int height
protected CrosstabColumnPositionEnum positionValue
protected JRCellContents crosstabHeader
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()public JRCellContents getCrosstabHeader()
JRCrosstabColumnGroup
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.
getCrosstabHeader in interface JRCrosstabColumnGroupnull if no header cell is presentJRCrosstab.getHeaderCell(),
JRCrosstabColumnGroup.getHeight()public void setCrosstabHeader(JRDesignCellContents crosstabHeader)
protected void setCrosstabHeaderOrigin()
public Object clone()
clone in interface JRCloneableclone in class JRDesignCrosstabGroupCopyright © 2017. All rights reserved.