public class JRBaseLineBox extends Object implements JRLineBox, Serializable, Cloneable, JRChangeEventsSupport, Deduplicable
Modifier and Type | Field and Description |
---|---|
protected Integer |
bottomPadding |
protected JRBoxPen |
bottomPen |
protected JRBoxContainer |
boxContainer |
protected Integer |
leftPadding |
protected JRBoxPen |
leftPen |
protected Integer |
padding |
protected JRBoxPen |
pen |
static String |
PROPERTY_BOTTOM_PADDING |
static String |
PROPERTY_LEFT_PADDING |
static String |
PROPERTY_PADDING |
static String |
PROPERTY_RIGHT_PADDING |
static String |
PROPERTY_TOP_PADDING |
protected Integer |
rightPadding |
protected JRBoxPen |
rightPen |
protected Integer |
topPadding |
protected JRBoxPen |
topPen |
Constructor and Description |
---|
JRBaseLineBox(JRBoxContainer boxContainer) |
Modifier and Type | Method and 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() |
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance.
|
int |
getHashCode()
Returns a hash code to be used for the deduplicate map.
|
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.
|
protected StyleResolver |
getStyleResolver() |
Integer |
getTopPadding() |
JRBoxPen |
getTopPen()
Gets the pen properties for the top border.
|
boolean |
isIdentical(Object object)
Determines if this instance is identical to another object.
|
void |
setBottomPadding(int bottomPadding) |
void |
setBottomPadding(Integer bottomPadding) |
void |
setLeftPadding(int leftPadding) |
void |
setLeftPadding(Integer leftPadding) |
void |
setPadding(int padding)
Sets the default padding in pixels (can be overwritten by individual settings).
|
void |
setPadding(Integer padding) |
void |
setRightPadding(int rightPadding) |
void |
setRightPadding(Integer rightPadding) |
void |
setTopPadding(int topPadding) |
void |
setTopPadding(Integer topPadding) |
public static final String PROPERTY_PADDING
public static final String PROPERTY_TOP_PADDING
public static final String PROPERTY_LEFT_PADDING
public static final String PROPERTY_BOTTOM_PADDING
public static final String PROPERTY_RIGHT_PADDING
protected JRBoxContainer boxContainer
protected JRBoxPen pen
protected JRBoxPen topPen
protected JRBoxPen leftPen
protected JRBoxPen bottomPen
protected JRBoxPen rightPen
protected Integer padding
protected Integer topPadding
protected Integer leftPadding
protected Integer bottomPadding
protected Integer rightPadding
public JRBaseLineBox(JRBoxContainer boxContainer)
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider
in interface JRStyleContainer
protected StyleResolver getStyleResolver()
public JRStyle getStyle()
JRStyleContainer
getStyle
in interface JRStyleContainer
public String getStyleNameReference()
JRStyleContainer
templates
and are resolved
at fill time.
This attribute is only effective if no direct style (as returned by getStyle()
is specified for this object.getStyleNameReference
in interface JRStyleContainer
public JRBoxContainer getBoxContainer()
getBoxContainer
in interface JRLineBox
public Float getDefaultLineWidth()
getDefaultLineWidth
in interface JRPenContainer
public Color getDefaultLineColor()
getDefaultLineColor
in interface JRPenContainer
public JRBoxPen getPen()
JRLineBox
public JRBoxPen getTopPen()
JRLineBox
public void copyTopPen(JRBoxPen topPen)
copyTopPen
in interface JRLineBox
public JRBoxPen getLeftPen()
JRLineBox
getLeftPen
in interface JRLineBox
public void copyLeftPen(JRBoxPen leftPen)
copyLeftPen
in interface JRLineBox
public JRBoxPen getBottomPen()
JRLineBox
getBottomPen
in interface JRLineBox
public void copyBottomPen(JRBoxPen bottomPen)
copyBottomPen
in interface JRLineBox
public JRBoxPen getRightPen()
JRLineBox
getRightPen
in interface JRLineBox
public void copyRightPen(JRBoxPen rightPen)
copyRightPen
in interface JRLineBox
public Integer getPadding()
JRLineBox
getPadding
in interface JRLineBox
public Integer getOwnPadding()
getOwnPadding
in interface JRLineBox
public void setPadding(int padding)
JRLineBox
setPadding
in interface JRLineBox
public void setPadding(Integer padding)
setPadding
in interface JRLineBox
public Integer getTopPadding()
getTopPadding
in interface JRLineBox
public Integer getOwnTopPadding()
getOwnTopPadding
in interface JRLineBox
public void setTopPadding(int topPadding)
setTopPadding
in interface JRLineBox
public void setTopPadding(Integer topPadding)
setTopPadding
in interface JRLineBox
public Integer getLeftPadding()
getLeftPadding
in interface JRLineBox
public Integer getOwnLeftPadding()
getOwnLeftPadding
in interface JRLineBox
public void setLeftPadding(int leftPadding)
setLeftPadding
in interface JRLineBox
public void setLeftPadding(Integer leftPadding)
setLeftPadding
in interface JRLineBox
public Integer getBottomPadding()
getBottomPadding
in interface JRLineBox
public Integer getOwnBottomPadding()
getOwnBottomPadding
in interface JRLineBox
public void setBottomPadding(int bottomPadding)
setBottomPadding
in interface JRLineBox
public void setBottomPadding(Integer bottomPadding)
setBottomPadding
in interface JRLineBox
public Integer getRightPadding()
getRightPadding
in interface JRLineBox
public Integer getOwnRightPadding()
getOwnRightPadding
in interface JRLineBox
public void setRightPadding(int rightPadding)
setRightPadding
in interface JRLineBox
public void setRightPadding(Integer rightPadding)
setRightPadding
in interface JRLineBox
public JRLineBox clone(JRBoxContainer boxContainer)
public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport
in interface JRChangeEventsSupport
public int getHashCode()
Deduplicable
Deduplicable.isIdentical(Object)
,
i.e. if two objects are identical they should have the same hash code.getHashCode
in interface Deduplicable
public boolean isIdentical(Object object)
Deduplicable
isIdentical
in interface Deduplicable
object
- the object to compare with this instancetrue
if the two objects are identical and can be deduplicatedCopyright © 2017. All rights reserved.