|
||||||||||
| 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 java.lang.Integer |
bottomPadding
|
protected JRBoxPen |
bottomPen
|
protected JRBoxContainer |
boxContainer
|
protected java.lang.Integer |
leftPadding
|
protected JRBoxPen |
leftPen
|
protected java.lang.Integer |
padding
|
protected JRBoxPen |
pen
|
static java.lang.String |
PROPERTY_BOTTOM_PADDING
|
static java.lang.String |
PROPERTY_LEFT_PADDING
|
static java.lang.String |
PROPERTY_PADDING
|
static java.lang.String |
PROPERTY_RIGHT_PADDING
|
static java.lang.String |
PROPERTY_TOP_PADDING
|
protected java.lang.Integer |
rightPadding
|
protected JRBoxPen |
rightPen
|
protected java.lang.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)
|
java.lang.Integer |
getBottomPadding()
|
JRBoxPen |
getBottomPen()
Gets the pen properties for the bottom border. |
JRBoxContainer |
getBoxContainer()
|
java.awt.Color |
getDefaultLineColor()
|
java.lang.Float |
getDefaultLineWidth()
|
JRDefaultStyleProvider |
getDefaultStyleProvider()
|
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance. |
java.lang.Integer |
getLeftPadding()
|
JRBoxPen |
getLeftPen()
Gets the pen properties for the left border. |
java.lang.Integer |
getOwnBottomPadding()
|
java.lang.Integer |
getOwnLeftPadding()
|
java.lang.Integer |
getOwnPadding()
|
java.lang.Integer |
getOwnRightPadding()
|
java.lang.Integer |
getOwnTopPadding()
|
java.lang.Integer |
getPadding()
Gets the default padding in pixels (can be overwritten by individual settings). |
JRBoxPen |
getPen()
Gets the pen properties for the border. |
java.lang.Integer |
getRightPadding()
|
JRBoxPen |
getRightPen()
Gets the pen properties for the right border. |
JRStyle |
getStyle()
Returns this object's style. |
java.lang.String |
getStyleNameReference()
Returns the name of an external style which is to be used by this object. |
java.lang.Integer |
getTopPadding()
|
JRBoxPen |
getTopPen()
Gets the pen properties for the top border. |
void |
setBottomPadding(int bottomPadding)
|
void |
setBottomPadding(java.lang.Integer bottomPadding)
|
void |
setLeftPadding(int leftPadding)
|
void |
setLeftPadding(java.lang.Integer leftPadding)
|
void |
setPadding(int padding)
Sets the default padding in pixels (can be overwritten by individual settings). |
void |
setPadding(java.lang.Integer padding)
|
void |
setRightPadding(int rightPadding)
|
void |
setRightPadding(java.lang.Integer rightPadding)
|
void |
setTopPadding(int topPadding)
|
void |
setTopPadding(java.lang.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 java.lang.String PROPERTY_PADDING
public static final java.lang.String PROPERTY_TOP_PADDING
public static final java.lang.String PROPERTY_LEFT_PADDING
public static final java.lang.String PROPERTY_BOTTOM_PADDING
public static final java.lang.String PROPERTY_RIGHT_PADDING
protected JRBoxContainer boxContainer
protected JRBoxPen pen
protected JRBoxPen topPen
protected JRBoxPen leftPen
protected JRBoxPen bottomPen
protected JRBoxPen rightPen
protected java.lang.Integer padding
protected java.lang.Integer topPadding
protected java.lang.Integer leftPadding
protected java.lang.Integer bottomPadding
protected java.lang.Integer rightPadding
| Constructor Detail |
|---|
public JRBaseLineBox(JRBoxContainer boxContainer)
| Method Detail |
|---|
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerpublic JRStyle getStyle()
JRStyleContainer
getStyle in interface JRStyleContainerpublic java.lang.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 java.lang.Float getDefaultLineWidth()
getDefaultLineWidth in interface JRPenContainerpublic java.awt.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 java.lang.Integer getPadding()
JRLineBox
getPadding in interface JRLineBoxpublic java.lang.Integer getOwnPadding()
getOwnPadding in interface JRLineBoxpublic void setPadding(int padding)
JRLineBox
setPadding in interface JRLineBoxpublic void setPadding(java.lang.Integer padding)
setPadding in interface JRLineBoxpublic java.lang.Integer getTopPadding()
getTopPadding in interface JRLineBoxpublic java.lang.Integer getOwnTopPadding()
getOwnTopPadding in interface JRLineBoxpublic void setTopPadding(int topPadding)
setTopPadding in interface JRLineBoxpublic void setTopPadding(java.lang.Integer topPadding)
setTopPadding in interface JRLineBoxpublic java.lang.Integer getLeftPadding()
getLeftPadding in interface JRLineBoxpublic java.lang.Integer getOwnLeftPadding()
getOwnLeftPadding in interface JRLineBoxpublic void setLeftPadding(int leftPadding)
setLeftPadding in interface JRLineBoxpublic void setLeftPadding(java.lang.Integer leftPadding)
setLeftPadding in interface JRLineBoxpublic java.lang.Integer getBottomPadding()
getBottomPadding in interface JRLineBoxpublic java.lang.Integer getOwnBottomPadding()
getOwnBottomPadding in interface JRLineBoxpublic void setBottomPadding(int bottomPadding)
setBottomPadding in interface JRLineBoxpublic void setBottomPadding(java.lang.Integer bottomPadding)
setBottomPadding in interface JRLineBoxpublic java.lang.Integer getRightPadding()
getRightPadding in interface JRLineBoxpublic java.lang.Integer getOwnRightPadding()
getOwnRightPadding in interface JRLineBoxpublic void setRightPadding(int rightPadding)
setRightPadding in interface JRLineBoxpublic void setRightPadding(java.lang.Integer rightPadding)
setRightPadding in interface JRLineBoxpublic JRLineBox clone(JRBoxContainer boxContainer)
clone in interface JRLineBoxpublic JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport in interface JRChangeEventsSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||