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,
PrintElementOriginator originator)
Creates a print image element.
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor.
|
String |
getAnchorName() |
int |
getBookmarkLevel()
Returns the level of the bookmark corresponding to the anchor.
|
HorizontalImageAlignEnum |
getHorizontalImageAlign()
Gets the image horizontal alignment.
|
String |
getHyperlinkAnchor() |
Integer |
getHyperlinkPage() |
JRPrintHyperlinkParameters |
getHyperlinkParameters()
Returns the set of custom hyperlink parameters.
|
String |
getHyperlinkReference() |
HyperlinkTargetEnum |
getHyperlinkTargetValue() |
String |
getHyperlinkTooltip()
Returns the hyperlink tooltip.
|
HyperlinkTypeEnum |
getHyperlinkTypeValue()
Retrieves the hyperlink type for the element.
|
JRLineBox |
getLineBox() |
String |
getLinkTarget()
Returns the hyperlink target name.
|
String |
getLinkType()
Returns the hyperlink type.
|
OnErrorTypeEnum |
getOnErrorTypeValue() |
HorizontalImageAlignEnum |
getOwnHorizontalImageAlign() |
RotationEnum |
getOwnRotation()
Gets the image own rotation.
|
ScaleImageEnum |
getOwnScaleImageValue()
Gets the image own scale type.
|
VerticalImageAlignEnum |
getOwnVerticalImageAlign() |
Renderable |
getRenderable()
Deprecated.
Replaced by
getRenderer(). |
Renderable |
getRenderer() |
RotationEnum |
getRotation()
Gets the image rotation.
|
ScaleImageEnum |
getScaleImageValue()
Gets the image scale type.
|
VerticalImageAlignEnum |
getVerticalImageAlign()
Gets the image vertical alignment.
|
boolean |
isLazy()
Deprecated.
Replaced by
ResourceRenderer. |
boolean |
isUsingCache() |
void |
readVirtualized(VirtualizationInput in) |
void |
setAnchorName(String anchorName) |
void |
setBookmarkLevel(int bookmarkLevel)
Sets the boomark level for the anchor.
|
void |
setHorizontalImageAlign(HorizontalImageAlignEnum horizontalAlignment)
Sets the image horizontal alignment.
|
void |
setHyperlinkAnchor(String hyperlinkAnchor) |
void |
setHyperlinkOmitted(boolean hyperlinkOmitted) |
void |
setHyperlinkPage(Integer hyperlinkPage) |
void |
setHyperlinkParameters(JRPrintHyperlinkParameters parameters)
Sets the custom hyperlink parameters.
|
void |
setHyperlinkReference(String hyperlinkReference) |
void |
setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget) |
void |
setHyperlinkTooltip(String hyperlinkTooltip)
Sets the tooltip to be used for the hyperlink.
|
void |
setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
Sets the link type as a built-in hyperlink type.
|
void |
setLazy(boolean isLazy)
Deprecated.
Replaced by
ResourceRenderer. |
void |
setLinkTarget(String target)
Sets the hyperlink target name.
|
void |
setLinkType(String type)
Sets the hyperlink type.
|
void |
setOnErrorType(OnErrorTypeEnum onErrorType) |
void |
setRenderable(Renderable renderable)
Deprecated.
|
void |
setRenderer(Renderable renderable) |
void |
setRotation(RotationEnum rotation)
Sets the image rotation.
|
void |
setScaleImage(ScaleImageEnum scaleImage)
Sets the image scale type.
|
void |
setUsingCache(boolean isUsingCache) |
void |
setVerticalImageAlign(VerticalImageAlignEnum verticalAlignment)
Gets the image vertical alignment.
|
void |
writeVirtualized(VirtualizationOutput out) |
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, 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 RotationEnum getRotation()
JRCommonImagegetRotation in interface JRCommonImageRotationEnumpublic RotationEnum getOwnRotation()
JRCommonImagegetOwnRotation in interface JRCommonImageRotationEnumpublic void setRotation(RotationEnum rotation)
JRCommonImagesetRotation in interface JRCommonImagerotation - a value representing one of the image rotation constants in RotationEnumpublic boolean isUsingCache()
isUsingCache in interface JRPrintImagepublic void setUsingCache(boolean isUsingCache)
setUsingCache in interface JRPrintImagepublic 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 © 2020 TIBCO Software Inc.. All rights reserved.