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.
|
templateUNSET_SOURCE_ELEMENT_ID| Constructor and Description |
|---|
JRTemplatePrintImage(JRTemplateImage image)
Deprecated.
provide a source Id via
JRTemplatePrintImage(JRTemplateImage, int) |
JRTemplatePrintImage(JRTemplateImage image,
int sourceElementId)
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.
|
HorizontalAlignEnum |
getHorizontalAlignmentValue()
Gets the text 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() |
HorizontalAlignEnum |
getOwnHorizontalAlignmentValue() |
ScaleImageEnum |
getOwnScaleImageValue()
Gets the image own scale type.
|
VerticalAlignEnum |
getOwnVerticalAlignmentValue() |
Renderable |
getRenderable() |
JRRenderable |
getRenderer()
Deprecated.
Replaced by
getRenderable(). |
ScaleImageEnum |
getScaleImageValue()
Gets the image scale type.
|
VerticalAlignEnum |
getVerticalAlignmentValue()
Gets the text vertical alignment.
|
boolean |
isLazy() |
boolean |
isUsingCache() |
void |
setAnchorName(String anchorName) |
void |
setBookmarkLevel(int bookmarkLevel)
Sets the boomark level for the anchor.
|
void |
setHorizontalAlignment(HorizontalAlignEnum horizontalAlignment)
Sets the text horizontal alignment.
|
void |
setHyperlinkAnchor(String hyperlinkAnchor) |
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) |
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) |
void |
setRenderer(JRRenderable renderer)
Deprecated.
Replaced by
setRenderable(Renderable). |
void |
setScaleImage(ScaleImageEnum scaleImage)
Sets the image scale type.
|
void |
setUsingCache(boolean isUsingCache) |
void |
setVerticalAlignment(VerticalAlignEnum verticalAlignment)
Gets the text vertical alignment.
|
getDefaultLineColor, getDefaultLineWidth, getFillValue, getLinePen, getOwnFillValue, setFillgetBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, 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, 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(JRTemplateImage image)
JRTemplatePrintImage(JRTemplateImage, int)image - the template image that the element will usepublic JRTemplatePrintImage(JRTemplateImage image, int sourceElementId)
image - the template image that the element will usesourceElementId - the Id of the source elementpublic Renderable getRenderable()
getRenderable in interface JRPrintImagepublic void setRenderable(Renderable renderable)
setRenderable in interface JRPrintImagepublic JRRenderable getRenderer()
getRenderable().getRenderer in interface JRPrintImagepublic void setRenderer(JRRenderable renderer)
setRenderable(Renderable).setRenderer in interface JRPrintImagepublic ScaleImageEnum getScaleImageValue()
JRCommonImagegetScaleImageValue in interface JRCommonImageScaleImageEnumpublic ScaleImageEnum getOwnScaleImageValue()
JRCommonImagegetOwnScaleImageValue in interface JRCommonImageScaleImageEnumpublic void setScaleImage(ScaleImageEnum scaleImage)
JRCommonImagesetScaleImage in interface JRCommonImagesetScaleImage in interface JRPrintImagescaleImage - 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()
JRAlignmentgetHorizontalAlignmentValue in interface JRAlignmentHorizontalAlignEnumpublic HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalAlignmentValue in interface JRAlignmentpublic void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignment)
JRAlignmentsetHorizontalAlignment in interface JRAlignmenthorizontalAlignment - a value representing one of the horizontal alignment constants in HorizontalAlignEnumpublic VerticalAlignEnum getVerticalAlignmentValue()
JRAlignmentgetVerticalAlignmentValue in interface JRAlignmentVerticalAlignEnumpublic VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalAlignmentValue in interface JRAlignmentpublic void setVerticalAlignment(VerticalAlignEnum verticalAlignment)
JRAlignmentsetVerticalAlignment in interface JRAlignmentverticalAlignment - a value representing one of the vertical alignment constants in VerticalAlignEnumpublic boolean isLazy()
isLazy in interface JRPrintImagepublic void setLazy(boolean isLazy)
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 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 operationCopyright © 2012. All Rights Reserved.