Package net.sf.jasperreports.engine
Interface JRLineBox
-
- All Superinterfaces:
JRPenContainer
,JRStyleContainer
- All Known Implementing Classes:
CachingLineBox
,JRBaseLineBox
public interface JRLineBox extends JRPenContainer
This is useful for drawing borders around text elements and images. Boxes can have borders and paddings, which can have different width and color on each side of the element. Text elements, images, and charts are considered "box elements" because one can surround them by a border that's customizable on each side. When defining the border around such a box element, the user can control the width, style, and color of each of the four sides of the element, as well as the padding (the amount of blank space to reserve between the border of the element and its actual content).These properties are grouped into the<box>
tag.Border Line Settings
Border line settings such as line width, line style and the line color can be accessed using thegetPen()
method and are grouped into thepen
tag. The attributes for specifying the border style for each side of the box are grouped intotopPen
,leftPen
,bottomPen
, andrightPen
tag. These can be used for overriding the border style specified by thepen
element mentioned previously. There is a getter method for each side pen element.Box Padding
The amount of space to be left blank as margins within the bounds of a box element can be controlled using either thepadding
attribute (providing the same amount of padding on all four sides) or the individual attributes for each side:topPadding
,leftPadding
,bottomPadding
, andrightPadding
. Each padding attribute is accessed with a corresponding getter method.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
JRPen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JRLineBox
clone(JRBoxContainer boxContainer)
void
copyBottomPen(JRBoxPen bottomPen)
void
copyLeftPen(JRBoxPen leftPen)
void
copyPen(JRBoxPen pen)
void
copyRightPen(JRBoxPen rightPen)
void
copyTopPen(JRBoxPen topPen)
Integer
getBottomPadding()
JRBoxPen
getBottomPen()
Gets the pen properties for the bottom border.JRBoxContainer
getBoxContainer()
Integer
getLeftPadding()
JRBoxPen
getLeftPen()
Gets the pen properties for the left border.Integer
getOwnBottomPadding()
Integer
getOwnLeftPadding()
Integer
getOwnPadding()
Integer
getOwnRightPadding()
Integer
getOwnTopPadding()
Integer
getPadding()
Gets the default padding in pixels (can be overwritten by individual settings).JRBoxPen
getPen()
Gets the pen properties for the border.Integer
getRightPadding()
JRBoxPen
getRightPen()
Gets the pen properties for the right border.Integer
getTopPadding()
JRBoxPen
getTopPen()
Gets the pen properties for the top border.void
populateStyle()
void
setBottomPadding(Integer padding)
void
setLeftPadding(Integer padding)
void
setPadding(Integer padding)
Sets the default padding in pixels (can be overwritten by individual settings).void
setRightPadding(Integer padding)
void
setTopPadding(Integer padding)
-
Methods inherited from interface net.sf.jasperreports.engine.JRPenContainer
getDefaultLineColor, getDefaultLineWidth
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
-
-
-
Method Detail
-
getBoxContainer
JRBoxContainer getBoxContainer()
-
clone
JRLineBox clone(JRBoxContainer boxContainer)
-
populateStyle
void populateStyle()
-
getPen
JRBoxPen getPen()
Gets the pen properties for the border.
-
copyPen
void copyPen(JRBoxPen pen)
-
getTopPen
JRBoxPen getTopPen()
Gets the pen properties for the top border.
-
copyTopPen
void copyTopPen(JRBoxPen topPen)
-
getLeftPen
JRBoxPen getLeftPen()
Gets the pen properties for the left border.
-
copyLeftPen
void copyLeftPen(JRBoxPen leftPen)
-
getBottomPen
JRBoxPen getBottomPen()
Gets the pen properties for the bottom border.
-
copyBottomPen
void copyBottomPen(JRBoxPen bottomPen)
-
getRightPen
JRBoxPen getRightPen()
Gets the pen properties for the right border.
-
copyRightPen
void copyRightPen(JRBoxPen rightPen)
-
getPadding
Integer getPadding()
Gets the default padding in pixels (can be overwritten by individual settings).
-
getOwnPadding
Integer getOwnPadding()
-
setPadding
void setPadding(Integer padding)
Sets the default padding in pixels (can be overwritten by individual settings).
-
getTopPadding
Integer getTopPadding()
-
getOwnTopPadding
Integer getOwnTopPadding()
-
setTopPadding
void setTopPadding(Integer padding)
-
getLeftPadding
Integer getLeftPadding()
-
getOwnLeftPadding
Integer getOwnLeftPadding()
-
setLeftPadding
void setLeftPadding(Integer padding)
-
getBottomPadding
Integer getBottomPadding()
-
getOwnBottomPadding
Integer getOwnBottomPadding()
-
setBottomPadding
void setBottomPadding(Integer padding)
-
getRightPadding
Integer getRightPadding()
-
getOwnRightPadding
Integer getOwnRightPadding()
-
setRightPadding
void setRightPadding(Integer padding)
-
-