Package net.sf.jasperreports.engine
Interface JRLine
-
- All Superinterfaces:
Cloneable
,JRChild
,JRCloneable
,JRCommonElement
,JRCommonGraphicElement
,JRElement
,JRGraphicElement
,JRIdentifiable
,JRPenContainer
,JRPropertiesHolder
,JRStyleContainer
,JRVisitable
- All Known Implementing Classes:
JRBaseLine
,JRDesignLine
,JRFillLine
public interface JRLine extends JRGraphicElement
An abstract representation of a graphic element representing a straight line. When displaying a line element, JasperReports draws one of the two diagonals of the rectangle represented by thex
,y
,width
, andheight
attributes specified for this element. Thedirection
attribute (seegetDirection()
) determines which one of the two diagonals of the rectangle should be drawn:TopDown
- draws a diagonal line from the top-left corner of the rectangle to the bottom-right corner.BottomUp
- draws a diagonal line from the bottom-left corner to the upper-right corner.
width="1"
and horizontal lines by settingheight="1"
. For vertical lines, the direction is not important.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.engine.JRElement
PROPERTY_ELEMENT_TEMPLATE_POPULATE_STYLE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LineDirectionEnum
getDirection()
Gets the line direction.void
setDirection(LineDirectionEnum lineDirection)
Sets the line direction.-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getWidth, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonGraphicElement
getFill, getLinePen, getOwnFill, setFill
-
Methods inherited from interface net.sf.jasperreports.engine.JRElement
clone, collectExpressions, getElementGroup, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchType, getStyleExpression, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
-
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUID
-
Methods inherited from interface net.sf.jasperreports.engine.JRPenContainer
getDefaultLineColor, getDefaultLineWidth
-
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
-
-
-
Method Detail
-
getDirection
LineDirectionEnum getDirection()
Gets the line direction.- Returns:
- a value representing one of the line direction constants in
LineDirectionEnum
-
setDirection
void setDirection(LineDirectionEnum lineDirection)
Sets the line direction.- Parameters:
lineDirection
- a value representing one of the line direction constants inLineDirectionEnum
-
-