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
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 the
x, y, width, and
height attributes specified for this element.
The direction attribute (see getDirection()) 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 setting
height="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
Modifier and TypeMethodDescriptionGets the line direction.voidsetDirection(LineDirectionEnum lineDirection) Sets the line direction.Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
cloneMethods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getWidth, setBackcolor, setForecolor, setModeMethods inherited from interface net.sf.jasperreports.engine.JRCommonGraphicElement
getFill, getLinePen, getOwnFill, setFillMethods 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, setXMethods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUIDMethods inherited from interface net.sf.jasperreports.engine.JRPenContainer
getDefaultLineColor, getDefaultLineWidthMethods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasPropertiesMethods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReferenceMethods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
Method Details
-
getDirection
LineDirectionEnum getDirection()Gets the line direction.- Returns:
- a value representing one of the line direction constants in
LineDirectionEnum
-
setDirection
Sets the line direction.- Parameters:
lineDirection- a value representing one of the line direction constants inLineDirectionEnum
-