Package net.sf.jasperreports.engine.fill
Class CachingLineBox
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.CachingLineBox
-
- All Implemented Interfaces:
JRLineBox,JRPenContainer,JRStyleContainer
public class CachingLineBox extends Object implements JRLineBox
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description CachingLineBox(JRLineBox base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JRLineBoxclone(JRBoxContainer boxContainer)voidcopyBottomPen(JRBoxPen bottomPen)voidcopyLeftPen(JRBoxPen leftPen)voidcopyPen(JRBoxPen pen)voidcopyRightPen(JRBoxPen rightPen)voidcopyTopPen(JRBoxPen topPen)IntegergetBottomPadding()JRBoxPengetBottomPen()Gets the pen properties for the bottom border.JRBoxContainergetBoxContainer()ColorgetDefaultLineColor()FloatgetDefaultLineWidth()JRDefaultStyleProvidergetDefaultStyleProvider()IntegergetLeftPadding()JRBoxPengetLeftPen()Gets the pen properties for the left border.IntegergetOwnBottomPadding()IntegergetOwnLeftPadding()IntegergetOwnPadding()IntegergetOwnRightPadding()IntegergetOwnTopPadding()IntegergetPadding()Gets the default padding in pixels (can be overwritten by individual settings).JRBoxPengetPen()Gets the pen properties for the border.IntegergetRightPadding()JRBoxPengetRightPen()Gets the pen properties for the right border.JRStylegetStyle()Returns this object's style.StringgetStyleNameReference()Returns the name of an external style which is to be used by this object.IntegergetTopPadding()JRBoxPengetTopPen()Gets the pen properties for the top border.voidpopulateStyle()voidsetBottomPadding(Integer padding)voidsetLeftPadding(Integer padding)voidsetPadding(Integer padding)Sets the default padding in pixels (can be overwritten by individual settings).voidsetRightPadding(Integer padding)voidsetTopPadding(Integer padding)
-
-
-
Constructor Detail
-
CachingLineBox
public CachingLineBox(JRLineBox base)
-
-
Method Detail
-
getDefaultStyleProvider
public JRDefaultStyleProvider getDefaultStyleProvider()
- Specified by:
getDefaultStyleProviderin interfaceJRStyleContainer
-
getDefaultLineWidth
public Float getDefaultLineWidth()
- Specified by:
getDefaultLineWidthin interfaceJRPenContainer
-
getStyle
public JRStyle getStyle()
Description copied from interface:JRStyleContainerReturns this object's style.- Specified by:
getStylein interfaceJRStyleContainer- Returns:
- this object's style
-
getDefaultLineColor
public Color getDefaultLineColor()
- Specified by:
getDefaultLineColorin interfaceJRPenContainer
-
getStyleNameReference
public String getStyleNameReference()
Description copied from interface:JRStyleContainerReturns the name of an external style which is to be used by this object. External styles are defined intemplatesand are resolved at fill time. This attribute is only effective if no direct style (as returned bygetStyle()is specified for this object.- Specified by:
getStyleNameReferencein interfaceJRStyleContainer- Returns:
- the name of an external style
-
getBoxContainer
public JRBoxContainer getBoxContainer()
- Specified by:
getBoxContainerin interfaceJRLineBox
-
clone
public JRLineBox clone(JRBoxContainer boxContainer)
-
populateStyle
public void populateStyle()
- Specified by:
populateStylein interfaceJRLineBox
-
getPen
public JRBoxPen getPen()
Description copied from interface:JRLineBoxGets the pen properties for the border.
-
getTopPen
public JRBoxPen getTopPen()
Description copied from interface:JRLineBoxGets the pen properties for the top border.
-
copyTopPen
public void copyTopPen(JRBoxPen topPen)
- Specified by:
copyTopPenin interfaceJRLineBox
-
getLeftPen
public JRBoxPen getLeftPen()
Description copied from interface:JRLineBoxGets the pen properties for the left border.- Specified by:
getLeftPenin interfaceJRLineBox
-
copyLeftPen
public void copyLeftPen(JRBoxPen leftPen)
- Specified by:
copyLeftPenin interfaceJRLineBox
-
getBottomPen
public JRBoxPen getBottomPen()
Description copied from interface:JRLineBoxGets the pen properties for the bottom border.- Specified by:
getBottomPenin interfaceJRLineBox
-
copyBottomPen
public void copyBottomPen(JRBoxPen bottomPen)
- Specified by:
copyBottomPenin interfaceJRLineBox
-
getRightPen
public JRBoxPen getRightPen()
Description copied from interface:JRLineBoxGets the pen properties for the right border.- Specified by:
getRightPenin interfaceJRLineBox
-
copyRightPen
public void copyRightPen(JRBoxPen rightPen)
- Specified by:
copyRightPenin interfaceJRLineBox
-
getPadding
public Integer getPadding()
Description copied from interface:JRLineBoxGets the default padding in pixels (can be overwritten by individual settings).- Specified by:
getPaddingin interfaceJRLineBox
-
getOwnPadding
public Integer getOwnPadding()
- Specified by:
getOwnPaddingin interfaceJRLineBox
-
setPadding
public void setPadding(Integer padding)
Description copied from interface:JRLineBoxSets the default padding in pixels (can be overwritten by individual settings).- Specified by:
setPaddingin interfaceJRLineBox
-
getTopPadding
public Integer getTopPadding()
- Specified by:
getTopPaddingin interfaceJRLineBox
-
getOwnTopPadding
public Integer getOwnTopPadding()
- Specified by:
getOwnTopPaddingin interfaceJRLineBox
-
setTopPadding
public void setTopPadding(Integer padding)
- Specified by:
setTopPaddingin interfaceJRLineBox
-
getLeftPadding
public Integer getLeftPadding()
- Specified by:
getLeftPaddingin interfaceJRLineBox
-
getOwnLeftPadding
public Integer getOwnLeftPadding()
- Specified by:
getOwnLeftPaddingin interfaceJRLineBox
-
setLeftPadding
public void setLeftPadding(Integer padding)
- Specified by:
setLeftPaddingin interfaceJRLineBox
-
getBottomPadding
public Integer getBottomPadding()
- Specified by:
getBottomPaddingin interfaceJRLineBox
-
getOwnBottomPadding
public Integer getOwnBottomPadding()
- Specified by:
getOwnBottomPaddingin interfaceJRLineBox
-
setBottomPadding
public void setBottomPadding(Integer padding)
- Specified by:
setBottomPaddingin interfaceJRLineBox
-
getRightPadding
public Integer getRightPadding()
- Specified by:
getRightPaddingin interfaceJRLineBox
-
getOwnRightPadding
public Integer getOwnRightPadding()
- Specified by:
getOwnRightPaddingin interfaceJRLineBox
-
setRightPadding
public void setRightPadding(Integer padding)
- Specified by:
setRightPaddingin interfaceJRLineBox
-
-