Package net.sf.jasperreports.engine.base
Class JRBaseLineBox
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseLineBox
- All Implemented Interfaces:
Serializable,Cloneable,Deduplicable,JRChangeEventsSupport,JRLineBox,JRPenContainer,JRStyleContainer
public class JRBaseLineBox
extends Object
implements JRLineBox, Serializable, Cloneable, JRChangeEventsSupport, Deduplicable
This is useful for drawing borders around text elements and images. Boxes can have borders and paddings, which can
have different width and colour on each side of the element.
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Integerprotected JRBoxPenprotected JRBoxContainerprotected Integerprotected JRBoxPenprotected Integerprotected JRBoxPenstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Integerprotected JRBoxPenprotected Integerprotected JRBoxPen -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone(JRBoxContainer boxContainer) voidcopyBottomPen(JRBoxPen bottomPen) voidcopyLeftPen(JRBoxPen leftPen) voidvoidcopyRightPen(JRBoxPen rightPen) voidcopyTopPen(JRBoxPen topPen) Gets the pen properties for the bottom border.Returns the property change support object for this instance.intReturns a hash code to be used for the deduplicate map.Gets the pen properties for the left border.Gets the default padding in pixels (can be overwritten by individual settings).getPen()Gets the pen properties for the border.Gets the pen properties for the right border.getStyle()Returns this object's style.Returns the name of an external style which is to be used by this object.protected StyleResolverGets the pen properties for the top border.booleanisIdentical(Object object) Determines if this instance is identical to another object.voidvoidsetBottomPadding(Integer bottomPadding) voidsetLeftPadding(Integer leftPadding) voidsetPadding(Integer padding) Sets the default padding in pixels (can be overwritten by individual settings).voidsetRightPadding(Integer rightPadding) voidsetTopPadding(Integer topPadding) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getStyleName
-
Field Details
-
PROPERTY_PADDING
- See Also:
-
PROPERTY_TOP_PADDING
- See Also:
-
PROPERTY_LEFT_PADDING
- See Also:
-
PROPERTY_BOTTOM_PADDING
- See Also:
-
PROPERTY_RIGHT_PADDING
- See Also:
-
boxContainer
-
pen
-
topPen
-
leftPen
-
bottomPen
-
rightPen
-
padding
-
topPadding
-
leftPadding
-
bottomPadding
-
rightPadding
-
-
Constructor Details
-
JRBaseLineBox
-
-
Method Details
-
getDefaultStyleProvider
- Specified by:
getDefaultStyleProviderin interfaceJRStyleContainer
-
getStyleResolver
-
getStyle
Description copied from interface:JRStyleContainerReturns this object's style.- Specified by:
getStylein interfaceJRStyleContainer- Returns:
- this object's style
-
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
- Specified by:
getBoxContainerin interfaceJRLineBox
-
getDefaultLineWidth
- Specified by:
getDefaultLineWidthin interfaceJRPenContainer
-
getDefaultLineColor
- Specified by:
getDefaultLineColorin interfaceJRPenContainer
-
getPen
Description copied from interface:JRLineBoxGets the pen properties for the border. -
copyPen
-
getTopPen
Description copied from interface:JRLineBoxGets the pen properties for the top border. -
copyTopPen
- Specified by:
copyTopPenin interfaceJRLineBox
-
getLeftPen
Description copied from interface:JRLineBoxGets the pen properties for the left border.- Specified by:
getLeftPenin interfaceJRLineBox
-
copyLeftPen
- Specified by:
copyLeftPenin interfaceJRLineBox
-
getBottomPen
Description copied from interface:JRLineBoxGets the pen properties for the bottom border.- Specified by:
getBottomPenin interfaceJRLineBox
-
copyBottomPen
- Specified by:
copyBottomPenin interfaceJRLineBox
-
getRightPen
Description copied from interface:JRLineBoxGets the pen properties for the right border.- Specified by:
getRightPenin interfaceJRLineBox
-
copyRightPen
- Specified by:
copyRightPenin interfaceJRLineBox
-
getPadding
Description copied from interface:JRLineBoxGets the default padding in pixels (can be overwritten by individual settings).- Specified by:
getPaddingin interfaceJRLineBox
-
getOwnPadding
- Specified by:
getOwnPaddingin interfaceJRLineBox
-
setPadding
Description copied from interface:JRLineBoxSets the default padding in pixels (can be overwritten by individual settings).- Specified by:
setPaddingin interfaceJRLineBox
-
getTopPadding
- Specified by:
getTopPaddingin interfaceJRLineBox
-
getOwnTopPadding
- Specified by:
getOwnTopPaddingin interfaceJRLineBox
-
setTopPadding
- Specified by:
setTopPaddingin interfaceJRLineBox
-
getLeftPadding
- Specified by:
getLeftPaddingin interfaceJRLineBox
-
getOwnLeftPadding
- Specified by:
getOwnLeftPaddingin interfaceJRLineBox
-
setLeftPadding
- Specified by:
setLeftPaddingin interfaceJRLineBox
-
getBottomPadding
- Specified by:
getBottomPaddingin interfaceJRLineBox
-
getOwnBottomPadding
- Specified by:
getOwnBottomPaddingin interfaceJRLineBox
-
setBottomPadding
- Specified by:
setBottomPaddingin interfaceJRLineBox
-
getRightPadding
- Specified by:
getRightPaddingin interfaceJRLineBox
-
getOwnRightPadding
- Specified by:
getOwnRightPaddingin interfaceJRLineBox
-
setRightPadding
- Specified by:
setRightPaddingin interfaceJRLineBox
-
clone
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
getHashCode
public int getHashCode()Description copied from interface:DeduplicableReturns a hash code to be used for the deduplicate map. The returned hash code should be consitent wiwhDeduplicable.isIdentical(Object), i.e. if two objects are identical they should have the same hash code.- Specified by:
getHashCodein interfaceDeduplicable- Returns:
- deduplication hash code
-
isIdentical
Description copied from interface:DeduplicableDetermines if this instance is identical to another object.- Specified by:
isIdenticalin interfaceDeduplicable- Parameters:
object- the object to compare with this instance- Returns:
trueif the two objects are identical and can be deduplicated
-
populateStyle
public void populateStyle()- Specified by:
populateStylein interfaceJRLineBox
-