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 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()
Color
getDefaultLineColor()
Float
getDefaultLineWidth()
JRDefaultStyleProvider
getDefaultStyleProvider()
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.JRStyle
getStyle()
Returns this object's style.String
getStyleNameReference()
Returns the name of an external style which is to be used by this object.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getStyleName
-
-
-
-
Constructor Detail
-
CachingLineBox
public CachingLineBox(JRLineBox base)
-
-
Method Detail
-
getDefaultStyleProvider
public JRDefaultStyleProvider getDefaultStyleProvider()
- Specified by:
getDefaultStyleProvider
in interfaceJRStyleContainer
-
getDefaultLineWidth
public Float getDefaultLineWidth()
- Specified by:
getDefaultLineWidth
in interfaceJRPenContainer
-
getStyle
public JRStyle getStyle()
Description copied from interface:JRStyleContainer
Returns this object's style.- Specified by:
getStyle
in interfaceJRStyleContainer
- Returns:
- this object's style
-
getDefaultLineColor
public Color getDefaultLineColor()
- Specified by:
getDefaultLineColor
in interfaceJRPenContainer
-
getStyleNameReference
public String getStyleNameReference()
Description copied from interface:JRStyleContainer
Returns the name of an external style which is to be used by this object. External styles are defined intemplates
and are resolved at fill time. This attribute is only effective if no direct style (as returned bygetStyle()
is specified for this object.- Specified by:
getStyleNameReference
in interfaceJRStyleContainer
- Returns:
- the name of an external style
-
getBoxContainer
public JRBoxContainer getBoxContainer()
- Specified by:
getBoxContainer
in interfaceJRLineBox
-
clone
public JRLineBox clone(JRBoxContainer boxContainer)
-
populateStyle
public void populateStyle()
- Specified by:
populateStyle
in interfaceJRLineBox
-
getPen
public JRBoxPen getPen()
Description copied from interface:JRLineBox
Gets the pen properties for the border.
-
getTopPen
public JRBoxPen getTopPen()
Description copied from interface:JRLineBox
Gets the pen properties for the top border.
-
copyTopPen
public void copyTopPen(JRBoxPen topPen)
- Specified by:
copyTopPen
in interfaceJRLineBox
-
getLeftPen
public JRBoxPen getLeftPen()
Description copied from interface:JRLineBox
Gets the pen properties for the left border.- Specified by:
getLeftPen
in interfaceJRLineBox
-
copyLeftPen
public void copyLeftPen(JRBoxPen leftPen)
- Specified by:
copyLeftPen
in interfaceJRLineBox
-
getBottomPen
public JRBoxPen getBottomPen()
Description copied from interface:JRLineBox
Gets the pen properties for the bottom border.- Specified by:
getBottomPen
in interfaceJRLineBox
-
copyBottomPen
public void copyBottomPen(JRBoxPen bottomPen)
- Specified by:
copyBottomPen
in interfaceJRLineBox
-
getRightPen
public JRBoxPen getRightPen()
Description copied from interface:JRLineBox
Gets the pen properties for the right border.- Specified by:
getRightPen
in interfaceJRLineBox
-
copyRightPen
public void copyRightPen(JRBoxPen rightPen)
- Specified by:
copyRightPen
in interfaceJRLineBox
-
getPadding
public Integer getPadding()
Description copied from interface:JRLineBox
Gets the default padding in pixels (can be overwritten by individual settings).- Specified by:
getPadding
in interfaceJRLineBox
-
getOwnPadding
public Integer getOwnPadding()
- Specified by:
getOwnPadding
in interfaceJRLineBox
-
setPadding
public void setPadding(Integer padding)
Description copied from interface:JRLineBox
Sets the default padding in pixels (can be overwritten by individual settings).- Specified by:
setPadding
in interfaceJRLineBox
-
getTopPadding
public Integer getTopPadding()
- Specified by:
getTopPadding
in interfaceJRLineBox
-
getOwnTopPadding
public Integer getOwnTopPadding()
- Specified by:
getOwnTopPadding
in interfaceJRLineBox
-
setTopPadding
public void setTopPadding(Integer padding)
- Specified by:
setTopPadding
in interfaceJRLineBox
-
getLeftPadding
public Integer getLeftPadding()
- Specified by:
getLeftPadding
in interfaceJRLineBox
-
getOwnLeftPadding
public Integer getOwnLeftPadding()
- Specified by:
getOwnLeftPadding
in interfaceJRLineBox
-
setLeftPadding
public void setLeftPadding(Integer padding)
- Specified by:
setLeftPadding
in interfaceJRLineBox
-
getBottomPadding
public Integer getBottomPadding()
- Specified by:
getBottomPadding
in interfaceJRLineBox
-
getOwnBottomPadding
public Integer getOwnBottomPadding()
- Specified by:
getOwnBottomPadding
in interfaceJRLineBox
-
setBottomPadding
public void setBottomPadding(Integer padding)
- Specified by:
setBottomPadding
in interfaceJRLineBox
-
getRightPadding
public Integer getRightPadding()
- Specified by:
getRightPadding
in interfaceJRLineBox
-
getOwnRightPadding
public Integer getOwnRightPadding()
- Specified by:
getOwnRightPadding
in interfaceJRLineBox
-
setRightPadding
public void setRightPadding(Integer padding)
- Specified by:
setRightPadding
in interfaceJRLineBox
-
-