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_POSITION
bucket, 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, setTotalPosition
clone, getBucket, getHeader, getMergeHeaderCells, getName, getTotalHeader, getTotalPositionValue, getVariable, hasTotal
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBucket, getHeader, getMergeHeaderCells, getName, getTotalHeader, getTotalPositionValue, getVariable, hasTotal
public 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()
JRCrosstabColumnGroup
The 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 JRCrosstabColumnGroup
public void setPosition(CrosstabColumnPositionEnum positionValue)
positionValue
- the header contents stretch positionJRCrosstabColumnGroup.getPositionValue()
public int getHeight()
JRCrosstabColumnGroup
getHeight
in interface JRCrosstabColumnGroup
JRCrosstabGroup.getHeader()
,
JRCrosstabGroup.getTotalHeader()
public void setHeight(int height)
height
- the heightJRCrosstabColumnGroup.getHeight()
public void setHeader(JRDesignCellContents header)
JRDesignCrosstabGroup
setHeader
in class JRDesignCrosstabGroup
header
- the header cellJRCrosstabGroup.getHeader()
public void setTotalHeader(JRDesignCellContents totalHeader)
JRDesignCrosstabGroup
setTotalHeader
in class JRDesignCrosstabGroup
totalHeader
- 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 JRCrosstabColumnGroup
null
if no header cell is presentJRCrosstab.getHeaderCell()
,
JRCrosstabColumnGroup.getHeight()
public void setCrosstabHeader(JRDesignCellContents crosstabHeader)
protected void setCrosstabHeaderOrigin()
public Object clone()
clone
in interface JRCloneable
clone
in class JRDesignCrosstabGroup
Copyright © 2016. All rights reserved.