Package net.sf.jasperreports.engine.fill
Class JRTemplatePrintLine
java.lang.Object
net.sf.jasperreports.engine.fill.JRTemplatePrintElement
net.sf.jasperreports.engine.fill.JRTemplatePrintGraphicElement
net.sf.jasperreports.engine.fill.JRTemplatePrintLine
- All Implemented Interfaces:
Serializable,JRCommonElement,JRCommonGraphicElement,JRIdentifiable,JRPenContainer,JRPrintElement,JRPrintGraphicElement,JRPrintLine,JRPropertiesHolder,JRStyleContainer,VirtualizationSerializable
Implementation of
JRPrintLine that uses
a JRTemplateLine instance to
store common attributes.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
Fields inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintElement
EXCEPTION_MESSAGE_KEY_TEMPLATE_NOT_FOUND, templateFields inherited from interface net.sf.jasperreports.engine.JRPrintElement
UNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_ID -
Constructor Summary
ConstructorsConstructorDescriptionJRTemplatePrintLine(JRTemplateLine line, PrintElementOriginator originator) Creates a print line element. -
Method Summary
Modifier and TypeMethodDescription<T> voidaccept(PrintElementVisitor<T> visitor, T arg) Accepts a print element visitor.Gets the line direction.voidsetDirection(LineDirectionEnum direction) Sets the line direction.Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintGraphicElement
getDefaultLineColor, getDefaultLineWidth, getFill, getLinePen, getOwnFill, setFillMethods inherited from class net.sf.jasperreports.engine.fill.JRTemplatePrintElement
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getMode, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getUUID, getWidth, getX, getY, hasProperties, readVirtualized, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setUUID, setWidth, setX, setY, updateElementTemplate, writeVirtualizedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, setBackcolor, setForecolor, setModeMethods inherited from interface net.sf.jasperreports.engine.JRCommonGraphicElement
getFill, getLinePen, getOwnFillMethods 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.JRPrintElement
getHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setYMethods inherited from interface net.sf.jasperreports.engine.JRPrintGraphicElement
setFillMethods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasPropertiesMethods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Constructor Details
-
JRTemplatePrintLine
public JRTemplatePrintLine() -
JRTemplatePrintLine
Creates a print line element.- Parameters:
line- the template line that the element will useoriginator-
-
-
Method Details
-
getDirection
Description copied from interface:JRPrintLineGets the line direction.- Specified by:
getDirectionin interfaceJRPrintLine- Returns:
- a value representing one of the line direction constants in
LineDirectionEnum
-
setDirection
Description copied from interface:JRPrintLineSets the line direction.- Specified by:
setDirectionin interfaceJRPrintLine- Parameters:
direction- a value representing one of the line direction constants inLineDirectionEnum
-
accept
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 classJRTemplatePrintElement- 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
-