net.sf.jasperreports.engine.base
public class JRBasePen extends java.lang.Object implements JRPen, java.io.Serializable, java.lang.Cloneable, JRChangeEventsSupport
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
lineColor |
protected LineStyleEnum |
lineStyleValue |
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 |
LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_DOUBLE, LINE_STYLE_SOLID, LINE_WIDTH_0, LINE_WIDTH_1| Constructor and Description |
|---|
JRBasePen(JRPenContainer penContainer) |
| Modifier and Type | Method and Description |
|---|---|
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()
Deprecated.
Replaced by
getLineStyleValue(). |
LineStyleEnum |
getLineStyleValue()
Indicates 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()
Deprecated.
Replaced by
getOwnLineStyleValue(). |
LineStyleEnum |
getOwnLineStyleValue()
Indicates the line style used for this pen.
|
java.lang.Float |
getOwnLineWidth() |
JRStyleContainer |
getStyleContainer() |
java.lang.String |
getStyleNameReference() |
void |
setLineColor(java.awt.Color lineColor)
Sets the line color.
|
void |
setLineStyle(byte lineStyle)
Deprecated.
Replaced by
setLineStyle(LineStyleEnum). |
void |
setLineStyle(java.lang.Byte lineStyle)
Deprecated.
Replaced by
setLineStyle(LineStyleEnum). |
void |
setLineStyle(LineStyleEnum lineStyleValue)
Specifies the line style.
|
void |
setLineWidth(float lineWidth)
Sets the line width.
|
void |
setLineWidth(java.lang.Float lineWidth) |
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 LineStyleEnum lineStyleValue
protected java.awt.Color lineColor
public JRBasePen(JRPenContainer penContainer)
public JRStyleContainer getStyleContainer()
getStyleContainer in interface JRPenpublic java.lang.Float getLineWidth()
JRPengetLineWidth in interface JRPenpublic java.lang.Float getOwnLineWidth()
getOwnLineWidth in interface JRPenpublic void setLineWidth(float lineWidth)
JRPensetLineWidth in interface JRPenlineWidth - the line widthpublic void setLineWidth(java.lang.Float lineWidth)
setLineWidth in interface JRPenpublic java.lang.Byte getLineStyle()
getLineStyleValue().getLineStyle in interface JRPenpublic java.lang.Byte getOwnLineStyle()
getOwnLineStyleValue().getOwnLineStyle in interface JRPenpublic LineStyleEnum getLineStyleValue()
JRPengetLineStyleValue in interface JRPenLineStyleEnumpublic LineStyleEnum getOwnLineStyleValue()
JRPengetOwnLineStyleValue in interface JRPenLineStyleEnumpublic void setLineStyle(byte lineStyle)
setLineStyle(LineStyleEnum).setLineStyle in interface JRPenpublic void setLineStyle(java.lang.Byte lineStyle)
setLineStyle(LineStyleEnum).setLineStyle in interface JRPenpublic void setLineStyle(LineStyleEnum lineStyleValue)
JRPensetLineStyle in interface JRPenlineStyleValue - a value representing one of the line style constants in LineStyleEnumpublic java.awt.Color getLineColor()
JRPengetLineColor in interface JRPenpublic java.awt.Color getOwnLineColor()
getOwnLineColor in interface JRPenpublic void setLineColor(java.awt.Color lineColor)
JRPensetLineColor in interface JRPenpublic java.lang.String getStyleNameReference()
public JRPen clone(JRPenContainer penContainer)
public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupportgetEventSupport in interface JRChangeEventsSupport© 2001-2010 Jaspersoft Corporation www.jaspersoft.com