Package net.sf.jasperreports.engine
Interface JRPen
-
- All Known Subinterfaces:
JRBoxPen
- All Known Implementing Classes:
JRBaseBoxBottomPen,JRBaseBoxLeftPen,JRBaseBoxPen,JRBaseBoxRightPen,JRBaseBoxTopPen,JRBasePen
public interface JRPenThis interface is used to customize line settings such as width, style and color. This is useful for drawing graphic elements as well as drawing borders around text elements and images.Line Width
ThelineWidthattribute represents the width of the line measured in points. Can be accessed using thegetLineWidth()method.Line Style
ThelineStyleattribute represents the line style and has one of the following predefined values (seegetLineStyleValue()):SolidDashedDottedDouble
Line Color
ThelineColorattribute represents the color of the line. Can be accessed using thegetLineColor()method.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static FloatLINE_WIDTH_0static FloatLINE_WIDTH_1
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JRPenclone(JRPenContainer penContainer)ColorgetLineColor()Gets the line color.LineStyleEnumgetLineStyleValue()Indicates the line style used for this pen.FloatgetLineWidth()Gets the line width used for this pen.ColorgetOwnLineColor()LineStyleEnumgetOwnLineStyleValue()Indicates the line style used for this pen.FloatgetOwnLineWidth()JRPenContainergetPenContainer()voidpopulateStyle()voidsetLineColor(Color color)Sets the line color.voidsetLineStyle(LineStyleEnum lineStyleEnum)Specifies the line style.voidsetLineWidth(Float lineWidth)Sets the line width.
-
-
-
Method Detail
-
getPenContainer
JRPenContainer getPenContainer()
-
clone
JRPen clone(JRPenContainer penContainer)
-
populateStyle
void populateStyle()
-
getLineWidth
Float getLineWidth()
Gets the line width used for this pen.- Returns:
- line width
-
getOwnLineWidth
Float getOwnLineWidth()
-
setLineWidth
void setLineWidth(Float lineWidth)
Sets the line width.- Parameters:
lineWidth- the line width
-
getLineStyleValue
LineStyleEnum getLineStyleValue()
Indicates the line style used for this pen.- Returns:
- a value representing one of the line style constants in
LineStyleEnum
-
getOwnLineStyleValue
LineStyleEnum getOwnLineStyleValue()
Indicates the line style used for this pen.- Returns:
- a value representing one of the line style constants in
LineStyleEnum
-
setLineStyle
void setLineStyle(LineStyleEnum lineStyleEnum)
Specifies the line style.- Parameters:
lineStyleEnum- a value representing one of the line style constants inLineStyleEnum
-
getLineColor
Color getLineColor()
Gets the line color.
-
getOwnLineColor
Color getOwnLineColor()
-
setLineColor
void setLineColor(Color color)
Sets the line color.
-
-