|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.fill.JRTemplateElement net.sf.jasperreports.engine.fill.JRTemplateGraphicElement net.sf.jasperreports.engine.fill.JRTemplateImage
public class JRTemplateImage
Image information shared by multiple print image objects.
JRTemplatePrintImage
,
Serialized FormField Summary | |
---|---|
protected boolean |
isLazy
|
protected OnErrorTypeEnum |
onErrorTypeValue
|
Fields inherited from class net.sf.jasperreports.engine.fill.JRTemplateGraphicElement |
---|
linePen |
Fields inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement |
---|
defaultStyleProvider, origin, parentStyle |
Constructor Summary | |
---|---|
|
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)
|
Method Summary | |
---|---|
void |
copyLineBox(JRLineBox box)
Copies box attributes. |
java.lang.Float |
getDefaultLineWidth()
|
int |
getHashCode()
Returns a hash code to be used for the deduplicate map. |
HorizontalAlignEnum |
getHorizontalAlignmentValue()
Gets the text horizontal alignment. |
HyperlinkTargetEnum |
getHyperlinkTargetValue()
|
HyperlinkTypeEnum |
getHyperlinkTypeValue()
Retrieves the hyperlink type for the element. |
JRLineBox |
getLineBox()
|
java.lang.String |
getLinkTarget()
Returns the hyperlink target name. |
java.lang.String |
getLinkType()
Returns the hyperlink type. |
ModeEnum |
getModeValue()
Returns the element transparency mode. |
OnErrorTypeEnum |
getOnErrorTypeValue()
|
HorizontalAlignEnum |
getOwnHorizontalAlignmentValue()
|
ScaleImageEnum |
getOwnScaleImageValue()
Gets the image own scale type. |
VerticalAlignEnum |
getOwnVerticalAlignmentValue()
|
ScaleImageEnum |
getScaleImageValue()
Gets the image scale type. |
VerticalAlignEnum |
getVerticalAlignmentValue()
Gets the text vertical alignment. |
boolean |
isIdentical(java.lang.Object object)
Determines if this instance is identical to another object. |
boolean |
isLazy()
|
boolean |
isUsingCache()
|
protected void |
setChart(JRChart chart)
|
void |
setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
Sets the text horizontal alignment. |
protected void |
setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
|
protected void |
setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
Sets the link type as a built-in hyperlink type. |
protected void |
setImage(JRImage image)
|
void |
setLazy(boolean isLazy)
|
void |
setLinkTarget(java.lang.String linkTarget)
Sets the hyperlink target name. |
void |
setLinkType(java.lang.String linkType)
Sets the hyperlink type. |
void |
setOnErrorType(OnErrorTypeEnum onErrorTypeValue)
|
void |
setScaleImage(ScaleImageEnum scaleImageValue)
Sets the image scale type. |
void |
setUsingCache(boolean isUsingCache)
|
void |
setUsingCache(java.lang.Boolean isUsingCache)
|
void |
setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
Gets the text vertical alignment. |
Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplateGraphicElement |
---|
addGraphicHash, copyLinePen, getDefaultLineColor, getFillValue, getLinePen, getOwnFillValue, graphicIdentical, setFill, setGraphicElement |
Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement |
---|
addTemplateHash, getBackcolor, getBaseStyle, getDefaultStyleProvider, getForecolor, getHeight, getId, getKey, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getStyle, getStyleNameReference, getUUID, getWidth, hasProperties, setBackcolor, setElement, setForecolor, setKey, setMode, setStyle, templateIdentical |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonGraphicElement |
---|
getFillValue, getLinePen, getOwnFillValue, setFill |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
---|
getBackcolor, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode |
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable |
---|
getUUID |
Methods inherited from interface net.sf.jasperreports.engine.JRPenContainer |
---|
getDefaultLineColor |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Methods inherited from interface net.sf.jasperreports.engine.JRBoxContainer |
---|
getDefaultLineColor |
Field Detail |
---|
protected boolean isLazy
protected OnErrorTypeEnum onErrorTypeValue
Constructor Detail |
---|
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 templateMethod Detail |
---|
protected 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(java.lang.Boolean isUsingCache)
public HorizontalAlignEnum getHorizontalAlignmentValue()
JRAlignment
getHorizontalAlignmentValue
in interface JRAlignment
HorizontalAlignEnum
public HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalAlignmentValue
in interface JRAlignment
public void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
JRAlignment
setHorizontalAlignment
in interface JRAlignment
horizontalAlignmentValue
- a value representing one of the horizontal alignment constants in HorizontalAlignEnum
public VerticalAlignEnum getVerticalAlignmentValue()
JRAlignment
getVerticalAlignmentValue
in interface JRAlignment
VerticalAlignEnum
public VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalAlignmentValue
in interface JRAlignment
public void setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
JRAlignment
setVerticalAlignment
in interface JRAlignment
verticalAlignmentValue
- a value representing one of the vertical alignment constants in VerticalAlignEnum
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 java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.lang.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(java.lang.Object object)
Deduplicable
isIdentical
in interface Deduplicable
object
- the object to compare with this instance
true
if the two objects are identical and can be deduplicated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |