public class JRDesignCrosstab extends JRDesignElement implements JRCrosstab
crosstab implementation.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_Ybackcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, modeValue, parentStyle, parentStyleNameReference, positionTypeValue, printWhenExpression, printWhenGroupChanges, PROPERTY_POSITION_TYPE, PROPERTY_PRINT_IN_FIRST_WHOLE_BAND, PROPERTY_PRINT_REPEATED_VALUES, PROPERTY_PRINT_WHEN_DETAIL_OVERFLOWS, PROPERTY_REMOVE_LINE_WHEN_BLANK, PROPERTY_STRETCH_TYPE, PROPERTY_WIDTH, PROPERTY_X, stretchTypeValue, uuid, width, x, yDEFAULT_COLUMN_BREAK_OFFSET, VARIABLE_COLUMN_COUNT, VARIABLE_ROW_COUNT| Constructor and Description |
|---|
JRDesignCrosstab()
Creates a new crosstab.
|
JRDesignCrosstab(JRDefaultStyleProvider defaultStyleProvider)
Creates a new crosstab.
|
| Modifier and Type | Method and Description |
|---|---|
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(int rowHeadersWidth) |
protected int |
calculateRowHeadersSizes() |
protected void |
calculateSizes() |
Object |
clone() |
void |
collectExpressions(JRExpressionCollector collector) |
protected void |
createCellMatrix() |
JRCrosstabCell[][] |
getCells()
Returns the data cell matrix.
|
List<JRCrosstabCell> |
getCellsList()
Returns the data cells list.
|
Map<Pair<String,String>,JRCrosstabCell> |
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) |
Map<String,Integer> |
getColumnGroupIndicesMap() |
JRCrosstabColumnGroup[] |
getColumnGroups()
Returns the column groups of the crosstab.
|
List<JRCrosstabColumnGroup> |
getColumnGroupsList() |
JRCrosstabDataset |
getDataset()
Returns the input dataset of the crosstab.
|
Color |
getDefaultLineColor() |
JRDesignCrosstabDataset |
getDesignDataset()
Returns the crosstab dataset object to be used for report designing.
|
JRElement |
getElementByKey(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.
|
HorizontalPosition |
getHorizontalPosition()
Returns the position of the crosstab within its element box.
|
int |
getId()
The ID of the crosstab is only generated at compile time.
|
Boolean |
getIgnoreWidth()
Returns the ignore width flag for the crosstab.
|
JRLineBox |
getLineBox() |
Map<String,Integer> |
getMeasureIndicesMap() |
JRCrosstabMeasure[] |
getMeasures()
Returns the crosstab measures.
|
List<JRCrosstabMeasure> |
getMesuresList() |
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
JRCrosstabParameter[] |
getParameters()
Returns the crosstab parameters.
|
List<JRCrosstabParameter> |
getParametersList()
Returns the paremeters list.
|
Map<String,JRCrosstabParameter> |
getParametersMap()
Returns the parameters indexed by names.
|
JRExpression |
getParametersMapExpression()
Returns the parameters map expression.
|
protected JRDesignCrosstabRowGroup |
getRowGroup(int rowGroupIndex) |
Map<String,Integer> |
getRowGroupIndicesMap() |
JRCrosstabRowGroup[] |
getRowGroups()
Returns the row groups of the crosstab.
|
List<JRCrosstabRowGroup> |
getRowGroupsList() |
RunDirectionEnum |
getRunDirectionValue()
Retrieves the run direction of this crosstab
|
CrosstabColumnCell |
getTitleCell()
Returns the title cell, which renders once at the beginning of the crosstab.
|
static String |
getTotalVariableName(JRCrosstabMeasure measure,
JRCrosstabRowGroup rowGroup,
JRCrosstabColumnGroup colGroup) |
JRVariable[] |
getVariables()
Returns the list of variables created for this crosstab.
|
Map<String,JRVariable> |
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,
String valueClassName) |
void |
preprocess()
Performs all the calculations required for report compilation.
|
JRCrosstabCell |
removeCell(JRCrosstabCell cell)
Removes a data cell.
|
JRCrosstabCell |
removeCell(String rowTotalGroup,
String columnTotalGroup)
Removes a data cell.
|
protected void |
removeColGroupVars(JRCrosstabColumnGroup colGroup) |
JRCrosstabColumnGroup |
removeColumnGroup(JRCrosstabColumnGroup group)
Removes a column group.
|
JRCrosstabColumnGroup |
removeColumnGroup(String groupName)
Removes a column group.
|
JRCrosstabMeasure |
removeMeasure(JRCrosstabMeasure measure)
Removes a measure.
|
JRCrosstabMeasure |
removeMeasure(String measureName)
Removes a measure.
|
protected void |
removeMeasureVars(JRDesignCrosstabMeasure measure) |
JRCrosstabParameter |
removeParameter(JRCrosstabParameter parameter)
Removes a parameter.
|
JRCrosstabParameter |
removeParameter(String parameterName)
Removes a parameter.
|
JRCrosstabRowGroup |
removeRowGroup(JRCrosstabRowGroup group)
Removes a row group.
|
JRCrosstabRowGroup |
removeRowGroup(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 <T> void |
setGroupVariablesClass(List<T> groups) |
void |
setHeaderCell(JRDesignCellContents headerCell)
Sets the crosstab header cell (this cell will be rendered at the upper-left corder of the crosstab).
|
void |
setHorizontalPosition(HorizontalPosition horizontalPosition)
Sets the position of the crosstab within its element box.
|
void |
setIgnoreWidth(boolean ignoreWidth)
Set the ignore width crosstab flag.
|
void |
setIgnoreWidth(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(RunDirectionEnum runDirectionValue)
Sets the run direction of the crosstab.
|
void |
setTitleCell(DesignCrosstabColumnCell titleCell) |
protected void |
setTitleSize(int rowHeadersWidth) |
protected void |
setTotalVarClass(JRCrosstabMeasure measure,
JRCrosstabRowGroup rowGroup,
JRCrosstabColumnGroup colGroup,
String valueClassName) |
void |
setWhenNoDataCell(JRDesignCellContents whenNoDataCell)
Sets the "No data" cell.
|
protected void |
setWhenNoDataCellSize() |
void |
visit(JRVisitor visitor) |
addPropertyExpression, getPropertyExpressions, getPropertyExpressionsList, removePropertyExpression, removePropertyExpression, setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setStyle, setStyleNameReference, setUUID, setYclone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getStretchTypeValue, getStyle, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setXequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setXgetBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencegetParentProperties, getPropertiesMap, hasPropertiesgetUUIDpublic static final String EXCEPTION_MESSAGE_KEY_COLUMN_GROUP_DOES_NOT_EXIST
public static final String EXCEPTION_MESSAGE_KEY_DUPLICATE_CELL
public static final String EXCEPTION_MESSAGE_KEY_DUPLICATE_GROUP_OR_MEASURE
public static final String EXCEPTION_MESSAGE_KEY_DUPLICATE_PARAMETER
public static final String EXCEPTION_MESSAGE_KEY_ROW_GROUP_DOES_NOT_EXIST
public static final String PROPERTY_COLUMN_BREAK_OFFSET
public static final String PROPERTY_DATASET
public static final String PROPERTY_TITLE_CELL
public static final String PROPERTY_HEADER_CELL
public static final String PROPERTY_PARAMETERS_MAP_EXPRESSION
public static final String PROPERTY_REPEAT_COLUMN_HEADERS
public static final String PROPERTY_REPEAT_ROW_HEADERS
public static final String PROPERTY_WHEN_NO_DATA_CELL
public static final String PROPERTY_CELLS
public static final String PROPERTY_ROW_GROUPS
public static final String PROPERTY_COLUMN_GROUPS
public static final String PROPERTY_MEASURES
public static final String PROPERTY_PARAMETERS
public static final String PROPERTY_IGNORE_WIDTH
protected List<JRCrosstabParameter> parametersList
protected Map<String,JRCrosstabParameter> parametersMap
protected Map<String,JRVariable> variablesList
protected JRExpression parametersMapExpression
protected JRDesignCrosstabDataset dataset
protected List<JRCrosstabRowGroup> rowGroups
protected List<JRCrosstabColumnGroup> columnGroups
protected List<JRCrosstabMeasure> measures
protected int columnBreakOffset
protected boolean repeatColumnHeaders
protected boolean repeatRowHeaders
protected RunDirectionEnum runDirectionValue
protected HorizontalPosition horizontalPosition
protected List<JRCrosstabCell> cellsList
protected Map<Pair<String,String>,JRCrosstabCell> cellsMap
protected JRDesignCrosstabCell[][] crossCells
protected JRDesignCellContents whenNoDataCell
protected DesignCrosstabColumnCell titleCell
protected JRDesignCellContents headerCell
protected Boolean ignoreWidth
protected JRLineBox lineBox
public JRDesignCrosstab(JRDefaultStyleProvider defaultStyleProvider)
defaultStyleProvider - default style providerpublic JRDesignCrosstab()
public int getId()
getId in interface JRCrosstabpublic JRCrosstabDataset getDataset()
JRCrosstabgetDataset in interface JRCrosstabpublic JRDesignCrosstabDataset getDesignDataset()
public JRCrosstabRowGroup[] getRowGroups()
JRCrosstabgetRowGroups in interface JRCrosstabpublic JRCrosstabColumnGroup[] getColumnGroups()
JRCrosstabgetColumnGroups in interface JRCrosstabpublic JRCrosstabMeasure[] getMeasures()
JRCrosstabgetMeasures in interface JRCrosstabpublic void collectExpressions(JRExpressionCollector collector)
collectExpressions in interface JRElementpublic void visit(JRVisitor visitor)
visit in interface JRVisitablepublic 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 groupJRExceptionJRCrosstab.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 - positionJRExceptionJRCrosstab.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 groupJRExceptionJRCrosstab.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 groupJRExceptionJRCrosstab.getColumnGroups()protected void addColGroupVars(JRDesignCrosstabColumnGroup colGroup)
public void addMeasure(JRDesignCrosstabMeasure measure) throws JRException
measure - the measureJRExceptionJRCrosstab.getMeasures()public void addMeasure(int index,
JRDesignCrosstabMeasure measure)
throws JRException
measure - the measureJRExceptionJRCrosstab.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 String getTotalVariableName(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup)
public JRCrosstabRowGroup removeRowGroup(String groupName)
groupName - the group nameprotected void removeRowGroupVars(JRCrosstabRowGroup rowGroup)
public JRCrosstabRowGroup removeRowGroup(JRCrosstabRowGroup group)
group - the group to be removedpublic JRCrosstabColumnGroup removeColumnGroup(String groupName)
groupName - the group nameprotected void removeColGroupVars(JRCrosstabColumnGroup colGroup)
public JRCrosstabColumnGroup removeColumnGroup(JRCrosstabColumnGroup group)
group - the grouppublic JRCrosstabMeasure removeMeasure(String measureName)
measureName - the measure nameprotected void removeMeasureVars(JRDesignCrosstabMeasure measure)
public JRCrosstabMeasure removeMeasure(JRCrosstabMeasure measure)
measure - the measurepublic boolean isRepeatColumnHeaders()
JRCrosstabisRepeatColumnHeaders in interface JRCrosstabpublic void setRepeatColumnHeaders(boolean repeatColumnHeaders)
repeatColumnHeaders - whether to repeat the column headers on row breaksJRCrosstab.isRepeatColumnHeaders()public boolean isRepeatRowHeaders()
JRCrosstabisRepeatRowHeaders in interface JRCrosstabpublic void setRepeatRowHeaders(boolean repeatRowHeaders)
repeatRowHeaders - whether to repeat the row headers on column breaksJRCrosstab.isRepeatRowHeaders()public JRCrosstabCell[][] getCells()
JRCrosstabA 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 JRCrosstabpublic List<JRCrosstabCell> getCellsList()
addCell(JRDesignCrosstabCell)public Map<Pair<String,String>,JRCrosstabCell> getCellsMap()
pairs.JRCrosstabCell.getRowTotalGroup(),
JRCrosstabCell.getColumnTotalGroup()public void addCell(JRDesignCrosstabCell cell) throws JRException
cell - the cellJRExceptionJRCrosstab.getCells()public JRCrosstabCell removeCell(String rowTotalGroup, String columnTotalGroup)
rowTotalGroup - the cell's total row groupcolumnTotalGroup - the cell's total column grouppublic JRCrosstabCell removeCell(JRCrosstabCell cell)
cell - the cell to be removedpublic JRCrosstabParameter[] getParameters()
JRCrosstabCrosstabs 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 JRCrosstabpublic List<JRCrosstabParameter> getParametersList()
public Map<String,JRCrosstabParameter> getParametersMap()
public JRExpression getParametersMapExpression()
JRCrosstabThe 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 JRCrosstabpublic void addParameter(JRCrosstabParameter parameter) throws JRException
parameter - the parameterJRExceptionJRCrosstab.getMeasures()public void addParameter(int index,
JRCrosstabParameter parameter)
throws JRException
parameter - the parameterJRExceptionJRCrosstab.getMeasures()public JRCrosstabParameter removeParameter(String parameterName)
parameterName - the name of the parameter to be removedpublic JRCrosstabParameter removeParameter(JRCrosstabParameter parameter)
parameter - the parameter to be removedpublic void setParametersMapExpression(JRExpression expression)
expression - the parameters map expressionJRCrosstab.getParametersMapExpression()public Map<String,JRVariable> getVariablesMap()
public JRVariable[] getVariables()
getVariables in interface JRCrosstabJRCrosstabGroup.getVariable(),
JRCrosstabMeasure.getVariable(),
JRCrosstab.VARIABLE_ROW_COUNT,
JRCrosstab.VARIABLE_COLUMN_COUNTpublic int getColumnBreakOffset()
JRCrosstabWhen 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 JRCrosstabpublic void setColumnBreakOffset(int columnBreakOffset)
columnBreakOffset - the offsetJRCrosstab.getColumnBreakOffset()public void preprocess()
protected <T> void setGroupVariablesClass(List<T> 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(int rowHeadersWidth)
protected void setTitleSize(int rowHeadersWidth)
public JRCellContents getWhenNoDataCell()
JRCrosstabIf 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 JRCrosstabpublic void setWhenNoDataCell(JRDesignCellContents whenNoDataCell)
whenNoDataCell - the cellJRCrosstab.getWhenNoDataCell()public JRElement getElementByKey(String elementKey)
JRCrosstabgetElementByKey in interface JRCrosstabelementKey - the element keypublic ModeEnum getModeValue()
JRCommonElementgetModeValue in interface JRCommonElementgetModeValue in class JRBaseElementpublic CrosstabColumnCell getTitleCell()
JRCrosstabgetTitleCell in interface JRCrosstabpublic void setTitleCell(DesignCrosstabColumnCell titleCell)
public JRCellContents getHeaderCell()
JRCrosstabgetHeaderCell in interface JRCrosstabpublic void setHeaderCell(JRDesignCellContents headerCell)
headerCell - the cellJRCrosstab.getHeaderCell()protected void measureClassChanged(JRDesignCrosstabMeasure measure, String valueClassName)
protected void setTotalVarClass(JRCrosstabMeasure measure, JRCrosstabRowGroup rowGroup, JRCrosstabColumnGroup colGroup, String valueClassName)
public RunDirectionEnum getRunDirectionValue()
JRCrosstabgetRunDirectionValue in interface JRCrosstabRunDirectionEnumpublic void setRunDirection(RunDirectionEnum runDirectionValue)
JRCrosstabCrosstabs can either be filled from left to right (the default) or from right to left (mainly for reports in RTL languages).
setRunDirection in interface JRCrosstabrunDirectionValue - a value representing one of the run direction constants in RunDirectionEnumpublic HorizontalPosition getHorizontalPosition()
JRCrosstabgetHorizontalPosition in interface JRCrosstabnull if no position is specifiedpublic void setHorizontalPosition(HorizontalPosition horizontalPosition)
JRCrosstabsetHorizontalPosition in interface JRCrosstabhorizontalPosition - the crosstab position,
if null the default position is appliedprotected void setCellOrigin(JRCellContents cell, JRCrosstabOrigin origin)
protected void setCellOrigin(JRDesignCellContents cell, JRCrosstabOrigin origin)
protected void setParent(JRDesignCrosstabGroup group)
public Object clone()
clone in interface JRCloneableclone in class JRDesignElementpublic List<JRCrosstabRowGroup> getRowGroupsList()
public List<JRCrosstabColumnGroup> getColumnGroupsList()
public List<JRCrosstabMeasure> getMesuresList()
public Boolean getIgnoreWidth()
JRCrosstabgetIgnoreWidth in interface JRCrosstabnull is the crosstab
does not specify a flag valueJRCrosstab.setIgnoreWidth(Boolean)public void setIgnoreWidth(Boolean ignoreWidth)
JRCrosstabThis 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 and the
JRParameter.IS_IGNORE_PAGINATION parameter.
setIgnoreWidth in interface JRCrosstabignoreWidth - whether the element width is to be ignored by the crosstab,
or null if the default setting is to be usedJRCrosstab.PROPERTY_IGNORE_WIDTHpublic void setIgnoreWidth(boolean ignoreWidth)
JRCrosstabsetIgnoreWidth in interface JRCrosstabJRCrosstab.setIgnoreWidth(Boolean)public Color getDefaultLineColor()
getDefaultLineColor in interface JRBoxContainerpublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerCopyright © 2017. All rights reserved.