Class JRBasePrintImage
- All Implemented Interfaces:
Serializable,JRBoxContainer,JRCommonElement,JRCommonGraphicElement,JRCommonImage,JRIdentifiable,JRImageAlignment,JRPenContainer,JRPrintAnchor,JRPrintElement,JRPrintGraphicElement,JRPrintHyperlink,JRPrintImage,JRPropertiesHolder,JRStyleContainer
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected intThe bookmark level for the anchor associated with this field.protected HorizontalImageAlignEnumprotected Stringprotected Integerprotected JRPrintHyperlinkParametersprotected Stringprotected Stringprotected Booleanprotected JRLineBoxprotected Stringprotected Stringprotected OnErrorTypeEnumprotected Renderableprotected RotationEnumprotected ScaleImageEnumprotected VerticalImageAlignEnumFields inherited from class net.sf.jasperreports.engine.base.JRBasePrintGraphicElement
fill, linePenFields inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement
backcolor, defaultStyleProvider, forecolor, height, key, mode, origin, style, uuid, width, x, yFields inherited from interface net.sf.jasperreports.engine.JRPrintElement
UNSET_PRINT_ELEMENT_ID, UNSET_SOURCE_ELEMENT_IDFields inherited from interface net.sf.jasperreports.engine.JRPrintHyperlink
PROPERTY_IGNORE_HYPERLINK_SUFFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidaccept(PrintElementVisitor<T> visitor, T arg) Accepts a print element visitor.voidaddHyperlinkParameter(JRPrintHyperlinkParameter parameter) Adds a custom hyperlink parameter.voidintReturns the level of the bookmark corresponding to the anchor.Gets the image horizontal alignment.Returns the set of custom hyperlink parameters.Returns the hyperlink tooltip.Retrieves the hyperlink type for the element.Returns the hyperlink target name.Returns the hyperlink type.getMode()Returns the element transparency mode.Gets the image own rotation.Gets the image own scale type.Gets the image rotation.Gets the image scale type.Gets the image vertical alignment.booleanvoidsetAnchorName(String anchorName) voidsetBookmarkLevel(int bookmarkLevel) Sets the boomark level for the anchor.voidsetHorizontalImageAlign(HorizontalImageAlignEnum horizontalImageAlign) Sets the image horizontal alignment.voidsetHyperlinkAnchor(String hyperlinkAnchor) voidsetHyperlinkPage(Integer hyperlinkPage) voidsetHyperlinkPage(String hyperlinkPage) voidsetHyperlinkParameters(JRPrintHyperlinkParameters hyperlinkParameters) Sets the custom hyperlink parameters.voidsetHyperlinkReference(String hyperlinkReference) voidsetHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget) voidsetHyperlinkTooltip(String hyperlinkTooltip) Sets the tooltip to be used for the hyperlink.voidsetHyperlinkType(HyperlinkTypeEnum hyperlinkType) Sets the link type as a built-in hyperlink type.voidsetLinkTarget(String linkTarget) Sets the hyperlink target name.voidsetLinkType(String linkType) Sets the hyperlink type.voidsetOnErrorType(OnErrorTypeEnum onErrorType) voidsetRenderer(Renderable renderable) voidsetRotation(RotationEnum rotation) Sets the image rotation.voidsetScaleImage(ScaleImageEnum scaleImage) Sets the image scale type.voidsetUsingCache(boolean isUsingCache) voidsetVerticalImageAlign(VerticalImageAlignEnum verticalImageAlign) Gets the image vertical alignment.Methods inherited from class net.sf.jasperreports.engine.base.JRBasePrintGraphicElement
copyPen, getDefaultLineColor, getFill, getLinePen, getOwnFill, setFillMethods inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, getParentProperties, getPrintElementId, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setKey, setMode, setOrigin, setPrintElementId, setSourceElementId, setStyle, setUUID, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.engine.JRBoxContainer
getDefaultLineColorMethods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getOwnBackcolor, getOwnForecolor, getOwnMode, setBackcolor, setForecolor, setModeMethods inherited from interface net.sf.jasperreports.engine.JRCommonGraphicElement
getFill, getLinePen, getOwnFillMethods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUIDMethods inherited from interface net.sf.jasperreports.engine.JRPenContainer
getDefaultLineColorMethods inherited from interface net.sf.jasperreports.engine.JRPrintElement
getHeight, getKey, getOrigin, getPrintElementId, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setUUID, setWidth, setX, setYMethods inherited from interface net.sf.jasperreports.engine.JRPrintGraphicElement
setFillMethods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasPropertiesMethods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Field Details
-
renderable
-
scaleImage
-
rotation
-
isUsingCache
-
horizontalImageAlign
-
verticalImageAlign
-
onErrorType
-
lineBox
-
anchorName
-
linkType
-
linkTarget
-
hyperlinkReference
-
hyperlinkAnchor
-
hyperlinkPage
-
hyperlinkTooltip
-
hyperlinkParameters
-
bookmarkLevel
protected int bookmarkLevelThe bookmark level for the anchor associated with this field.- See Also:
-
-
Constructor Details
-
JRBasePrintImage
-
-
Method Details
-
getMode
Description copied from interface:JRCommonElementReturns the element transparency mode. The default value depends on the type of the report element. Graphic elements like rectangles and lines are opaque by default, but the images are transparent. Both static texts and text fields are transparent by default, and so are the subreport elements.- Specified by:
getModein interfaceJRCommonElement- Overrides:
getModein classJRBasePrintElement
-
getRenderer
- Specified by:
getRendererin interfaceJRPrintImage
-
setRenderer
- Specified by:
setRendererin interfaceJRPrintImage
-
getScaleImage
Description copied from interface:JRCommonImageGets the image scale type.- Specified by:
getScaleImagein interfaceJRCommonImage- Returns:
- a value representing one of the scale type constants in
ScaleImageEnum
-
getOwnScaleImage
Description copied from interface:JRCommonImageGets the image own scale type.- Specified by:
getOwnScaleImagein interfaceJRCommonImage- Returns:
- a value representing one of the scale type constants in
ScaleImageEnum
-
setScaleImage
Description copied from interface:JRCommonImageSets the image scale type.- Specified by:
setScaleImagein interfaceJRCommonImage- Parameters:
scaleImage- a value representing one of the scale type constants inScaleImageEnum
-
getRotation
Description copied from interface:JRCommonImageGets the image rotation.- Specified by:
getRotationin interfaceJRCommonImage- Returns:
- a value representing one of the image rotation constants in
RotationEnum
-
getOwnRotation
Description copied from interface:JRCommonImageGets the image own rotation.- Specified by:
getOwnRotationin interfaceJRCommonImage- Returns:
- a value representing one of the image rotation constants in
RotationEnum
-
setRotation
Description copied from interface:JRCommonImageSets the image rotation.- Specified by:
setRotationin interfaceJRCommonImage- Parameters:
rotation- a value representing one of the image rotation constants inRotationEnum
-
isUsingCache
public boolean isUsingCache()- Specified by:
isUsingCachein interfaceJRPrintImage
-
setUsingCache
public void setUsingCache(boolean isUsingCache) - Specified by:
setUsingCachein interfaceJRPrintImage
-
getHorizontalImageAlign
Description copied from interface:JRImageAlignmentGets the image horizontal alignment.- Specified by:
getHorizontalImageAlignin interfaceJRImageAlignment- Returns:
- a value representing one of the horizontal image alignment constants in
HorizontalImageAlignEnum
-
getOwnHorizontalImageAlign
- Specified by:
getOwnHorizontalImageAlignin interfaceJRImageAlignment
-
setHorizontalImageAlign
Description copied from interface:JRImageAlignmentSets the image horizontal alignment.- Specified by:
setHorizontalImageAlignin interfaceJRImageAlignment- Parameters:
horizontalImageAlign- a value representing one of the horizontal image alignment constants inHorizontalImageAlignEnum
-
getVerticalImageAlign
Description copied from interface:JRImageAlignmentGets the image vertical alignment.- Specified by:
getVerticalImageAlignin interfaceJRImageAlignment- Returns:
- a value representing one of the vertical image alignment constants in
VerticalImageAlignEnum
-
getOwnVerticalImageAlign
- Specified by:
getOwnVerticalImageAlignin interfaceJRImageAlignment
-
setVerticalImageAlign
Description copied from interface:JRImageAlignmentGets the image vertical alignment.- Specified by:
setVerticalImageAlignin interfaceJRImageAlignment- Parameters:
verticalImageAlign- a value representing one of the vertical image alignment constants inVerticalImageAlignEnum
-
getOnErrorType
- Specified by:
getOnErrorTypein interfaceJRPrintImage
-
setOnErrorType
- Specified by:
setOnErrorTypein interfaceJRPrintImage
-
getLineBox
- Specified by:
getLineBoxin interfaceJRBoxContainer
-
copyBox
-
getDefaultLineWidth
- Specified by:
getDefaultLineWidthin interfaceJRPenContainer- Overrides:
getDefaultLineWidthin classJRBasePrintGraphicElement
-
getAnchorName
- Specified by:
getAnchorNamein interfaceJRPrintAnchor
-
setAnchorName
- Specified by:
setAnchorNamein interfaceJRPrintAnchor
-
getHyperlinkType
Description copied from interface:JRPrintHyperlinkRetrieves the hyperlink type for the element.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,CUSTOMis returned.- Specified by:
getHyperlinkTypein interfaceJRPrintHyperlink- Returns:
- one of the hyperlink type constants
- See Also:
-
setHyperlinkType
Description copied from interface:JRPrintHyperlinkSets the link type as a built-in hyperlink type.- Specified by:
setHyperlinkTypein interfaceJRPrintHyperlink- Parameters:
hyperlinkType- the built-in hyperlink type- See Also:
-
getHyperlinkTarget
- Specified by:
getHyperlinkTargetin interfaceJRPrintHyperlink
-
setHyperlinkTarget
- Specified by:
setHyperlinkTargetin interfaceJRPrintHyperlink
-
getHyperlinkReference
- Specified by:
getHyperlinkReferencein interfaceJRPrintHyperlink
-
setHyperlinkReference
- Specified by:
setHyperlinkReferencein interfaceJRPrintHyperlink
-
getHyperlinkAnchor
- Specified by:
getHyperlinkAnchorin interfaceJRPrintHyperlink
-
setHyperlinkAnchor
- Specified by:
setHyperlinkAnchorin interfaceJRPrintHyperlink
-
getHyperlinkPage
- Specified by:
getHyperlinkPagein interfaceJRPrintHyperlink
-
setHyperlinkPage
- Specified by:
setHyperlinkPagein interfaceJRPrintHyperlink
-
setHyperlinkPage
-
getBookmarkLevel
public int getBookmarkLevel()Description copied from interface:JRPrintAnchorReturns the level of the bookmark corresponding to the anchor.- Specified by:
getBookmarkLevelin interfaceJRPrintAnchor- Returns:
- the level of the bookmark corresponding to the anchor (starting from 1)
or
NO_BOOKMARKif no bookmark should be created for this anchor
-
setBookmarkLevel
public void setBookmarkLevel(int bookmarkLevel) Description copied from interface:JRPrintAnchorSets the boomark level for the anchor.- Specified by:
setBookmarkLevelin interfaceJRPrintAnchor- Parameters:
bookmarkLevel- the bookmark level (starting from 1) orNO_BOOKMARKif no bookmark should be created
-
getHyperlinkParameters
Description copied from interface:JRPrintHyperlinkReturns the set of custom hyperlink parameters.- Specified by:
getHyperlinkParametersin interfaceJRPrintHyperlink- Returns:
- the set of custom hyperlink parameters
- See Also:
-
setHyperlinkParameters
Description copied from interface:JRPrintHyperlinkSets the custom hyperlink parameters.These parameters will be used to produce the actual hyperlink when the report is exported.
- Specified by:
setHyperlinkParametersin interfaceJRPrintHyperlink- Parameters:
hyperlinkParameters- the set of custom hyperlink parameters
-
addHyperlinkParameter
Adds a custom hyperlink parameter.- Parameters:
parameter- the parameter to add- See Also:
-
getLinkType
Description copied from interface:JRPrintHyperlinkReturns the hyperlink type.- Specified by:
getLinkTypein interfaceJRPrintHyperlink- Returns:
- the hyperlink type
-
setLinkType
Description copied from interface:JRPrintHyperlinkSets the hyperlink type.The type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
- Specified by:
setLinkTypein interfaceJRPrintHyperlink- Parameters:
linkType- the hyperlink type
-
getLinkTarget
Description copied from interface:JRPrintHyperlinkReturns the hyperlink target name.The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
- Specified by:
getLinkTargetin interfaceJRPrintHyperlink- Returns:
- the hyperlink type
-
setLinkTarget
Description copied from interface:JRPrintHyperlinkSets the hyperlink target name.The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
- Specified by:
setLinkTargetin interfaceJRPrintHyperlink- Parameters:
linkTarget- the hyperlink target name
-
getHyperlinkTooltip
Description copied from interface:JRPrintHyperlinkReturns the hyperlink tooltip.- Specified by:
getHyperlinkTooltipin interfaceJRPrintHyperlink- Returns:
- the hyperlink tooltip
-
setHyperlinkTooltip
Description copied from interface:JRPrintHyperlinkSets the tooltip to be used for the hyperlink.- Specified by:
setHyperlinkTooltipin interfaceJRPrintHyperlink- Parameters:
hyperlinkTooltip- the tooltip
-
accept
Description copied from interface:JRPrintElementAccepts a print element visitor.The element calls the method that corresponds to the element type on the visitor.
- Specified by:
acceptin interfaceJRPrintElement- Overrides:
acceptin classJRBasePrintElement- Type Parameters:
T- the type of the argument passed to the visit operation- Parameters:
visitor- the visitor objectsarg- the argument passed to the visit operation
-