public class JRTemplateImage extends JRTemplateGraphicElement implements JRAlignment, JRImageAlignment, JRCommonImage
JRTemplatePrintImage
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected boolean |
isLazy |
protected OnErrorTypeEnum |
onErrorTypeValue |
linePen
defaultStyleProvider, 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, setGraphicElement
addTemplateHash, getBackcolor, getBaseStyle, getDefaultStyleProvider, getForecolor, getHeight, getId, getKey, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getStyle, getStyleNameReference, getStyleResolver, getWidth, hasProperties, setBackcolor, setElement, setForecolor, setKey, setMode, setStyle, templateIdentical
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFillValue, getLinePen, getOwnFillValue, setFill
getBackcolor, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
getDefaultLineColor
getDefaultStyleProvider, getStyle, getStyleNameReference
getDefaultLineColor
protected 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 JRBoxContainer
public ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRTemplateElement
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()
public void setUsingCache(boolean isUsingCache)
public void setUsingCache(Boolean isUsingCache)
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()
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 JRPenContainer
getDefaultLineWidth
in class JRTemplateGraphicElement
public int getHashCode()
Deduplicable
Deduplicable.isIdentical(Object)
,
i.e. if two objects are identical they should have the same hash code.getHashCode
in interface Deduplicable
public boolean isIdentical(Object object)
Deduplicable
isIdentical
in interface Deduplicable
object
- the object to compare with this instancetrue
if the two objects are identical and can be deduplicatedCopyright © 2017. All rights reserved.