public class JRTemplatePrintImage extends JRTemplatePrintGraphicElement implements JRPrintImage
JRPrintImage that uses
a JRTemplateImage instance to
store common attributes.| Modifier and Type | Field and Description |
|---|---|
protected int |
bookmarkLevel
The bookmark level for the anchor associated with this field.
|
EXCEPTION_MESSAGE_KEY_TEMPLATE_NOT_FOUND, templateUNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_IDPROPERTY_IGNORE_HYPERLINK_SUFFIX| Constructor and Description |
|---|
JRTemplatePrintImage() |
JRTemplatePrintImage(JRTemplateImage image)
Deprecated.
provide a source Id via
JRTemplatePrintImage(JRTemplateImage, int) |
JRTemplatePrintImage(JRTemplateImage image,
int sourceElementId)
Deprecated.
|
JRTemplatePrintImage(JRTemplateImage image,
PrintElementOriginator originator)
Creates a print image element.
|
getDefaultLineColor, getDefaultLineWidth, getFillValue, getLinePen, getOwnFillValue, setFillgetBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getTemplate, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setMode, setSourceElementId, setStyle, setTemplate, setUUID, setWidth, setX, setY, updateElementTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetFillgetHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setYgetParentProperties, getPropertiesMap, hasPropertiesgetUUIDgetFillValue, getLinePen, getOwnFillValuegetBackcolor, getForecolor, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setModegetDefaultLineColor, getDefaultLineWidthgetDefaultStyleProvider, getStyle, getStyleNameReferencegetDefaultLineColorprotected int bookmarkLevel
JRAnchor.getBookmarkLevel()public JRTemplatePrintImage()
public JRTemplatePrintImage(JRTemplateImage image)
JRTemplatePrintImage(JRTemplateImage, int)image - the template image that the element will usepublic JRTemplatePrintImage(JRTemplateImage image, int sourceElementId)
JRTemplatePrintImage(JRTemplateImage, PrintElementOriginator)image - the template image that the element will usesourceElementId - the Id of the source elementpublic JRTemplatePrintImage(JRTemplateImage image, PrintElementOriginator originator)
image - the template image that the element will useoriginator - public Renderable getRenderable()
getRenderer().getRenderable in interface JRPrintImagepublic void setRenderable(Renderable renderable)
setRenderer(net.sf.jasperreports.renderers.Renderable).setRenderable in interface JRPrintImagepublic Renderable getRenderer()
getRenderer in interface JRPrintImagepublic void setRenderer(Renderable renderable)
setRenderer in interface JRPrintImagepublic ScaleImageEnum getScaleImageValue()
JRCommonImagegetScaleImageValue in interface JRCommonImageScaleImageEnumpublic ScaleImageEnum getOwnScaleImageValue()
JRCommonImagegetOwnScaleImageValue in interface JRCommonImageScaleImageEnumpublic void setScaleImage(ScaleImageEnum scaleImage)
JRCommonImagesetScaleImage in interface JRCommonImagescaleImage - a value representing one of the scale type constants in ScaleImageEnumpublic boolean isUsingCache()
isUsingCache in interface JRPrintImagepublic void setUsingCache(boolean isUsingCache)
setUsingCache in interface JRPrintImagepublic HorizontalAlignEnum getHorizontalAlignmentValue()
getHorizontalImageAlign().JRAlignmentgetHorizontalAlignmentValue in interface JRAlignmentHorizontalAlignEnumpublic HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalImageAlign().getOwnHorizontalAlignmentValue in interface JRAlignmentpublic void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignment)
setHorizontalImageAlign(HorizontalImageAlignEnum).JRAlignmentsetHorizontalAlignment in interface JRAlignmenthorizontalAlignment - a value representing one of the horizontal alignment constants in HorizontalAlignEnumpublic VerticalAlignEnum getVerticalAlignmentValue()
getVerticalImageAlign().JRAlignmentgetVerticalAlignmentValue in interface JRAlignmentVerticalAlignEnumpublic VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalImageAlign().getOwnVerticalAlignmentValue in interface JRAlignmentpublic void setVerticalAlignment(VerticalAlignEnum verticalAlignment)
setVerticalImageAlign(VerticalImageAlignEnum).JRAlignmentsetVerticalAlignment in interface JRAlignmentverticalAlignment - a value representing one of the vertical alignment constants in VerticalAlignEnumpublic HorizontalImageAlignEnum getHorizontalImageAlign()
JRImageAlignmentgetHorizontalImageAlign in interface JRImageAlignmentHorizontalImageAlignEnumpublic HorizontalImageAlignEnum getOwnHorizontalImageAlign()
getOwnHorizontalImageAlign in interface JRImageAlignmentpublic void setHorizontalImageAlign(HorizontalImageAlignEnum horizontalAlignment)
JRImageAlignmentsetHorizontalImageAlign in interface JRImageAlignmenthorizontalAlignment - a value representing one of the horizontal image alignment constants in HorizontalImageAlignEnumpublic VerticalImageAlignEnum getVerticalImageAlign()
JRImageAlignmentgetVerticalImageAlign in interface JRImageAlignmentVerticalImageAlignEnumpublic VerticalImageAlignEnum getOwnVerticalImageAlign()
getOwnVerticalImageAlign in interface JRImageAlignmentpublic void setVerticalImageAlign(VerticalImageAlignEnum verticalAlignment)
JRImageAlignmentsetVerticalImageAlign in interface JRImageAlignmentverticalAlignment - a value representing one of the vertical image alignment constants in VerticalImageAlignEnumpublic boolean isLazy()
ResourceRenderer.isLazy in interface JRPrintImagepublic void setLazy(boolean isLazy)
ResourceRenderer.setLazy in interface JRPrintImagepublic OnErrorTypeEnum getOnErrorTypeValue()
getOnErrorTypeValue in interface JRPrintImagepublic void setOnErrorType(OnErrorTypeEnum onErrorType)
setOnErrorType in interface JRPrintImagepublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerpublic String getAnchorName()
getAnchorName in interface JRPrintAnchorpublic void setAnchorName(String anchorName)
setAnchorName in interface JRPrintAnchorpublic void setHyperlinkOmitted(boolean hyperlinkOmitted)
public HyperlinkTypeEnum getHyperlinkTypeValue()
JRPrintHyperlink
The actual hyperlink type is determined by getLinkType().
This method can is used to determine whether the hyperlink type is one of the
built-in types or a custom type.
When hyperlink is of custom type, CUSTOM is returned.
getHyperlinkTypeValue in interface JRPrintHyperlinkJRPrintHyperlink.getLinkType()public void setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
JRPrintHyperlinksetHyperlinkType in interface JRPrintHyperlinkhyperlinkType - the built-in hyperlink typeJRPrintHyperlink.getLinkType()public HyperlinkTargetEnum getHyperlinkTargetValue()
getHyperlinkTargetValue in interface JRPrintHyperlinkpublic void setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
setHyperlinkTarget in interface JRPrintHyperlinkpublic String getHyperlinkReference()
getHyperlinkReference in interface JRPrintHyperlinkpublic void setHyperlinkReference(String hyperlinkReference)
setHyperlinkReference in interface JRPrintHyperlinkpublic String getHyperlinkAnchor()
getHyperlinkAnchor in interface JRPrintHyperlinkpublic void setHyperlinkAnchor(String hyperlinkAnchor)
setHyperlinkAnchor in interface JRPrintHyperlinkpublic Integer getHyperlinkPage()
getHyperlinkPage in interface JRPrintHyperlinkpublic void setHyperlinkPage(Integer hyperlinkPage)
setHyperlinkPage in interface JRPrintHyperlinkpublic int getBookmarkLevel()
JRPrintAnchorgetBookmarkLevel in interface JRPrintAnchorNO_BOOKMARK if no bookmark should be created for this anchorpublic void setBookmarkLevel(int bookmarkLevel)
JRPrintAnchorsetBookmarkLevel in interface JRPrintAnchorbookmarkLevel - the bookmark level (starting from 1)
or NO_BOOKMARK if no bookmark should be createdpublic JRPrintHyperlinkParameters getHyperlinkParameters()
JRPrintHyperlinkgetHyperlinkParameters in interface JRPrintHyperlinkJRPrintHyperlink.setHyperlinkParameters(JRPrintHyperlinkParameters),
JRPrintHyperlinkParameterpublic void setHyperlinkParameters(JRPrintHyperlinkParameters parameters)
JRPrintHyperlinkThese parameters will be used to produce the actual hyperlink when the report is exported.
setHyperlinkParameters in interface JRPrintHyperlinkparameters - the set of custom hyperlink parameterspublic String getLinkType()
JRPrintHyperlinkgetLinkType in interface JRPrintHyperlinkpublic void setLinkType(String type)
JRPrintHyperlinkThe type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
setLinkType in interface JRPrintHyperlinktype - the hyperlink typepublic String getLinkTarget()
JRPrintHyperlinkThe target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
getLinkTarget in interface JRPrintHyperlinkpublic void setLinkTarget(String target)
JRPrintHyperlinkThe target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
setLinkTarget in interface JRPrintHyperlinktarget - the hyperlink target namepublic String getHyperlinkTooltip()
JRPrintHyperlinkgetHyperlinkTooltip in interface JRPrintHyperlinkpublic void setHyperlinkTooltip(String hyperlinkTooltip)
JRPrintHyperlinksetHyperlinkTooltip in interface JRPrintHyperlinkhyperlinkTooltip - the tooltippublic <T> void accept(PrintElementVisitor<T> visitor, T arg)
JRPrintElementThe element calls the method that corresponds to the element type on the visitor.
accept in interface JRPrintElementaccept in class JRTemplatePrintElementT - the type of the argument passed to the visit operationvisitor - the visitor objectsarg - the argument passed to the visit operationpublic void writeVirtualized(VirtualizationOutput out) throws IOException
writeVirtualized in interface VirtualizationSerializablewriteVirtualized in class JRTemplatePrintElementIOExceptionpublic void readVirtualized(VirtualizationInput in) throws IOException
readVirtualized in interface VirtualizationSerializablereadVirtualized in class JRTemplatePrintElementIOExceptionCopyright © 2017. All rights reserved.