|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.base.JRBasePen
public class JRBasePen
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.awt.Color |
lineColor
|
protected java.lang.Byte |
lineStyle
|
protected java.lang.Float |
lineWidth
|
protected JRPenContainer |
penContainer
|
static java.lang.String |
PROPERTY_LINE_COLOR
|
static java.lang.String |
PROPERTY_LINE_STYLE
|
static java.lang.String |
PROPERTY_LINE_WIDTH
|
| Fields inherited from interface net.sf.jasperreports.engine.JRPen |
|---|
LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SOLID, LINE_WIDTH_0, LINE_WIDTH_1 |
| Constructor Summary | |
|---|---|
JRBasePen(JRPenContainer penContainer)
|
|
| Method Summary | |
|---|---|
JRPen |
clone(JRPenContainer penContainer)
|
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance. |
java.awt.Color |
getLineColor()
Gets the line color. |
java.lang.Byte |
getLineStyle()
Gets the line style used for this pen. |
java.lang.Float |
getLineWidth()
Gets the line width used for this pen. |
java.awt.Color |
getOwnLineColor()
|
java.lang.Byte |
getOwnLineStyle()
|
java.lang.Float |
getOwnLineWidth()
|
JRStyleContainer |
getStyleContainer()
|
java.lang.String |
getStyleNameReference()
|
void |
setLineColor(java.awt.Color lineColor)
Sets the line color. |
void |
setLineStyle(byte lineStyle)
Sets the line style. |
void |
setLineStyle(java.lang.Byte lineStyle)
|
void |
setLineWidth(float lineWidth)
Sets the line width. |
void |
setLineWidth(java.lang.Float lineWidth)
|
| 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_LINE_WIDTH
public static final java.lang.String PROPERTY_LINE_STYLE
public static final java.lang.String PROPERTY_LINE_COLOR
protected JRPenContainer penContainer
protected java.lang.Float lineWidth
protected java.lang.Byte lineStyle
protected java.awt.Color lineColor
| Constructor Detail |
|---|
public JRBasePen(JRPenContainer penContainer)
| Method Detail |
|---|
public JRStyleContainer getStyleContainer()
getStyleContainer in interface JRPenpublic java.lang.Float getLineWidth()
JRPen
getLineWidth in interface JRPenpublic java.lang.Float getOwnLineWidth()
getOwnLineWidth in interface JRPenpublic void setLineWidth(float lineWidth)
JRPen
setLineWidth in interface JRPenlineWidth - the line widthpublic void setLineWidth(java.lang.Float lineWidth)
setLineWidth in interface JRPenpublic java.lang.Byte getLineStyle()
JRPen
getLineStyle in interface JRPenpublic java.lang.Byte getOwnLineStyle()
getOwnLineStyle in interface JRPenpublic void setLineStyle(byte lineStyle)
JRPen
setLineStyle in interface JRPenlineStyle - one of the line style constants in this classpublic void setLineStyle(java.lang.Byte lineStyle)
setLineStyle in interface JRPenpublic java.awt.Color getLineColor()
JRPen
getLineColor in interface JRPenpublic java.awt.Color getOwnLineColor()
getOwnLineColor in interface JRPenpublic void setLineColor(java.awt.Color lineColor)
JRPen
setLineColor in interface JRPenpublic java.lang.String getStyleNameReference()
public JRPen clone(JRPenContainer penContainer)
clone in interface JRPenpublic JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport in interface JRChangeEventsSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||