|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 Form| Field 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. |
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()
|
String |
getLinkTarget()
Returns the hyperlink target name. |
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(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(String linkTarget)
Sets the hyperlink target name. |
void |
setLinkType(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(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 template| Method 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 JRBoxContainerpublic ModeEnum getModeValue()
JRCommonElement
getModeValue in interface JRCommonElementgetModeValue in class JRTemplateElementpublic ScaleImageEnum getScaleImageValue()
JRCommonImage
getScaleImageValue in interface JRCommonImageScaleImageEnumpublic ScaleImageEnum getOwnScaleImageValue()
JRCommonImage
getOwnScaleImageValue in interface JRCommonImageScaleImageEnumpublic void setScaleImage(ScaleImageEnum scaleImageValue)
JRCommonImage
setScaleImage 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()
JRAlignment
getHorizontalAlignmentValue in interface JRAlignmentHorizontalAlignEnumpublic HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalAlignmentValue in interface JRAlignmentpublic void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
JRAlignment
setHorizontalAlignment in interface JRAlignmenthorizontalAlignmentValue - a value representing one of the horizontal alignment constants in HorizontalAlignEnumpublic VerticalAlignEnum getVerticalAlignmentValue()
JRAlignment
getVerticalAlignmentValue in interface JRAlignmentVerticalAlignEnumpublic VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalAlignmentValue in interface JRAlignmentpublic void setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
JRAlignment
setVerticalAlignment in interface JRAlignmentverticalAlignmentValue - a value representing one of the vertical alignment constants in VerticalAlignEnumpublic 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)
Deduplicable
isIdentical in interface Deduplicableobject - 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 | |||||||||