public interface JRFrame extends JRElement, JRElementGroup, JRBoxContainer
A frame is a report element that contains sub elements. It has a background, a border and it stretches to accommodate its content. It is usually helpful when a common background and/or common border must be put around a group of elements.
For the Graphics2D and PDF exporters, a frame is equivalent to a rectangle placed behind a group of elements. The HTML exporter creates sub-tables for frames and the XLS exporter includes the frame sub elements into the grid.
For elements inside a frame, the coordinates, positionType
and
stretchType
properties are relative to the frame instead of the band.
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_BORDER_SPLIT_TYPE
A property that provides the default border split type for frames.
|
static String |
PROPERTY_FRAME_WIDTH_STRETCH_DISABLED |
PROPERTY_ELEMENT_TEMPLATE_POPULATE_STYLE
Modifier and Type | Method and Description |
---|---|
BorderSplitType |
getBorderSplitType()
Determines how should the frames borders behave when the frame splits on two pages.
|
clone, collectExpressions, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
getBackcolor, getForecolor, getHeight, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
getDefaultStyleProvider, getStyle, getStyleNameReference
getParentProperties, getPropertiesMap, hasProperties
getUUID
getChildren, getElementByKey, getElementGroup, getElements
visit
clone
getDefaultLineColor, getLineBox
static final String PROPERTY_BORDER_SPLIT_TYPE
The property can be set at report and global/context levels.
The property value should be one of the names of the BorderSplitType
enum,
that is NoBorders or DrawBorders.
By default BorderSplitType.NO_BORDERS
is used.
getBorderSplitType()
,
Constant Field Valuesstatic final String PROPERTY_FRAME_WIDTH_STRETCH_DISABLED
BorderSplitType getBorderSplitType()
PROPERTY_BORDER_SPLIT_TYPE
,
JRDesignFrame.setBorderSplitType(BorderSplitType)
Copyright © 2023 Cloud Software Group, Inc.. All rights reserved.