Package net.sf.jasperreports.engine.base
Class JRBasePrintLine
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBasePrintElement
-
- net.sf.jasperreports.engine.base.JRBasePrintGraphicElement
-
- net.sf.jasperreports.engine.base.JRBasePrintLine
-
- All Implemented Interfaces:
java.io.Serializable,JRCommonElement,JRCommonGraphicElement,JRIdentifiable,JRPenContainer,JRPrintElement,JRPrintGraphicElement,JRPrintLine,JRPropertiesHolder,JRStyleContainer
public class JRBasePrintLine extends JRBasePrintGraphicElement implements JRPrintLine
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected LineDirectionEnumdirectionValue-
Fields inherited from class net.sf.jasperreports.engine.base.JRBasePrintGraphicElement
fillValue, linePen
-
Fields inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement
backcolor, defaultStyleProvider, forecolor, height, key, modeValue, origin, style, uuid, width, x, y
-
Fields inherited from interface net.sf.jasperreports.engine.JRPrintElement
UNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_ID
-
-
Constructor Summary
Constructors Constructor Description JRBasePrintLine(JRDefaultStyleProvider defaultStyleProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidaccept(PrintElementVisitor<T> visitor, T arg)Accepts a print element visitor.LineDirectionEnumgetDirectionValue()Gets the line direction.voidsetDirection(LineDirectionEnum directionValue)Sets the line direction.voidsetHeight(int height)voidsetWidth(int width)-
Methods inherited from class net.sf.jasperreports.engine.base.JRBasePrintGraphicElement
copyPen, getDefaultLineColor, getDefaultLineWidth, getFillValue, getLinePen, getOwnFillValue, setFill
-
Methods inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setKey, setMode, setOrigin, setPrintElementId, setSourceElementId, setStyle, setUUID, setX, setY
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonGraphicElement
getFillValue, getLinePen, getOwnFillValue
-
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.JRPrintElement
getHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setStyle, setUUID, setX, setY
-
Methods inherited from interface net.sf.jasperreports.engine.JRPrintGraphicElement
setFill
-
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
-
-
-
-
Field Detail
-
directionValue
protected LineDirectionEnum directionValue
-
-
Constructor Detail
-
JRBasePrintLine
public JRBasePrintLine(JRDefaultStyleProvider defaultStyleProvider)
-
-
Method Detail
-
setWidth
public void setWidth(int width)
- Specified by:
setWidthin interfaceJRPrintElement- Overrides:
setWidthin classJRBasePrintElement
-
setHeight
public void setHeight(int height)
- Specified by:
setHeightin interfaceJRPrintElement- Overrides:
setHeightin classJRBasePrintElement
-
getDirectionValue
public LineDirectionEnum getDirectionValue()
Description copied from interface:JRPrintLineGets the line direction.- Specified by:
getDirectionValuein interfaceJRPrintLine- Returns:
- a value representing one of the line direction constants in
LineDirectionEnum
-
setDirection
public void setDirection(LineDirectionEnum directionValue)
Description copied from interface:JRPrintLineSets the line direction.- Specified by:
setDirectionin interfaceJRPrintLine- Parameters:
directionValue- a value representing one of the line direction constants inLineDirectionEnum
-
accept
public <T> void accept(PrintElementVisitor<T> visitor, T arg)
Description copied from interface:JRPrintElementAccepts a print element visitor.The element calls the method that corresponds to the element type on the visitor.
- Specified by:
acceptin interfaceJRPrintElement- Overrides:
acceptin classJRBasePrintElement- Type Parameters:
T- the type of the argument passed to the visit operation- Parameters:
visitor- the visitor objectsarg- the argument passed to the visit operation
-
-