|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.base.JRBaseLineBox
public class JRBaseLineBox
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.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
JRBaseLineBox(JRBoxContainer boxContainer)
|
|
| Method Summary | |
|---|---|
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. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public JRBaseLineBox(JRBoxContainer boxContainer)
| Method Detail |
|---|
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerpublic JRStyle getStyle()
JRStyleContainer
getStyle in interface JRStyleContainerpublic String getStyleNameReference()
JRStyleContainertemplates 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 JRStyleContainerpublic JRBoxContainer getBoxContainer()
getBoxContainer in interface JRLineBoxpublic Float getDefaultLineWidth()
getDefaultLineWidth in interface JRPenContainerpublic Color getDefaultLineColor()
getDefaultLineColor in interface JRPenContainerpublic JRBoxPen getPen()
JRLineBox
getPen in interface JRLineBoxpublic void copyPen(JRBoxPen pen)
copyPen in interface JRLineBoxpublic JRBoxPen getTopPen()
JRLineBox
getTopPen in interface JRLineBoxpublic void copyTopPen(JRBoxPen topPen)
copyTopPen in interface JRLineBoxpublic JRBoxPen getLeftPen()
JRLineBox
getLeftPen in interface JRLineBoxpublic void copyLeftPen(JRBoxPen leftPen)
copyLeftPen in interface JRLineBoxpublic JRBoxPen getBottomPen()
JRLineBox
getBottomPen in interface JRLineBoxpublic void copyBottomPen(JRBoxPen bottomPen)
copyBottomPen in interface JRLineBoxpublic JRBoxPen getRightPen()
JRLineBox
getRightPen in interface JRLineBoxpublic void copyRightPen(JRBoxPen rightPen)
copyRightPen in interface JRLineBoxpublic Integer getPadding()
JRLineBox
getPadding in interface JRLineBoxpublic Integer getOwnPadding()
getOwnPadding in interface JRLineBoxpublic void setPadding(int padding)
JRLineBox
setPadding in interface JRLineBoxpublic void setPadding(Integer padding)
setPadding in interface JRLineBoxpublic Integer getTopPadding()
getTopPadding in interface JRLineBoxpublic Integer getOwnTopPadding()
getOwnTopPadding in interface JRLineBoxpublic void setTopPadding(int topPadding)
setTopPadding in interface JRLineBoxpublic void setTopPadding(Integer topPadding)
setTopPadding in interface JRLineBoxpublic Integer getLeftPadding()
getLeftPadding in interface JRLineBoxpublic Integer getOwnLeftPadding()
getOwnLeftPadding in interface JRLineBoxpublic void setLeftPadding(int leftPadding)
setLeftPadding in interface JRLineBoxpublic void setLeftPadding(Integer leftPadding)
setLeftPadding in interface JRLineBoxpublic Integer getBottomPadding()
getBottomPadding in interface JRLineBoxpublic Integer getOwnBottomPadding()
getOwnBottomPadding in interface JRLineBoxpublic void setBottomPadding(int bottomPadding)
setBottomPadding in interface JRLineBoxpublic void setBottomPadding(Integer bottomPadding)
setBottomPadding in interface JRLineBoxpublic Integer getRightPadding()
getRightPadding in interface JRLineBoxpublic Integer getOwnRightPadding()
getOwnRightPadding in interface JRLineBoxpublic void setRightPadding(int rightPadding)
setRightPadding in interface JRLineBoxpublic void setRightPadding(Integer rightPadding)
setRightPadding in interface JRLineBoxpublic JRLineBox clone(JRBoxContainer boxContainer)
clone in interface JRLineBoxpublic JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport in interface JRChangeEventsSupportpublic int getHashCode()
DeduplicableDeduplicable.isIdentical(Object),
i.e. if two objects are identical they should have the same hash code.
getHashCode in interface Deduplicablepublic boolean isIdentical(Object object)
Deduplicable
isIdentical in interface Deduplicableobject - the object to compare with this instance
true if the two objects are identical and can be deduplicated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||