|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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. |
int |
getHashCode()
Returns a hash code to be used for the deduplicate map. |
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. |
boolean |
isIdentical(java.lang.Object object)
Determines if this instance is identical to another object. |
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 JRStyleContainer
public JRStyle getStyle()
JRStyleContainer
getStyle
in interface JRStyleContainer
public java.lang.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 java.lang.Float getDefaultLineWidth()
getDefaultLineWidth
in interface JRPenContainer
public java.awt.Color getDefaultLineColor()
getDefaultLineColor
in interface JRPenContainer
public JRBoxPen getPen()
JRLineBox
getPen
in interface JRLineBox
public void copyPen(JRBoxPen pen)
copyPen
in interface JRLineBox
public JRBoxPen getTopPen()
JRLineBox
getTopPen
in interface 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 java.lang.Integer getPadding()
JRLineBox
getPadding
in interface JRLineBox
public java.lang.Integer getOwnPadding()
getOwnPadding
in interface JRLineBox
public void setPadding(int padding)
JRLineBox
setPadding
in interface JRLineBox
public void setPadding(java.lang.Integer padding)
setPadding
in interface JRLineBox
public java.lang.Integer getTopPadding()
getTopPadding
in interface JRLineBox
public java.lang.Integer getOwnTopPadding()
getOwnTopPadding
in interface JRLineBox
public void setTopPadding(int topPadding)
setTopPadding
in interface JRLineBox
public void setTopPadding(java.lang.Integer topPadding)
setTopPadding
in interface JRLineBox
public java.lang.Integer getLeftPadding()
getLeftPadding
in interface JRLineBox
public java.lang.Integer getOwnLeftPadding()
getOwnLeftPadding
in interface JRLineBox
public void setLeftPadding(int leftPadding)
setLeftPadding
in interface JRLineBox
public void setLeftPadding(java.lang.Integer leftPadding)
setLeftPadding
in interface JRLineBox
public java.lang.Integer getBottomPadding()
getBottomPadding
in interface JRLineBox
public java.lang.Integer getOwnBottomPadding()
getOwnBottomPadding
in interface JRLineBox
public void setBottomPadding(int bottomPadding)
setBottomPadding
in interface JRLineBox
public void setBottomPadding(java.lang.Integer bottomPadding)
setBottomPadding
in interface JRLineBox
public java.lang.Integer getRightPadding()
getRightPadding
in interface JRLineBox
public java.lang.Integer getOwnRightPadding()
getOwnRightPadding
in interface JRLineBox
public void setRightPadding(int rightPadding)
setRightPadding
in interface JRLineBox
public void setRightPadding(java.lang.Integer rightPadding)
setRightPadding
in interface JRLineBox
public JRLineBox clone(JRBoxContainer boxContainer)
clone
in interface JRLineBox
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(java.lang.Object object)
Deduplicable
isIdentical
in interface Deduplicable
object
- 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 |