public class JRBasePrintImage extends JRBasePrintGraphicElement implements JRPrintImage
| Modifier and Type | Field and Description |
|---|---|
protected String |
anchorName |
protected int |
bookmarkLevel
The bookmark level for the anchor associated with this field.
|
protected HorizontalImageAlignEnum |
horizontalImageAlign |
protected String |
hyperlinkAnchor |
protected Integer |
hyperlinkPage |
protected JRPrintHyperlinkParameters |
hyperlinkParameters |
protected String |
hyperlinkReference |
protected String |
hyperlinkTooltip |
protected Boolean |
isUsingCache |
protected JRLineBox |
lineBox |
protected String |
linkTarget |
protected String |
linkType |
protected OnErrorTypeEnum |
onErrorTypeValue |
protected Renderable |
renderable |
protected ScaleImageEnum |
scaleImageValue |
protected VerticalImageAlignEnum |
verticalImageAlign |
fillValue, linePenbackcolor, defaultStyleProvider, forecolor, height, key, modeValue, origin, style, uuid, width, x, yUNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_IDPROPERTY_IGNORE_HYPERLINK_SUFFIX| Constructor and Description |
|---|
JRBasePrintImage(JRDefaultStyleProvider defaultStyleProvider) |
copyPen, getDefaultLineColor, getFillValue, getLinePen, getOwnFillValue, setFillgetBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setKey, setMode, setOrigin, setPrintElementId, setSourceElementId, setStyle, setUUID, setWidth, setX, setYclone, 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, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setModegetDefaultLineColorgetDefaultStyleProvider, getStyle, getStyleNameReferencegetDefaultLineColorprotected Renderable renderable
protected ScaleImageEnum scaleImageValue
protected Boolean isUsingCache
protected HorizontalImageAlignEnum horizontalImageAlign
protected VerticalImageAlignEnum verticalImageAlign
protected OnErrorTypeEnum onErrorTypeValue
protected JRLineBox lineBox
protected String anchorName
protected String linkType
protected String linkTarget
protected String hyperlinkReference
protected String hyperlinkAnchor
protected Integer hyperlinkPage
protected String hyperlinkTooltip
protected JRPrintHyperlinkParameters hyperlinkParameters
protected int bookmarkLevel
JRAnchor.getBookmarkLevel()public JRBasePrintImage(JRDefaultStyleProvider defaultStyleProvider)
public ModeEnum getModeValue()
JRCommonElementgetModeValue in interface JRCommonElementgetModeValue in class JRBasePrintElementpublic 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 scaleImageValue)
JRCommonImagesetScaleImage in interface JRCommonImagescaleImageValue - 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 horizontalAlignmentValue)
setHorizontalImageAlign(HorizontalImageAlignEnum).JRAlignmentsetHorizontalAlignment in interface JRAlignmenthorizontalAlignmentValue - 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 verticalAlignmentValue)
setVerticalImageAlign(VerticalImageAlignEnum).JRAlignmentsetVerticalAlignment in interface JRAlignmentverticalAlignmentValue - 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 horizontalImageAlign)
JRImageAlignmentsetHorizontalImageAlign in interface JRImageAlignmenthorizontalImageAlign - 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 verticalImageAlign)
JRImageAlignmentsetVerticalImageAlign in interface JRImageAlignmentverticalImageAlign - 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 onErrorTypeValue)
setOnErrorType in interface JRPrintImagepublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerpublic void copyBox(JRLineBox lineBox)
public Float getDefaultLineWidth()
getDefaultLineWidth in interface JRPenContainergetDefaultLineWidth in class JRBasePrintGraphicElementpublic 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 void setHyperlinkPage(String hyperlinkPage)
public 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 hyperlinkParameters)
JRPrintHyperlinkThese parameters will be used to produce the actual hyperlink when the report is exported.
setHyperlinkParameters in interface JRPrintHyperlinkhyperlinkParameters - the set of custom hyperlink parameterspublic void addHyperlinkParameter(JRPrintHyperlinkParameter parameter)
parameter - the parameter to addgetHyperlinkParameters(),
JRPrintHyperlinkParameters.addParameter(JRPrintHyperlinkParameter)public String getLinkType()
JRPrintHyperlinkgetLinkType in interface JRPrintHyperlinkpublic void setLinkType(String linkType)
JRPrintHyperlinkThe type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
setLinkType in interface JRPrintHyperlinklinkType - 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 linkTarget)
JRPrintHyperlinkThe target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
setLinkTarget in interface JRPrintHyperlinklinkTarget - 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 JRBasePrintElementT - the type of the argument passed to the visit operationvisitor - the visitor objectsarg - the argument passed to the visit operationCopyright © 2017. All rights reserved.