|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.base.JRBasePrintElement
net.sf.jasperreports.engine.base.JRBasePrintGraphicElement
net.sf.jasperreports.engine.base.JRBasePrintImage
public class JRBasePrintImage
| Field Summary | |
|---|---|
protected String |
anchorName
|
protected int |
bookmarkLevel
The bookmark level for the anchor associated with this field. |
protected HorizontalAlignEnum |
horizontalAlignmentValue
|
protected String |
hyperlinkAnchor
|
protected Integer |
hyperlinkPage
|
protected JRPrintHyperlinkParameters |
hyperlinkParameters
|
protected String |
hyperlinkReference
|
protected String |
hyperlinkTooltip
|
protected boolean |
isLazy
|
protected Boolean |
isUsingCache
|
protected JRLineBox |
lineBox
|
protected String |
linkTarget
|
protected String |
linkType
|
protected OnErrorTypeEnum |
onErrorTypeValue
|
protected Renderable |
renderable
|
protected ScaleImageEnum |
scaleImageValue
|
protected VerticalAlignEnum |
verticalAlignmentValue
|
| Fields inherited from class net.sf.jasperreports.engine.base.JRBasePrintGraphicElement |
|---|
fillValue, linePen |
| Fields inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement |
|---|
backcolor, defaultStyleProvider, forecolor, height, key, modeValue, origin, style, uuid, width, x, y |
| Fields inherited from interface net.sf.jasperreports.engine.JRPrintElement |
|---|
UNSET_SOURCE_ELEMENT_ID |
| Constructor Summary | |
|---|---|
JRBasePrintImage(JRDefaultStyleProvider defaultStyleProvider)
|
|
| Method Summary | ||
|---|---|---|
|
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor. |
|
void |
addHyperlinkParameter(JRPrintHyperlinkParameter parameter)
Adds a custom hyperlink parameter. |
|
void |
copyBox(JRLineBox lineBox)
|
|
String |
getAnchorName()
|
|
int |
getBookmarkLevel()
Returns the level of the bookmark corresponding to the anchor. |
|
Float |
getDefaultLineWidth()
|
|
HorizontalAlignEnum |
getHorizontalAlignmentValue()
Gets the text horizontal alignment. |
|
String |
getHyperlinkAnchor()
|
|
Integer |
getHyperlinkPage()
|
|
JRPrintHyperlinkParameters |
getHyperlinkParameters()
Returns the set of custom hyperlink parameters. |
|
String |
getHyperlinkReference()
|
|
HyperlinkTargetEnum |
getHyperlinkTargetValue()
|
|
String |
getHyperlinkTooltip()
Returns the hyperlink tooltip. |
|
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()
|
|
Renderable |
getRenderable()
|
|
JRRenderable |
getRenderer()
Deprecated. Replaced by getRenderable(). |
|
ScaleImageEnum |
getScaleImageValue()
Gets the image scale type. |
|
VerticalAlignEnum |
getVerticalAlignmentValue()
Gets the text vertical alignment. |
|
boolean |
isLazy()
|
|
boolean |
isUsingCache()
|
|
void |
setAnchorName(String anchorName)
|
|
void |
setBookmarkLevel(int bookmarkLevel)
Sets the boomark level for the anchor. |
|
void |
setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
Sets the text horizontal alignment. |
|
void |
setHyperlinkAnchor(String hyperlinkAnchor)
|
|
void |
setHyperlinkPage(Integer hyperlinkPage)
|
|
void |
setHyperlinkPage(String hyperlinkPage)
|
|
void |
setHyperlinkParameters(JRPrintHyperlinkParameters hyperlinkParameters)
Sets the custom hyperlink parameters. |
|
void |
setHyperlinkReference(String hyperlinkReference)
|
|
void |
setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
|
|
void |
setHyperlinkTooltip(String hyperlinkTooltip)
Sets the tooltip to be used for the hyperlink. |
|
void |
setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
Sets the link type as a built-in hyperlink type. |
|
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 |
setRenderable(Renderable renderable)
|
|
void |
setRenderer(JRRenderable renderer)
Deprecated. Replaced by setRenderable(Renderable). |
|
void |
setScaleImage(ScaleImageEnum scaleImageValue)
Sets the image scale type. |
|
void |
setUsingCache(boolean isUsingCache)
|
|
void |
setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
Gets the text vertical alignment. |
|
| Methods inherited from class net.sf.jasperreports.engine.base.JRBasePrintGraphicElement |
|---|
copyPen, getDefaultLineColor, getFillValue, getLinePen, getOwnFillValue, setFill |
| Methods inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement |
|---|
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getUUID, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setKey, setMode, setOrigin, setSourceElementId, setStyle, setWidth, setX, setY |
| 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.JRPrintGraphicElement |
|---|
setFill |
| Methods inherited from interface net.sf.jasperreports.engine.JRPrintElement |
|---|
getHeight, getKey, getOrigin, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setY |
| Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder |
|---|
getParentProperties, getPropertiesMap, hasProperties |
| Methods inherited from interface net.sf.jasperreports.engine.JRCommonGraphicElement |
|---|
getFillValue, getLinePen, getOwnFillValue |
| Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
|---|
getBackcolor, getForecolor, getOwnBackcolor, getOwnForecolor, getOwnModeValue, 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 Renderable renderable
protected ScaleImageEnum scaleImageValue
protected Boolean isUsingCache
protected HorizontalAlignEnum horizontalAlignmentValue
protected VerticalAlignEnum verticalAlignmentValue
protected boolean isLazy
protected OnErrorTypeEnum onErrorTypeValue
protected JRLineBox lineBox
protected String anchorName
protected String linkType
protected String linkTarget
protected String hyperlinkReference
protected String hyperlinkAnchor
protected Integer hyperlinkPage
protected String hyperlinkTooltip
protected JRPrintHyperlinkParameters hyperlinkParameters
protected int bookmarkLevel
JRAnchor.getBookmarkLevel()| Constructor Detail |
|---|
public JRBasePrintImage(JRDefaultStyleProvider defaultStyleProvider)
| Method Detail |
|---|
public ModeEnum getModeValue()
JRCommonElement
getModeValue in interface JRCommonElementgetModeValue in class JRBasePrintElementpublic Renderable getRenderable()
getRenderable in interface JRPrintImagepublic void setRenderable(Renderable renderable)
setRenderable in interface JRPrintImagepublic JRRenderable getRenderer()
getRenderable().
getRenderer in interface JRPrintImagepublic void setRenderer(JRRenderable renderer)
setRenderable(Renderable).
setRenderer in interface JRPrintImagepublic ScaleImageEnum getScaleImageValue()
JRCommonImage
getScaleImageValue in interface JRCommonImageScaleImageEnumpublic ScaleImageEnum getOwnScaleImageValue()
JRCommonImage
getOwnScaleImageValue in interface JRCommonImageScaleImageEnumpublic void setScaleImage(ScaleImageEnum scaleImageValue)
JRCommonImage
setScaleImage in interface JRCommonImagesetScaleImage in interface JRPrintImagescaleImageValue - a value representing one of the scale type constants in ScaleImageEnumpublic boolean isUsingCache()
isUsingCache in interface JRPrintImagepublic void setUsingCache(boolean isUsingCache)
setUsingCache in interface JRPrintImagepublic 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()
isLazy in interface JRPrintImagepublic void setLazy(boolean isLazy)
setLazy in interface JRPrintImagepublic OnErrorTypeEnum getOnErrorTypeValue()
getOnErrorTypeValue in interface JRPrintImagepublic void setOnErrorType(OnErrorTypeEnum onErrorTypeValue)
setOnErrorType in interface JRPrintImagepublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerpublic void copyBox(JRLineBox lineBox)
public Float getDefaultLineWidth()
getDefaultLineWidth in interface JRPenContainergetDefaultLineWidth in class JRBasePrintGraphicElementpublic String getAnchorName()
getAnchorName in interface JRPrintAnchorpublic void setAnchorName(String anchorName)
setAnchorName in interface JRPrintAnchorpublic HyperlinkTypeEnum getHyperlinkTypeValue()
JRPrintHyperlink
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.
getHyperlinkTypeValue in interface JRPrintHyperlinkJRPrintHyperlink.getLinkType()public void setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
JRPrintHyperlink
setHyperlinkType in interface JRPrintHyperlinkhyperlinkType - the built-in hyperlink typeJRPrintHyperlink.getLinkType()public HyperlinkTargetEnum getHyperlinkTargetValue()
getHyperlinkTargetValue in interface JRPrintHyperlinkpublic void setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
setHyperlinkTarget in interface JRPrintHyperlinkpublic String getHyperlinkReference()
getHyperlinkReference in interface JRPrintHyperlinkpublic void setHyperlinkReference(String hyperlinkReference)
setHyperlinkReference in interface JRPrintHyperlinkpublic String getHyperlinkAnchor()
getHyperlinkAnchor in interface JRPrintHyperlinkpublic void setHyperlinkAnchor(String hyperlinkAnchor)
setHyperlinkAnchor in interface JRPrintHyperlinkpublic Integer getHyperlinkPage()
getHyperlinkPage in interface JRPrintHyperlinkpublic void setHyperlinkPage(Integer hyperlinkPage)
setHyperlinkPage in interface JRPrintHyperlinkpublic void setHyperlinkPage(String hyperlinkPage)
public int getBookmarkLevel()
JRPrintAnchor
getBookmarkLevel in interface JRPrintAnchorNO_BOOKMARK if no bookmark should be created for this anchorpublic void setBookmarkLevel(int bookmarkLevel)
JRPrintAnchor
setBookmarkLevel in interface JRPrintAnchorbookmarkLevel - the bookmark level (starting from 1)
or NO_BOOKMARK if no bookmark should be createdpublic JRPrintHyperlinkParameters getHyperlinkParameters()
JRPrintHyperlink
getHyperlinkParameters in interface JRPrintHyperlinkJRPrintHyperlink.setHyperlinkParameters(JRPrintHyperlinkParameters),
JRPrintHyperlinkParameterpublic void setHyperlinkParameters(JRPrintHyperlinkParameters hyperlinkParameters)
JRPrintHyperlinkThese parameters will be used to produce the actual hyperlink when the report is exported.
setHyperlinkParameters in interface JRPrintHyperlinkhyperlinkParameters - the set of custom hyperlink parameterspublic void addHyperlinkParameter(JRPrintHyperlinkParameter parameter)
parameter - the parameter to addgetHyperlinkParameters(),
JRPrintHyperlinkParameters.addParameter(JRPrintHyperlinkParameter)public String getLinkType()
JRPrintHyperlink
getLinkType in interface JRPrintHyperlinkpublic void setLinkType(String linkType)
JRPrintHyperlinkThe type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
setLinkType in interface JRPrintHyperlinklinkType - the hyperlink typepublic String getLinkTarget()
JRPrintHyperlinkThe target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
getLinkTarget in interface JRPrintHyperlinkpublic void setLinkTarget(String linkTarget)
JRPrintHyperlinkThe target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
setLinkTarget in interface JRPrintHyperlinklinkTarget - the hyperlink target namepublic String getHyperlinkTooltip()
JRPrintHyperlink
getHyperlinkTooltip in interface JRPrintHyperlinkpublic void setHyperlinkTooltip(String hyperlinkTooltip)
JRPrintHyperlink
setHyperlinkTooltip in interface JRPrintHyperlinkhyperlinkTooltip - the tooltip
public <T> void accept(PrintElementVisitor<T> visitor,
T arg)
JRPrintElementThe element calls the method that corresponds to the element type on the visitor.
accept in interface JRPrintElementaccept in class JRBasePrintElementT - the type of the argument passed to the visit operationvisitor - the visitor objectsarg - the argument passed to the visit operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||