public class JRBasePen extends Object implements JRPen, Serializable, Cloneable, JRChangeEventsSupport, Deduplicable
Modifier and Type | Field and Description |
---|---|
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 |
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.
|
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() |
JRPenContainer |
getPenContainer() |
JRStyleContainer |
getStyleContainer()
Deprecated.
Replaced by
getPenContainer() . |
String |
getStyleNameReference() |
protected StyleResolver |
getStyleResolver() |
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)
Deprecated.
Replaced by
setLineWidth(Float) . |
void |
setLineWidth(Float lineWidth)
Sets the line width.
|
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
public JRBasePen(JRPenContainer penContainer)
public JRStyleContainer getStyleContainer()
getPenContainer()
.getStyleContainer
in interface JRPen
public JRPenContainer getPenContainer()
getPenContainer
in interface JRPen
protected StyleResolver getStyleResolver()
public Float getLineWidth()
JRPen
getLineWidth
in interface JRPen
public Float getOwnLineWidth()
getOwnLineWidth
in interface JRPen
public void setLineWidth(float lineWidth)
setLineWidth(Float)
.setLineWidth
in interface JRPen
public void setLineWidth(Float lineWidth)
JRPen
setLineWidth
in interface JRPen
lineWidth
- the line widthpublic LineStyleEnum getLineStyleValue()
JRPen
getLineStyleValue
in interface JRPen
LineStyleEnum
public LineStyleEnum getOwnLineStyleValue()
JRPen
getOwnLineStyleValue
in interface JRPen
LineStyleEnum
public void setLineStyle(LineStyleEnum lineStyleValue)
JRPen
setLineStyle
in interface JRPen
lineStyleValue
- a value representing one of the line style constants in LineStyleEnum
public Color getLineColor()
JRPen
getLineColor
in interface JRPen
public Color getOwnLineColor()
getOwnLineColor
in interface JRPen
public void setLineColor(Color lineColor)
JRPen
setLineColor
in interface JRPen
public String getStyleNameReference()
public JRPen clone(JRPenContainer penContainer)
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(Object object)
Deduplicable
isIdentical
in interface Deduplicable
object
- the object to compare with this instancetrue
if the two objects are identical and can be deduplicatedCopyright © 2019 TIBCO Software Inc.. All rights reserved.