public class JRTemplatePrintLine extends JRTemplatePrintGraphicElement implements JRPrintLine
JRPrintLine
that uses
a JRTemplateLine
instance to
store common attributes.EXCEPTION_MESSAGE_KEY_TEMPLATE_NOT_FOUND, template
UNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_ID
Constructor and Description |
---|
JRTemplatePrintLine() |
JRTemplatePrintLine(JRTemplateLine line)
Deprecated.
provide a source Id via
JRTemplatePrintLine(JRTemplateLine, int) |
JRTemplatePrintLine(JRTemplateLine line,
int sourceElementId)
Deprecated.
|
JRTemplatePrintLine(JRTemplateLine line,
PrintElementOriginator originator)
Creates a print line element.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor.
|
LineDirectionEnum |
getDirectionValue()
Gets the line direction.
|
void |
setDirection(LineDirectionEnum direction)
Sets the line direction.
|
getDefaultLineColor, getDefaultLineWidth, getFillValue, getLinePen, getOwnFillValue, setFill
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, 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, writeVirtualized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setFill
getHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setY
getParentProperties, getPropertiesMap, hasProperties
getUUID
getFillValue, getLinePen, getOwnFillValue
getBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setMode
getDefaultLineColor, getDefaultLineWidth
getDefaultStyleProvider, getStyle, getStyleNameReference
public JRTemplatePrintLine()
public JRTemplatePrintLine(JRTemplateLine line)
JRTemplatePrintLine(JRTemplateLine, int)
line
- the template line that the element will usepublic JRTemplatePrintLine(JRTemplateLine line, int sourceElementId)
JRTemplatePrintLine(JRTemplateLine, PrintElementOriginator)
line
- the template line that the element will usesourceElementId
- the Id of the source elementpublic JRTemplatePrintLine(JRTemplateLine line, PrintElementOriginator originator)
line
- the template line that the element will useoriginator
- public LineDirectionEnum getDirectionValue()
JRPrintLine
getDirectionValue
in interface JRPrintLine
LineDirectionEnum
public void setDirection(LineDirectionEnum direction)
JRPrintLine
setDirection
in interface JRPrintLine
direction
- a value representing one of the line direction constants in LineDirectionEnum
public <T> void accept(PrintElementVisitor<T> visitor, T arg)
JRPrintElement
The element calls the method that corresponds to the element type on the visitor.
accept
in interface JRPrintElement
accept
in class JRTemplatePrintElement
T
- the type of the argument passed to the visit operationvisitor
- the visitor objectsarg
- the argument passed to the visit operation© 2001-2014 TIBCO Software Inc. www.jaspersoft.com