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, linePen
backcolor, defaultStyleProvider, forecolor, height, key, modeValue, origin, style, uuid, width, x, y
UNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_ID
PROPERTY_IGNORE_HYPERLINK_SUFFIX
Constructor and Description |
---|
JRBasePrintImage(JRDefaultStyleProvider defaultStyleProvider) |
copyPen, getDefaultLineColor, getFillValue, getLinePen, getOwnFillValue, setFill
getBackcolor, 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, setY
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, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setMode
getDefaultLineColor
getDefaultStyleProvider, getStyle, getStyleNameReference
getDefaultLineColor
protected 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()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRBasePrintElement
public Renderable getRenderable()
getRenderer()
.getRenderable
in interface JRPrintImage
public void setRenderable(Renderable renderable)
setRenderer(net.sf.jasperreports.renderers.Renderable)
.setRenderable
in interface JRPrintImage
public Renderable getRenderer()
getRenderer
in interface JRPrintImage
public void setRenderer(Renderable renderable)
setRenderer
in interface JRPrintImage
public ScaleImageEnum getScaleImageValue()
JRCommonImage
getScaleImageValue
in interface JRCommonImage
ScaleImageEnum
public ScaleImageEnum getOwnScaleImageValue()
JRCommonImage
getOwnScaleImageValue
in interface JRCommonImage
ScaleImageEnum
public void setScaleImage(ScaleImageEnum scaleImageValue)
JRCommonImage
setScaleImage
in interface JRCommonImage
scaleImageValue
- a value representing one of the scale type constants in ScaleImageEnum
public boolean isUsingCache()
isUsingCache
in interface JRPrintImage
public void setUsingCache(boolean isUsingCache)
setUsingCache
in interface JRPrintImage
public HorizontalAlignEnum getHorizontalAlignmentValue()
getHorizontalImageAlign()
.JRAlignment
getHorizontalAlignmentValue
in interface JRAlignment
HorizontalAlignEnum
public HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalImageAlign()
.getOwnHorizontalAlignmentValue
in interface JRAlignment
public void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
setHorizontalImageAlign(HorizontalImageAlignEnum)
.JRAlignment
setHorizontalAlignment
in interface JRAlignment
horizontalAlignmentValue
- a value representing one of the horizontal alignment constants in HorizontalAlignEnum
public VerticalAlignEnum getVerticalAlignmentValue()
getVerticalImageAlign()
.JRAlignment
getVerticalAlignmentValue
in interface JRAlignment
VerticalAlignEnum
public VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalImageAlign()
.getOwnVerticalAlignmentValue
in interface JRAlignment
public void setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
setVerticalImageAlign(VerticalImageAlignEnum)
.JRAlignment
setVerticalAlignment
in interface JRAlignment
verticalAlignmentValue
- a value representing one of the vertical alignment constants in VerticalAlignEnum
public HorizontalImageAlignEnum getHorizontalImageAlign()
JRImageAlignment
getHorizontalImageAlign
in interface JRImageAlignment
HorizontalImageAlignEnum
public HorizontalImageAlignEnum getOwnHorizontalImageAlign()
getOwnHorizontalImageAlign
in interface JRImageAlignment
public void setHorizontalImageAlign(HorizontalImageAlignEnum horizontalImageAlign)
JRImageAlignment
setHorizontalImageAlign
in interface JRImageAlignment
horizontalImageAlign
- a value representing one of the horizontal image alignment constants in HorizontalImageAlignEnum
public VerticalImageAlignEnum getVerticalImageAlign()
JRImageAlignment
getVerticalImageAlign
in interface JRImageAlignment
VerticalImageAlignEnum
public VerticalImageAlignEnum getOwnVerticalImageAlign()
getOwnVerticalImageAlign
in interface JRImageAlignment
public void setVerticalImageAlign(VerticalImageAlignEnum verticalImageAlign)
JRImageAlignment
setVerticalImageAlign
in interface JRImageAlignment
verticalImageAlign
- a value representing one of the vertical image alignment constants in VerticalImageAlignEnum
public boolean isLazy()
ResourceRenderer
.isLazy
in interface JRPrintImage
public void setLazy(boolean isLazy)
ResourceRenderer
.setLazy
in interface JRPrintImage
public OnErrorTypeEnum getOnErrorTypeValue()
getOnErrorTypeValue
in interface JRPrintImage
public void setOnErrorType(OnErrorTypeEnum onErrorTypeValue)
setOnErrorType
in interface JRPrintImage
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
public void copyBox(JRLineBox lineBox)
public Float getDefaultLineWidth()
getDefaultLineWidth
in interface JRPenContainer
getDefaultLineWidth
in class JRBasePrintGraphicElement
public String getAnchorName()
getAnchorName
in interface JRPrintAnchor
public void setAnchorName(String anchorName)
setAnchorName
in interface JRPrintAnchor
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 JRPrintHyperlink
JRPrintHyperlink.getLinkType()
public void setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
JRPrintHyperlink
setHyperlinkType
in interface JRPrintHyperlink
hyperlinkType
- the built-in hyperlink typeJRPrintHyperlink.getLinkType()
public HyperlinkTargetEnum getHyperlinkTargetValue()
getHyperlinkTargetValue
in interface JRPrintHyperlink
public void setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
setHyperlinkTarget
in interface JRPrintHyperlink
public String getHyperlinkReference()
getHyperlinkReference
in interface JRPrintHyperlink
public void setHyperlinkReference(String hyperlinkReference)
setHyperlinkReference
in interface JRPrintHyperlink
public String getHyperlinkAnchor()
getHyperlinkAnchor
in interface JRPrintHyperlink
public void setHyperlinkAnchor(String hyperlinkAnchor)
setHyperlinkAnchor
in interface JRPrintHyperlink
public Integer getHyperlinkPage()
getHyperlinkPage
in interface JRPrintHyperlink
public void setHyperlinkPage(Integer hyperlinkPage)
setHyperlinkPage
in interface JRPrintHyperlink
public void setHyperlinkPage(String hyperlinkPage)
public int getBookmarkLevel()
JRPrintAnchor
getBookmarkLevel
in interface JRPrintAnchor
NO_BOOKMARK
if no bookmark should be created for this anchorpublic void setBookmarkLevel(int bookmarkLevel)
JRPrintAnchor
setBookmarkLevel
in interface JRPrintAnchor
bookmarkLevel
- the bookmark level (starting from 1)
or NO_BOOKMARK
if no bookmark should be createdpublic JRPrintHyperlinkParameters getHyperlinkParameters()
JRPrintHyperlink
getHyperlinkParameters
in interface JRPrintHyperlink
JRPrintHyperlink.setHyperlinkParameters(JRPrintHyperlinkParameters)
,
JRPrintHyperlinkParameter
public void setHyperlinkParameters(JRPrintHyperlinkParameters hyperlinkParameters)
JRPrintHyperlink
These parameters will be used to produce the actual hyperlink when the report is exported.
setHyperlinkParameters
in interface JRPrintHyperlink
hyperlinkParameters
- the set of custom hyperlink parameterspublic void addHyperlinkParameter(JRPrintHyperlinkParameter parameter)
parameter
- the parameter to addgetHyperlinkParameters()
,
JRPrintHyperlinkParameters.addParameter(JRPrintHyperlinkParameter)
public String getLinkType()
JRPrintHyperlink
getLinkType
in interface JRPrintHyperlink
public void setLinkType(String linkType)
JRPrintHyperlink
The type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
setLinkType
in interface JRPrintHyperlink
linkType
- the hyperlink typepublic String getLinkTarget()
JRPrintHyperlink
The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
getLinkTarget
in interface JRPrintHyperlink
public void setLinkTarget(String linkTarget)
JRPrintHyperlink
The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
setLinkTarget
in interface JRPrintHyperlink
linkTarget
- the hyperlink target namepublic String getHyperlinkTooltip()
JRPrintHyperlink
getHyperlinkTooltip
in interface JRPrintHyperlink
public void setHyperlinkTooltip(String hyperlinkTooltip)
JRPrintHyperlink
setHyperlinkTooltip
in interface JRPrintHyperlink
hyperlinkTooltip
- the tooltippublic <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 JRBasePrintElement
T
- the type of the argument passed to the visit operationvisitor
- the visitor objectsarg
- the argument passed to the visit operationCopyright © 2017. All rights reserved.