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 thepentag. The attributes for specifying the border style for each side of the box are grouped intotopPen,leftPen,bottomPen, andrightPentag. These can be used for overriding the border style specified by thepenelement 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 thepaddingattribute (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 JRLineBoxclone(JRBoxContainer boxContainer)voidcopyBottomPen(JRBoxPen bottomPen)voidcopyLeftPen(JRBoxPen leftPen)voidcopyPen(JRBoxPen pen)voidcopyRightPen(JRBoxPen rightPen)voidcopyTopPen(JRBoxPen topPen)java.lang.IntegergetBottomPadding()JRBoxPengetBottomPen()Gets the pen properties for the bottom border.JRBoxContainergetBoxContainer()java.lang.IntegergetLeftPadding()JRBoxPengetLeftPen()Gets the pen properties for the left border.java.lang.IntegergetOwnBottomPadding()java.lang.IntegergetOwnLeftPadding()java.lang.IntegergetOwnPadding()java.lang.IntegergetOwnRightPadding()java.lang.IntegergetOwnTopPadding()java.lang.IntegergetPadding()Gets the default padding in pixels (can be overwritten by individual settings).JRBoxPengetPen()Gets the pen properties for the border.java.lang.IntegergetRightPadding()JRBoxPengetRightPen()Gets the pen properties for the right border.java.lang.IntegergetTopPadding()JRBoxPengetTopPen()Gets the pen properties for the top border.voidpopulateStyle()voidsetBottomPadding(java.lang.Integer padding)voidsetLeftPadding(java.lang.Integer padding)voidsetPadding(java.lang.Integer padding)Sets the default padding in pixels (can be overwritten by individual settings).voidsetRightPadding(java.lang.Integer padding)voidsetTopPadding(java.lang.Integer padding)-
Methods inherited from interface net.sf.jasperreports.engine.JRPenContainer
getDefaultLineColor, getDefaultLineWidth
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, 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
java.lang.Integer getPadding()
Gets the default padding in pixels (can be overwritten by individual settings).
-
getOwnPadding
java.lang.Integer getOwnPadding()
-
setPadding
void setPadding(java.lang.Integer padding)
Sets the default padding in pixels (can be overwritten by individual settings).
-
getTopPadding
java.lang.Integer getTopPadding()
-
getOwnTopPadding
java.lang.Integer getOwnTopPadding()
-
setTopPadding
void setTopPadding(java.lang.Integer padding)
-
getLeftPadding
java.lang.Integer getLeftPadding()
-
getOwnLeftPadding
java.lang.Integer getOwnLeftPadding()
-
setLeftPadding
void setLeftPadding(java.lang.Integer padding)
-
getBottomPadding
java.lang.Integer getBottomPadding()
-
getOwnBottomPadding
java.lang.Integer getOwnBottomPadding()
-
setBottomPadding
void setBottomPadding(java.lang.Integer padding)
-
getRightPadding
java.lang.Integer getRightPadding()
-
getOwnRightPadding
java.lang.Integer getOwnRightPadding()
-
setRightPadding
void setRightPadding(java.lang.Integer padding)
-
-