|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.base.JRBaseElement
net.sf.jasperreports.engine.design.JRDesignElement
net.sf.jasperreports.crosstabs.design.JRDesignCrosstab
public class JRDesignCrosstab
Design-time crosstab
implementation.
Field Summary | |
---|---|
protected java.util.List |
cellsList
|
protected java.util.Map |
cellsMap
|
protected int |
columnBreakOffset
|
protected java.util.List |
columnGroups
|
protected java.util.Map |
columnGroupsMap
|
protected JRDesignCrosstabCell[][] |
crossCells
|
protected JRDesignCrosstabDataset |
dataset
|
protected JRDesignCellContents |
headerCell
|
protected java.lang.Boolean |
ignoreWidth
|
protected java.util.List |
measures
|
protected java.util.Map |
measuresMap
|
protected java.util.List |
parametersList
|
protected java.util.Map |
parametersMap
|
protected JRExpression |
parametersMapExpression
|
static java.lang.String |
PROPERTY_CELLS
|
static java.lang.String |
PROPERTY_COLUMN_BREAK_OFFSET
|
static java.lang.String |
PROPERTY_COLUMN_GROUPS
|
static java.lang.String |
PROPERTY_DATASET
|
static java.lang.String |
PROPERTY_HEADER_CELL
|
static java.lang.String |
PROPERTY_IGNORE_WIDTH
|
static java.lang.String |
PROPERTY_MEASURES
|
static java.lang.String |
PROPERTY_PARAMETERS
|
static java.lang.String |
PROPERTY_PARAMETERS_MAP_EXPRESSION
|
static java.lang.String |
PROPERTY_REPEAT_COLUMN_HEADERS
|
static java.lang.String |
PROPERTY_REPEAT_ROW_HEADERS
|
static java.lang.String |
PROPERTY_ROW_GROUPS
|
static java.lang.String |
PROPERTY_WHEN_NO_DATA_CELL
|
protected boolean |
repeatColumnHeaders
|
protected boolean |
repeatRowHeaders
|
protected java.util.List |
rowGroups
|
protected java.util.Map |
rowGroupsMap
|
protected RunDirectionEnum |
runDirectionValue
|
protected org.apache.commons.collections.SequencedHashMap |
variablesList
|
protected JRDesignCellContents |
whenNoDataCell
|
Fields inherited from class net.sf.jasperreports.engine.design.JRDesignElement |
---|
PROPERTY_ELEMENT_GROUP, PROPERTY_HEIGHT, PROPERTY_KEY, PROPERTY_PARENT_STYLE, PROPERTY_PARENT_STYLE_NAME_REFERENCE, PROPERTY_PRINT_WHEN_EXPRESSION, PROPERTY_PRINT_WHEN_GROUP_CHANGES, PROPERTY_PROPERTY_EXPRESSIONS, PROPERTY_Y |
Fields inherited from interface net.sf.jasperreports.crosstabs.JRCrosstab |
---|
DEFAULT_COLUMN_BREAK_OFFSET, RUN_DIRECTION_LTR, RUN_DIRECTION_RTL, VARIABLE_COLUMN_COUNT, VARIABLE_ROW_COUNT |
Fields inherited from interface net.sf.jasperreports.engine.JRElement |
---|
MODE_OPAQUE, MODE_TRANSPARENT, POSITION_TYPE_FIX_RELATIVE_TO_BOTTOM, POSITION_TYPE_FIX_RELATIVE_TO_TOP, POSITION_TYPE_FLOAT, STRETCH_TYPE_NO_STRETCH, STRETCH_TYPE_RELATIVE_TO_BAND_HEIGHT, STRETCH_TYPE_RELATIVE_TO_TALLEST_OBJECT |
Constructor Summary | |
---|---|
JRDesignCrosstab()
Creates a new crosstab. |
|
JRDesignCrosstab(JRDefaultStyleProvider defaultStyleProvider)
Creates a new crosstab. |
Method Summary | |
---|---|
void |
addCell(JRDesignCrosstabCell cell)
Adds a data cell to the crosstab. |
protected void |
addColGroupVars(JRDesignCrosstabColumnGroup colGroup)
|
void |
addColumnGroup(int index,
JRDesignCrosstabColumnGroup group)
Adds a column group. |
void |
addColumnGroup(JRDesignCrosstabColumnGroup group)
Adds a column group. |
void |
addMeasure(int index,
JRDesignCrosstabMeasure measure)
Adds a measure to the crosstab. |
void |
addMeasure(JRDesignCrosstabMeasure measure)
Adds a measure to the crosstab. |
protected void |
addMeasureVars(JRDesignCrosstabMeasure measure)
|
void |
addParameter(int index,
JRCrosstabParameter parameter)
Adds a parameter to the crosstab. |
void |
addParameter(JRCrosstabParameter parameter)
Adds a parameter to the crosstab. |
void |
addRowGroup(int index,
JRDesignCrosstabRowGroup group)
Adds a row group. |
void |
addRowGroup(JRDesignCrosstabRowGroup group)
Adds a row group. |
protected void |
addRowGroupVars(JRDesignCrosstabRowGroup rowGroup)
|
protected void |
addTotalVar(JRCrosstabMeasure measure,
JRCrosstabRowGroup rowGroup,
JRCrosstabColumnGroup colGroup)
|
protected int |
calculateColumnHeadersSizes()
|
protected int |
calculateRowHeadersSizes()
|
protected void |
calculateSizes()
|
java.lang.Object |
clone()
|
void |
collectExpressions(JRExpressionCollector collector)
|
protected void |
createCellMatrix()
|
JRCrosstabCell[][] |
getCells()
Returns the data cell matrix. |
java.util.List |
getCellsList()
Returns the data cells list. |
java.util.Map |
getCellsMap()
Returns the crosstab cells indexed by corresponding row total group/ column total group pairs . |
int |
getColumnBreakOffset()
Returns the column break offset. |
protected JRDesignCrosstabColumnGroup |
getColumnGroup(int columnGroupIndex)
|
java.util.Map |
getColumnGroupIndicesMap()
|
JRCrosstabColumnGroup[] |
getColumnGroups()
Returns the column groups of the crosstab. |
java.util.List |
getColumnGroupsList()
|
JRCrosstabDataset |
getDataset()
Returns the input dataset of the crosstab. |
JRDesignCrosstabDataset |
getDesignDataset()
Returns the crosstab dataset object to be used for report designing. |
JRElement |
getElementByKey(java.lang.String elementKey)
Searches for an element inside all crosstab cells. |
JRCellContents |
getHeaderCell()
Returns a cell which will be rendered at the upper-left corner of the crosstab. |
int |
getId()
The ID of the crosstab is only generated at compile time. |
java.lang.Boolean |
getIgnoreWidth()
Returns the ignore width flag for the crosstab. |
java.util.Map |
getMeasureIndicesMap()
|
JRCrosstabMeasure[] |
getMeasures()
Returns the crosstab measures. |
java.util.List |
getMesuresList()
|
ModeEnum |
getModeValue()
Returns the element transparency mode. |
JRCrosstabParameter[] |
getParameters()
Returns the crosstab parameters. |
java.util.List |
getParametersList()
Returns the paremeters list. |
java.util.Map |
getParametersMap()
Returns the parameters indexed by names. |
JRExpression |
getParametersMapExpression()
Returns the parameters map expression. |
protected JRDesignCrosstabRowGroup |
getRowGroup(int rowGroupIndex)
|
java.util.Map |
getRowGroupIndicesMap()
|
JRCrosstabRowGroup[] |
getRowGroups()
Returns the row groups of the crosstab. |
java.util.List |
getRowGroupsList()
|
byte |
getRunDirection()
Deprecated. Replaced by getRunDirectionValue() . |
RunDirectionEnum |
getRunDirectionValue()
Retrieves the run direction of this crosstab |
static java.lang.String |
getTotalVariableName(JRCrosstabMeasure measure,
JRCrosstabRowGroup rowGroup,
JRCrosstabColumnGroup colGroup)
|
JRVariable[] |
getVariables()
Returns the list of variables created for this crosstab. |
java.util.Map |
getVariablesMap()
Returns the variables of this crosstab indexed by name. |
JRCellContents |
getWhenNoDataCell()
Returns a cell which will be rendered when no data was fed to the crosstab. |
protected void |
inheritCell(int i,
int j)
|
protected void |
inheritCells()
|
protected void |
inheritCellSize(int i,
int j)
|
boolean |
isRepeatColumnHeaders()
Returns whether to repeat the column headers after a row break. |
boolean |
isRepeatRowHeaders()
Returns whether to repeat the row headers after a column break. |
protected void |
measureClassChanged(JRDesignCrosstabMeasure measure,
java.lang.String valueClassName)
|
void |
preprocess()
Performs all the calculations required for report compilation. |
JRCrosstabCell |
removeCell(JRCrosstabCell cell)
Removes a data cell. |
JRCrosstabCell |
removeCell(java.lang.String rowTotalGroup,
java.lang.String columnTotalGroup)
Removes a data cell. |
protected void |
removeColGroupVars(JRCrosstabColumnGroup colGroup)
|
JRCrosstabColumnGroup |
removeColumnGroup(JRCrosstabColumnGroup group)
Removes a column group. |
JRCrosstabColumnGroup |
removeColumnGroup(java.lang.String groupName)
Removes a column group. |
JRCrosstabMeasure |
removeMeasure(JRCrosstabMeasure measure)
Removes a measure. |
JRCrosstabMeasure |
removeMeasure(java.lang.String measureName)
Removes a measure. |
protected void |
removeMeasureVars(JRDesignCrosstabMeasure measure)
|
JRCrosstabParameter |
removeParameter(JRCrosstabParameter parameter)
Removes a parameter. |
JRCrosstabParameter |
removeParameter(java.lang.String parameterName)
Removes a parameter. |
JRCrosstabRowGroup |
removeRowGroup(JRCrosstabRowGroup group)
Removes a row group. |
JRCrosstabRowGroup |
removeRowGroup(java.lang.String groupName)
Removes a row group. |
protected void |
removeRowGroupVars(JRCrosstabRowGroup rowGroup)
|
protected void |
removeTotalVar(JRCrosstabMeasure measure,
JRCrosstabRowGroup rowGroup,
JRCrosstabColumnGroup colGroup)
|
protected void |
setCellOrigin(JRCellContents cell,
JRCrosstabOrigin origin)
|
protected void |
setCellOrigin(JRDesignCellContents cell,
JRCrosstabOrigin origin)
|
void |
setColumnBreakOffset(int columnBreakOffset)
Sets the column break offset. |
void |
setDataset(JRDesignCrosstabDataset dataset)
Sets the crosstab input dataset. |
protected void |
setGroupVariablesClass(java.util.List groups)
|
void |
setHeaderCell(JRDesignCellContents headerCell)
Sets the crosstab header cell (this cell will be rendered at the upper-left corder of the crosstab). |
void |
setIgnoreWidth(boolean ignoreWidth)
Set the ignore width crosstab flag. |
void |
setIgnoreWidth(java.lang.Boolean ignoreWidth)
Set the ignore width crosstab flag. |
void |
setParametersMapExpression(JRExpression expression)
Sets the parameters map expression. |
protected void |
setParent(JRDesignCrosstabGroup group)
|
void |
setRepeatColumnHeaders(boolean repeatColumnHeaders)
Sets the repeat column headers flag. |
void |
setRepeatRowHeaders(boolean repeatRowHeaders)
Sets the repeat row headers flag. |
void |
setRunDirection(byte runDirection)
Deprecated. Replaced by setRunDirection(RunDirectionEnum) . |
void |
setRunDirection(RunDirectionEnum runDirectionValue)
Sets the run direction of the crosstab. |
protected void |
setTotalVarClass(JRCrosstabMeasure measure,
JRCrosstabRowGroup rowGroup,
JRCrosstabColumnGroup colGroup,
java.lang.String valueClassName)
|
void |
setWhenNoDataCell(JRDesignCellContents whenNoDataCell)
Sets the "No data" cell. |
protected void |
setWhenNoDataCellSize()
|
void |
visit(JRVisitor visitor)
|
Methods inherited from class net.sf.jasperreports.engine.design.JRDesignElement |
---|
addPropertyExpression, getPropertyExpressions, getPropertyExpressionsList, removePropertyExpression, removePropertyExpression, setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setStyle, setStyleNameReference, setY |
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.JRElement |
---|
getElementGroup, getKey, getPositionType, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchType, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setStretchType, setWidth, setX |
Methods inherited from interface net.sf.jasperreports.engine.JRChild |
---|
clone |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
---|
getBackcolor, getForecolor, getHeight, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode, setMode, setMode |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder |
---|
getParentProperties, getPropertiesMap, hasProperties |
Field Detail |
---|
public static final java.lang.String PROPERTY_COLUMN_BREAK_OFFSET
public static final java.lang.String PROPERTY_DATASET
public static final java.lang.String PROPERTY_HEADER_CELL
public static final java.lang.String PROPERTY_PARAMETERS_MAP_EXPRESSION
public static final java.lang.String PROPERTY_REPEAT_COLUMN_HEADERS
public static final java.lang.String PROPERTY_REPEAT_ROW_HEADERS
public static final java.lang.String PROPERTY_WHEN_NO_DATA_CELL
public static final java.lang.String PROPERTY_CELLS
public static final java.lang.String PROPERTY_ROW_GROUPS
public static final java.lang.String PROPERTY_COLUMN_GROUPS
public static final java.lang.String PROPERTY_MEASURES
public static final java.lang.String PROPERTY_PARAMETERS
public static final java.lang.String PROPERTY_IGNORE_WIDTH
protected java.util.List parametersList
protected java.util.Map parametersMap
protected org.apache.commons.collections.SequencedHashMap variablesList
protected JRExpression parametersMapExpression
protected JRDesignCrosstabDataset dataset
protected java.util.List rowGroups
protected java.util.List columnGroups
protected java.util.List measures
protected java.util.Map rowGroupsMap
protected java.util.Map columnGroupsMap
protected java.util.Map measuresMap
protected int columnBreakOffset
protected boolean repeatColumnHeaders
protected boolean repeatRowHeaders
protected RunDirectionEnum runDirectionValue
protected java.util.List cellsList
protected java.util.Map cellsMap
protected JRDesignCrosstabCell[][] crossCells
protected JRDesignCellContents whenNoDataCell
protected JRDesignCellContents headerCell
protected java.lang.Boolean ignoreWidth
Constructor Detail |
---|
public JRDesignCrosstab(JRDefaultStyleProvider defaultStyleProvider)
defaultStyleProvider
- default style providerpublic JRDesignCrosstab()
Method Detail |
---|
public int getId()
getId
in interface JRCrosstab
public JRCrosstabDataset getDataset()
JRCrosstab
getDataset
in interface JRCrosstab
public JRDesignCrosstabDataset getDesignDataset()
public JRCrosstabRowGroup[] getRowGroups()
JRCrosstab
getRowGroups
in interface JRCrosstab
public JRCrosstabColumnGroup[] getColumnGroups()
JRCrosstab
getColumnGroups
in interface JRCrosstab
public JRCrosstabMeasure[] getMeasures()
JRCrosstab
getMeasures
in interface JRCrosstab
public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRElement
public void visit(JRVisitor visitor)
visit
in interface JRVisitable
public void setDataset(JRDesignCrosstabDataset dataset)
dataset
- the datasetJRCrosstab.getDataset()
public void addRowGroup(JRDesignCrosstabRowGroup group) throws JRException
This group will be a sub group of the last row group, if any.
group
- the group
JRException
JRCrosstab.getRowGroups()
public void addRowGroup(int index, JRDesignCrosstabRowGroup group) throws JRException
This group will be a sub group of the last row group, if any.
group
- the groupindex
- position
JRException
JRCrosstab.getRowGroups()
protected void addRowGroupVars(JRDesignCrosstabRowGroup rowGroup)
public void addColumnGroup(JRDesignCrosstabColumnGroup group) throws JRException
This group will be a sub group of the last column group, if any.
group
- the group
JRException
JRCrosstab.getColumnGroups()
public void addColumnGroup(int index, JRDesignCrosstabColumnGroup group) throws JRException
This group will be a sub group of the last column group, if any.
group
- the group
JRException
JRCrosstab.getColumnGroups()
protected void addColGroupVars(JRDesignCrosstabColumnGroup colGroup)
public void addMeasure(JRDesignCrosstabMeasure measure) throws JRException
measure
- the measure
JRException
JRCrosstab.getMeasures()
public void addMeasure(int index, JRDesignCrosstabMeasure measure) throws JRException
measure
- the measure
JRException
JRCrosstab.getMeasures()
protected void addMeasureVars(JRDesignCrosstabMeasure measure)
protected void addTotalVar(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup)
protected void removeTotalVar(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup)
public static java.lang.String getTotalVariableName(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup)
public JRCrosstabRowGroup removeRowGroup(java.lang.String groupName)
groupName
- the group name
protected void removeRowGroupVars(JRCrosstabRowGroup rowGroup)
public JRCrosstabRowGroup removeRowGroup(JRCrosstabRowGroup group)
group
- the group to be removed
public JRCrosstabColumnGroup removeColumnGroup(java.lang.String groupName)
groupName
- the group name
protected void removeColGroupVars(JRCrosstabColumnGroup colGroup)
public JRCrosstabColumnGroup removeColumnGroup(JRCrosstabColumnGroup group)
group
- the group
public JRCrosstabMeasure removeMeasure(java.lang.String measureName)
measureName
- the measure name
protected void removeMeasureVars(JRDesignCrosstabMeasure measure)
public JRCrosstabMeasure removeMeasure(JRCrosstabMeasure measure)
measure
- the measure
public boolean isRepeatColumnHeaders()
JRCrosstab
isRepeatColumnHeaders
in interface JRCrosstab
public void setRepeatColumnHeaders(boolean repeatColumnHeaders)
repeatColumnHeaders
- whether to repeat the column headers on row breaksJRCrosstab.isRepeatColumnHeaders()
public boolean isRepeatRowHeaders()
JRCrosstab
isRepeatRowHeaders
in interface JRCrosstab
public void setRepeatRowHeaders(boolean repeatRowHeaders)
repeatRowHeaders
- whether to repeat the row headers on column breaksJRCrosstab.isRepeatRowHeaders()
public JRCrosstabCell[][] getCells()
JRCrosstab
A crosstab can have multiple data cells for row/groups totals. These cells are organized in a (rowGroupCount + 1) x (columnGroupCount + 1) matrix as following:
E.g. if the crosstab has Country and City (subgroup of Country) row groups and Year and Month column groups, the cells will be organized in the following matrix
0/Years total | 1/Months total | 2/Base | |
0/Countries total | Total for all countries and all years | Total for all countries and a year | Total for all countries and a month |
1/Cities total | Total for a country and all years | Total for a country and a year | Total for a country and a month |
2/Base | Total for a city and all years | Total for a city and a year | Total for a city and a month |
If the data cell for a total row/column is not specified, the cell will be inherited from lower levels, if possible. For example, if the "Total for all countries and a year" cell is not specified, the "Total for a country and a year" or "Total for a city and a year" cell will be used (in this order).
The data cell sizes are calculated from the base data cell sizes, i.e. the height of all data cells for a row will be the height of the base cell of that row. The base cell sizes are also inherited, e.g. if the height of a total row is not specified the height of the base row will be used.
getCells
in interface JRCrosstab
public java.util.List getCellsList()
addCell(JRDesignCrosstabCell)
public java.util.Map getCellsMap()
pairs
.
JRCrosstabCell.getRowTotalGroup()
,
JRCrosstabCell.getColumnTotalGroup()
public void addCell(JRDesignCrosstabCell cell) throws JRException
cell
- the cell
JRException
JRCrosstab.getCells()
public JRCrosstabCell removeCell(java.lang.String rowTotalGroup, java.lang.String columnTotalGroup)
rowTotalGroup
- the cell's total row groupcolumnTotalGroup
- the cell's total column group
public JRCrosstabCell removeCell(JRCrosstabCell cell)
cell
- the cell to be removed
public JRCrosstabParameter[] getParameters()
JRCrosstab
Crosstabs have separate expression evaluators and cannot access the parameters/fields/variables of the report. In order to use a value from the report inside a crosstab, it should be passed as parameter to the crosstab.
A crosstab parameters has a name and a value expression.
getParameters
in interface JRCrosstab
public java.util.List getParametersList()
public java.util.Map getParametersMap()
public JRExpression getParametersMapExpression()
JRCrosstab
The set of values for crosstab parameters can be set using a map. If a parameter has also a value expression, it will overwrite the value from the map.
getParametersMapExpression
in interface JRCrosstab
public void addParameter(JRCrosstabParameter parameter) throws JRException
parameter
- the parameter
JRException
JRCrosstab.getMeasures()
public void addParameter(int index, JRCrosstabParameter parameter) throws JRException
parameter
- the parameter
JRException
JRCrosstab.getMeasures()
public JRCrosstabParameter removeParameter(java.lang.String parameterName)
parameterName
- the name of the parameter to be removed
public JRCrosstabParameter removeParameter(JRCrosstabParameter parameter)
parameter
- the parameter to be removed
public void setParametersMapExpression(JRExpression expression)
expression
- the parameters map expressionJRCrosstab.getParametersMapExpression()
public java.util.Map getVariablesMap()
public JRVariable[] getVariables()
getVariables
in interface JRCrosstab
JRCrosstabGroup.getVariable()
,
JRCrosstabMeasure.getVariable()
,
JRCrosstab.VARIABLE_ROW_COUNT
,
JRCrosstab.VARIABLE_COLUMN_COUNT
public int getColumnBreakOffset()
JRCrosstab
When the crosstab columns do not fit the width, the crosstab breaks the columns and prints the ones that don't fit after printing the first set of columns for all rows. This method returns the offset to be used when continuing the printing after a column break.
getColumnBreakOffset
in interface JRCrosstab
public void setColumnBreakOffset(int columnBreakOffset)
columnBreakOffset
- the offsetJRCrosstab.getColumnBreakOffset()
public void preprocess()
protected void setGroupVariablesClass(java.util.List groups)
protected void calculateSizes()
protected void setWhenNoDataCellSize()
protected void createCellMatrix()
protected JRDesignCrosstabRowGroup getRowGroup(int rowGroupIndex)
protected JRDesignCrosstabColumnGroup getColumnGroup(int columnGroupIndex)
protected void inheritCells()
protected void inheritCellSize(int i, int j)
protected void inheritCell(int i, int j)
protected int calculateRowHeadersSizes()
protected int calculateColumnHeadersSizes()
public JRCellContents getWhenNoDataCell()
JRCrosstab
If this cell is not specified for a crosstab, nothing will be rendered for an empty crosstab.
The cell sizes are the same as the crosstab element sizes.
getWhenNoDataCell
in interface JRCrosstab
public void setWhenNoDataCell(JRDesignCellContents whenNoDataCell)
whenNoDataCell
- the cellJRCrosstab.getWhenNoDataCell()
public JRElement getElementByKey(java.lang.String elementKey)
JRCrosstab
getElementByKey
in interface JRCrosstab
elementKey
- the element key
public ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRBaseElement
public JRCellContents getHeaderCell()
JRCrosstab
getHeaderCell
in interface JRCrosstab
public void setHeaderCell(JRDesignCellContents headerCell)
headerCell
- the cellJRCrosstab.getHeaderCell()
protected void measureClassChanged(JRDesignCrosstabMeasure measure, java.lang.String valueClassName)
protected void setTotalVarClass(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup, java.lang.String valueClassName)
public byte getRunDirection()
getRunDirectionValue()
.
getRunDirection
in interface JRCrosstab
public void setRunDirection(byte runDirection)
setRunDirection(RunDirectionEnum)
.
setRunDirection
in interface JRCrosstab
public RunDirectionEnum getRunDirectionValue()
JRCrosstab
getRunDirectionValue
in interface JRCrosstab
RunDirectionEnum
public void setRunDirection(RunDirectionEnum runDirectionValue)
JRCrosstab
Crosstabs can either be filled from left to right (the default) or from right to left (mainly for reports in RTL languages).
setRunDirection
in interface JRCrosstab
runDirectionValue
- a value representing one of the run direction constants in RunDirectionEnum
protected void setCellOrigin(JRCellContents cell, JRCrosstabOrigin origin)
protected void setCellOrigin(JRDesignCellContents cell, JRCrosstabOrigin origin)
protected void setParent(JRDesignCrosstabGroup group)
public java.lang.Object clone()
clone
in interface JRCloneable
clone
in class JRBaseElement
public java.util.List getRowGroupsList()
public java.util.Map getRowGroupIndicesMap()
public java.util.List getColumnGroupsList()
public java.util.Map getColumnGroupIndicesMap()
public java.util.List getMesuresList()
public java.util.Map getMeasureIndicesMap()
public java.lang.Boolean getIgnoreWidth()
JRCrosstab
getIgnoreWidth
in interface JRCrosstab
null
is the crosstab
does not specify a flag valueJRCrosstab.setIgnoreWidth(Boolean)
public void setIgnoreWidth(java.lang.Boolean ignoreWidth)
JRCrosstab
This flag determines whether the crosstab will break at the width set for the crosstab element, or whether the crosstab is to expand over this width (and over the page width as well).
If this flag is set to true
, the crosstab will expand towards
the right (or towards the left if the crosstab direction is RTL) as long
as it needs to. This would result in crosstab cells being rendered over
the page boundary; such elements will be exported by certain grid-based
exporters such as the HTML or XLS ones, but will not be visible in export
formats that observe the page width, such as the PDF exporter.
The default value of this flag is given by the
JRCrosstab.PROPERTY_IGNORE_WIDTH
property.
setIgnoreWidth
in interface JRCrosstab
ignoreWidth
- whether the element width is to be ignored by the crosstab,
or null
if the default setting is to be usedJRCrosstab.PROPERTY_IGNORE_WIDTH
public void setIgnoreWidth(boolean ignoreWidth)
JRCrosstab
setIgnoreWidth
in interface JRCrosstab
JRCrosstab.setIgnoreWidth(Boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |