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, andheightattributes specified for this element. Thedirectionattribute (seegetDirectionValue()) 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 LineDirectionEnumgetDirectionValue()Gets the line direction.voidsetDirection(LineDirectionEnum lineDirectionEnum)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, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonGraphicElement
getFillValue, getLinePen, getOwnFillValue, setFill
-
Methods inherited from interface net.sf.jasperreports.engine.JRElement
clone, collectExpressions, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, 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, getStyleNameReference
-
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
-
-
-
Method Detail
-
getDirectionValue
LineDirectionEnum getDirectionValue()
Gets the line direction.- Returns:
- a value representing one of the line direction constants in
LineDirectionEnum
-
setDirection
void setDirection(LineDirectionEnum lineDirectionEnum)
Sets the line direction.- Parameters:
lineDirectionEnum- a value representing one of the line direction constants inLineDirectionEnum
-
-