public class JRDesignImage extends JRDesignGraphicElement implements JRImage
fillValue, linePen
PROPERTY_ELEMENT_GROUP, PROPERTY_HEIGHT, PROPERTY_KEY, PROPERTY_PARENT_STYLE, PROPERTY_PARENT_STYLE_NAME_REFERENCE, PROPERTY_PRINT_WHEN_EXPRESSION, PROPERTY_PRINT_WHEN_GROUP_CHANGES, PROPERTY_PROPERTY_EXPRESSIONS, PROPERTY_Y
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, modeValue, parentStyle, parentStyleNameReference, positionTypeValue, printWhenExpression, printWhenGroupChanges, PROPERTY_POSITION_TYPE, PROPERTY_PRINT_IN_FIRST_WHOLE_BAND, PROPERTY_PRINT_REPEATED_VALUES, PROPERTY_PRINT_WHEN_DETAIL_OVERFLOWS, PROPERTY_REMOVE_LINE_WHEN_BLANK, PROPERTY_STRETCH_TYPE, PROPERTY_WIDTH, PROPERTY_X, stretchTypeValue, uuid, width, x, y
NO_BOOKMARK
Constructor and Description |
---|
JRDesignImage(JRDefaultStyleProvider defaultStyleProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addHyperlinkParameter(JRHyperlinkParameter parameter)
Adds a custom hyperlink parameter.
|
Object |
clone() |
void |
collectExpressions(JRExpressionCollector collector) |
JRExpression |
getAnchorNameExpression()
Returns an expression whose value represents the anchor name.
|
int |
getBookmarkLevel()
Returns the level of the bookmark corresponding to the anchor.
|
JRExpression |
getBookmarkLevelExpression()
Returns an expression whose value represents the bookmark level (starting from 1) corresponding to this anchor.
|
Float |
getDefaultLineWidth() |
JRGroup |
getEvaluationGroup()
Gets the evaluation group for this text field.
|
EvaluationTimeEnum |
getEvaluationTimeValue()
Gets the evaluation time for this text field.
|
JRExpression |
getExpression() |
HorizontalImageAlignEnum |
getHorizontalImageAlign()
Gets the image horizontal alignment.
|
JRExpression |
getHyperlinkAnchorExpression()
Returns the expression whose value represents the anchor.
|
JRExpression |
getHyperlinkPageExpression()
Returns an integer representing the page index of the link.
|
JRHyperlinkParameter[] |
getHyperlinkParameters()
Returns the list of hyperlink parameters.
|
List<JRHyperlinkParameter> |
getHyperlinkParametersList()
Returns the list of custom hyperlink parameters.
|
JRExpression |
getHyperlinkReferenceExpression()
Returns the expression whose value represents the hyperlink reference.
|
byte |
getHyperlinkTarget()
Retrieves the hyperlink target for the element.
|
JRExpression |
getHyperlinkTooltipExpression()
Returns the expression which will generate the hyperlink tooltip.
|
byte |
getHyperlinkType()
Deprecated.
Replaced by
getHyperlinkTypeValue() . |
HyperlinkTypeEnum |
getHyperlinkTypeValue()
Retrieves the hyperlink type for the element.
|
JRExpression |
getHyperlinkWhenExpression()
Returns the expression that is evaluated in order to decide if the hyperlink should be displayed.
|
JRLineBox |
getLineBox() |
String |
getLinkTarget()
Returns the hyperlink target name.
|
String |
getLinkType()
Returns the hyperlink type.
|
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
OnErrorTypeEnum |
getOnErrorTypeValue()
Indicates how the engine will treat a missing image.
|
HorizontalImageAlignEnum |
getOwnHorizontalImageAlign() |
RotationEnum |
getOwnRotation()
Gets the image own rotation.
|
ScaleImageEnum |
getOwnScaleImageValue()
Gets the image own scale type.
|
VerticalImageAlignEnum |
getOwnVerticalImageAlign() |
RotationEnum |
getRotation()
Gets the image rotation.
|
ScaleImageEnum |
getScaleImageValue()
Gets the image scale type.
|
Boolean |
getUsingCache()
Indicates if the engine is loading the current image from cache.
|
VerticalImageAlignEnum |
getVerticalImageAlign()
Gets the image vertical alignment.
|
boolean |
isLazy()
Indicates if the images will be loaded lazily or not.
|
void |
removeHyperlinkParameter(JRHyperlinkParameter parameter)
Removes a custom hyperlink parameter.
|
void |
removeHyperlinkParameter(String parameterName)
Removes a custom hyperlink parameter.
|
void |
setAnchorNameExpression(JRExpression anchorNameExpression) |
void |
setBookmarkLevel(int bookmarkLevel)
Sets the boomark level for the anchor associated with this image.
|
void |
setBookmarkLevelExpression(JRExpression bookmarkLevelExpression) |
void |
setEvaluationGroup(JRGroup evaluationGroup) |
void |
setEvaluationTime(EvaluationTimeEnum evaluationTimeValue)
Sets the evaluation time for this image.
|
void |
setExpression(JRExpression expression) |
void |
setHorizontalImageAlign(HorizontalImageAlignEnum horizontalImageAlign)
Sets the image horizontal alignment.
|
void |
setHyperlinkAnchorExpression(JRExpression hyperlinkAnchorExpression) |
void |
setHyperlinkPageExpression(JRExpression hyperlinkPageExpression) |
void |
setHyperlinkReferenceExpression(JRExpression hyperlinkReferenceExpression) |
void |
setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget) |
void |
setHyperlinkTooltipExpression(JRExpression hyperlinkTooltipExpression)
Sets the expression which will be used to generate the hyperlink tooltip.
|
void |
setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
Sets the link type as a built-in hyperlink type.
|
void |
setHyperlinkWhenExpression(JRExpression hyperlinkWhenExpression) |
void |
setLazy(boolean isLazy)
Gives control over when the images are retrieved from their specified location.
|
void |
setLinkTarget(String target)
Sets the hyperlink target name.
|
void |
setLinkType(String type)
Sets the hyperlink type.
|
void |
setOnErrorType(OnErrorTypeEnum onErrorTypeValue)
Specifies how the engine should treat a missing image.
|
void |
setRotation(RotationEnum rotation)
Sets the image rotation.
|
void |
setScaleImage(ScaleImageEnum scaleImageValue)
Sets the image scale type.
|
void |
setUsingCache(boolean isUsingCache)
Deprecated.
Replaced by
setUsingCache(Boolean) . |
void |
setUsingCache(Boolean isUsingCache)
Specifies if the engine should be loading the current image from cache.
|
void |
setVerticalImageAlign(VerticalImageAlignEnum verticalImageAlign)
Gets the image vertical alignment.
|
void |
visit(JRVisitor visitor) |
getDefaultLineColor, getFillValue, getLinePen, getOwnFillValue, setFill
addPropertyExpression, getPropertyExpressions, getPropertyExpressionsList, removePropertyExpression, removePropertyExpression, setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setStyle, setStyleNameReference, setUUID, setY
clone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getStretchTypeValue, getStyle, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
getParentProperties, getPropertiesMap, hasProperties
getUUID
getFillValue, getLinePen, getOwnFillValue, setFill
getBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
getDefaultLineColor
getDefaultStyleProvider, getStyle, getStyleNameReference
getDefaultLineColor
public static final String PROPERTY_ANCHOR_NAME_EXPRESSION
public static final String PROPERTY_BOOKMARK_LEVEL
public static final String PROPERTY_BOOKMARK_LEVEL_EXPRESSION
public static final String PROPERTY_EVALUATION_GROUP
public static final String PROPERTY_EVALUATION_TIME
public static final String PROPERTY_EXPRESSION
protected ScaleImageEnum scaleImageValue
protected RotationEnum rotation
protected HorizontalImageAlignEnum horizontalImageAlign
protected VerticalImageAlignEnum verticalImageAlign
protected Boolean isUsingCache
protected boolean isLazy
protected OnErrorTypeEnum onErrorTypeValue
protected EvaluationTimeEnum evaluationTimeValue
protected String linkType
protected String linkTarget
protected JRLineBox lineBox
protected JRGroup evaluationGroup
protected JRExpression expression
protected JRExpression anchorNameExpression
protected JRExpression bookmarkLevelExpression
protected JRExpression hyperlinkReferenceExpression
protected JRExpression hyperlinkWhenExpression
protected JRExpression hyperlinkAnchorExpression
protected JRExpression hyperlinkPageExpression
protected int bookmarkLevel
JRAnchor.getBookmarkLevel()
public JRDesignImage(JRDefaultStyleProvider defaultStyleProvider)
public ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRBaseElement
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 RotationEnum getRotation()
JRCommonImage
getRotation
in interface JRCommonImage
RotationEnum
public RotationEnum getOwnRotation()
JRCommonImage
getOwnRotation
in interface JRCommonImage
RotationEnum
public void setRotation(RotationEnum rotation)
JRCommonImage
setRotation
in interface JRCommonImage
rotation
- a value representing one of the image rotation constants in RotationEnum
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 getUsingCache()
JRImage
getUsingCache
in interface JRImage
public EvaluationTimeEnum getEvaluationTimeValue()
JREvaluation
getEvaluationTimeValue
in interface JREvaluation
JRExpression
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
public byte getHyperlinkType()
getHyperlinkTypeValue()
.public HyperlinkTypeEnum getHyperlinkTypeValue()
JRHyperlink
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 JRHyperlink
JRHyperlink.getLinkType()
public byte getHyperlinkTarget()
JRHyperlink
The actual hyperlink target is determined by getLinkTarget()
.
This method can is used to determine whether the hyperlink target is one of the
built-in target names or a custom one.
When hyperlink has a custom target name, HyperlinkTargetEnum.CUSTOM
is returned.
getHyperlinkTarget
in interface JRHyperlink
JRHyperlink.getLinkTarget()
public JRGroup getEvaluationGroup()
JREvaluation
getEvaluationGroup
in interface JREvaluation
EvaluationTimeEnum.GROUP
public JRExpression getExpression()
getExpression
in interface JRImage
public JRExpression getAnchorNameExpression()
JRAnchor
getAnchorNameExpression
in interface JRAnchor
public JRExpression getBookmarkLevelExpression()
JRAnchor
getBookmarkLevelExpression
in interface JRAnchor
public JRExpression getHyperlinkReferenceExpression()
JRHyperlink
getHyperlinkReferenceExpression
in interface JRHyperlink
public JRExpression getHyperlinkWhenExpression()
JRHyperlink
getHyperlinkWhenExpression
in interface JRHyperlink
public JRExpression getHyperlinkAnchorExpression()
JRHyperlink
getHyperlinkAnchorExpression
in interface JRHyperlink
public JRExpression getHyperlinkPageExpression()
JRHyperlink
getHyperlinkPageExpression
in interface JRHyperlink
public void setUsingCache(boolean isUsingCache)
setUsingCache(Boolean)
.JRImage
For image elements that have expressions returning java.lang.String objects as the image source, representing file names, URLs or classpath resources, the default value for this flag is true.
setUsingCache
in interface JRImage
public void setUsingCache(Boolean isUsingCache)
JRImage
If set to null, the engine will rely on some default value which depends on the type of the image expression. The cache is turned on by default only for images that have java.lang.String objects in their expressions.
setUsingCache
in interface JRImage
public boolean isLazy()
JRImage
public void setLazy(boolean isLazy)
JRImage
public OnErrorTypeEnum getOnErrorTypeValue()
JRImage
getOnErrorTypeValue
in interface JRImage
OnErrorTypeEnum
public void setOnErrorType(OnErrorTypeEnum onErrorTypeValue)
JRImage
setOnErrorType
in interface JRImage
onErrorTypeValue
- a value representing one of the missing image handling constants in OnErrorTypeEnum
public void setEvaluationTime(EvaluationTimeEnum evaluationTimeValue)
public void setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
hyperlinkType
- the built-in hyperlink typegetLinkType()
public void setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
public void setEvaluationGroup(JRGroup evaluationGroup)
public void setExpression(JRExpression expression)
public void setAnchorNameExpression(JRExpression anchorNameExpression)
public void setBookmarkLevelExpression(JRExpression bookmarkLevelExpression)
public void setHyperlinkReferenceExpression(JRExpression hyperlinkReferenceExpression)
public void setHyperlinkWhenExpression(JRExpression hyperlinkWhenExpression)
public void setHyperlinkAnchorExpression(JRExpression hyperlinkAnchorExpression)
public void setHyperlinkPageExpression(JRExpression hyperlinkPageExpression)
public void visit(JRVisitor visitor)
visit
in interface JRVisitable
public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRElement
public int getBookmarkLevel()
JRAnchor
getBookmarkLevel
in interface JRAnchor
NO_BOOKMARK
if no bookmark should be created for this anchorpublic void setBookmarkLevel(int bookmarkLevel)
bookmarkLevel
- the bookmark level (starting from 1)
or NO_BOOKMARK
if no bookmark should be createdpublic Float getDefaultLineWidth()
getDefaultLineWidth
in interface JRPenContainer
getDefaultLineWidth
in class JRDesignGraphicElement
public String getLinkType()
JRHyperlink
The type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
getLinkType
in interface JRHyperlink
public String getLinkTarget()
JRHyperlink
The type can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
getLinkTarget
in interface JRHyperlink
public void setLinkType(String type)
The type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
type
- the hyperlink typepublic void setLinkTarget(String target)
The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
target
- the hyperlink target namepublic JRHyperlinkParameter[] getHyperlinkParameters()
JRHyperlink
The parameters can be used by custom hyperlink types to generate dynamic links.
getHyperlinkParameters
in interface JRHyperlink
public List<JRHyperlinkParameter> getHyperlinkParametersList()
public void addHyperlinkParameter(JRHyperlinkParameter parameter)
parameter
- the parameter to addpublic void removeHyperlinkParameter(JRHyperlinkParameter parameter)
parameter
- the parameter to removepublic void removeHyperlinkParameter(String parameterName)
If multiple parameters having the specified name exist, all of them will be removed
parameterName
- the parameter namepublic JRExpression getHyperlinkTooltipExpression()
JRHyperlink
getHyperlinkTooltipExpression
in interface JRHyperlink
public void setHyperlinkTooltipExpression(JRExpression hyperlinkTooltipExpression)
hyperlinkTooltipExpression
- the expression which will be used to generate the hyperlink tooltipgetHyperlinkTooltipExpression()
public Object clone()
clone
in interface JRCloneable
clone
in class JRDesignGraphicElement
Copyright © 2021 TIBCO Software Inc.. All rights reserved.