|
||||||||||
| 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 Color |
lineColor
|
protected LineStyleEnum |
lineStyleValue
|
protected Float |
lineWidth
|
protected JRPenContainer |
penContainer
|
static String |
PROPERTY_LINE_COLOR
|
static String |
PROPERTY_LINE_STYLE
|
static String |
PROPERTY_LINE_WIDTH
|
| Fields inherited from interface net.sf.jasperreports.engine.JRPen |
|---|
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. |
int |
getHashCode()
Returns a hash code to be used for the deduplicate map. |
Color |
getLineColor()
Gets the line color. |
LineStyleEnum |
getLineStyleValue()
Indicates the line style used for this pen. |
Float |
getLineWidth()
Gets the line width used for this pen. |
Color |
getOwnLineColor()
|
LineStyleEnum |
getOwnLineStyleValue()
Indicates the line style used for this pen. |
Float |
getOwnLineWidth()
|
JRStyleContainer |
getStyleContainer()
|
String |
getStyleNameReference()
|
boolean |
isIdentical(Object object)
Determines if this instance is identical to another object. |
void |
setLineColor(Color lineColor)
Sets the line color. |
void |
setLineStyle(LineStyleEnum lineStyleValue)
Specifies the line style. |
void |
setLineWidth(float lineWidth)
Sets the line width. |
void |
setLineWidth(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 String PROPERTY_LINE_WIDTH
public static final String PROPERTY_LINE_STYLE
public static final String PROPERTY_LINE_COLOR
protected JRPenContainer penContainer
protected Float lineWidth
protected LineStyleEnum lineStyleValue
protected Color lineColor
| Constructor Detail |
|---|
public JRBasePen(JRPenContainer penContainer)
| Method Detail |
|---|
public JRStyleContainer getStyleContainer()
getStyleContainer in interface JRPenpublic Float getLineWidth()
JRPen
getLineWidth in interface JRPenpublic Float getOwnLineWidth()
getOwnLineWidth in interface JRPenpublic void setLineWidth(float lineWidth)
JRPen
setLineWidth in interface JRPenlineWidth - the line widthpublic void setLineWidth(Float lineWidth)
setLineWidth in interface JRPenpublic LineStyleEnum getLineStyleValue()
JRPen
getLineStyleValue in interface JRPenLineStyleEnumpublic LineStyleEnum getOwnLineStyleValue()
JRPen
getOwnLineStyleValue in interface JRPenLineStyleEnumpublic void setLineStyle(LineStyleEnum lineStyleValue)
JRPen
setLineStyle in interface JRPenlineStyleValue - a value representing one of the line style constants in LineStyleEnumpublic Color getLineColor()
JRPen
getLineColor in interface JRPenpublic Color getOwnLineColor()
getOwnLineColor in interface JRPenpublic void setLineColor(Color lineColor)
JRPen
setLineColor in interface JRPenpublic String getStyleNameReference()
public JRPen clone(JRPenContainer penContainer)
clone in interface JRPenpublic 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 | |||||||||