public class JRTemplateImage extends JRTemplateGraphicElement implements JRAlignment, JRImageAlignment, JRCommonImage
JRTemplatePrintImage,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isLazy |
protected OnErrorTypeEnum |
onErrorTypeValue |
linePendefaultStyleProvider, origin, parentStyle| Modifier | Constructor and Description |
|---|---|
|
JRTemplateImage(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider)
Creates a template image.
|
protected |
JRTemplateImage(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider,
JRChart chart) |
protected |
JRTemplateImage(JROrigin origin,
JRDefaultStyleProvider defaultStyleProvider,
JRImage image) |
addGraphicHash, copyLinePen, getDefaultLineColor, getFillValue, getLinePen, getOwnFillValue, graphicIdentical, setFill, setGraphicElementaddTemplateHash, getBackcolor, getBaseStyle, getDefaultStyleProvider, getForecolor, getHeight, getId, getKey, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getStyle, getStyleNameReference, getStyleResolver, getWidth, hasProperties, setBackcolor, setElement, setForecolor, setKey, setMode, setStyle, templateIdenticalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFillValue, getLinePen, getOwnFillValue, setFillgetBackcolor, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setModegetDefaultLineColorgetDefaultStyleProvider, getStyle, getStyleNameReferencegetDefaultLineColorprotected boolean isLazy
protected OnErrorTypeEnum onErrorTypeValue
protected JRTemplateImage(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRImage image)
protected JRTemplateImage(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRChart chart)
public JRTemplateImage(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider)
origin - the origin of the elements that will use this templatedefaultStyleProvider - the default style provider to use for
this templateprotected void setImage(JRImage image)
protected void setChart(JRChart chart)
public void copyLineBox(JRLineBox box)
box - the object to copy attributes frompublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerpublic ModeEnum getModeValue()
JRCommonElementgetModeValue in interface JRCommonElementgetModeValue in class JRTemplateElementpublic 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()
public void setUsingCache(boolean isUsingCache)
public void setUsingCache(Boolean isUsingCache)
public 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()
public void setLazy(boolean isLazy)
public OnErrorTypeEnum getOnErrorTypeValue()
public void setOnErrorType(OnErrorTypeEnum onErrorTypeValue)
public HyperlinkTypeEnum getHyperlinkTypeValue()
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.
getLinkType()protected void setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
hyperlinkType - the built-in hyperlink typegetLinkType()public HyperlinkTargetEnum getHyperlinkTargetValue()
protected void setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
public String getLinkTarget()
The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
public void setLinkTarget(String linkTarget)
The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
linkTarget - the hyperlink target namepublic String getLinkType()
The type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
public void setLinkType(String linkType)
The type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
linkType - the hyperlink typepublic Float getDefaultLineWidth()
getDefaultLineWidth in interface JRPenContainergetDefaultLineWidth in class JRTemplateGraphicElementpublic int getHashCode()
DeduplicableDeduplicable.isIdentical(Object),
i.e. if two objects are identical they should have the same hash code.getHashCode in interface Deduplicablepublic boolean isIdentical(Object object)
DeduplicableisIdentical in interface Deduplicableobject - the object to compare with this instancetrue if the two objects are identical and can be deduplicatedCopyright © 2017. All rights reserved.