|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.fill.JRFillElement
net.sf.jasperreports.engine.fill.JRFillGraphicElement
net.sf.jasperreports.engine.fill.JRFillImage
public class JRFillImage
| Field Summary |
|---|
| Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElement |
|---|
band, elementGroup, filler, parent, printWhenGroupChanges, template |
| Fields inherited from interface net.sf.jasperreports.engine.JRImage |
|---|
ON_ERROR_TYPE_BLANK, ON_ERROR_TYPE_ERROR, ON_ERROR_TYPE_ICON, SCALE_IMAGE_CLIP, SCALE_IMAGE_FILL_FRAME, SCALE_IMAGE_RETAIN_SHAPE |
| Fields inherited from interface net.sf.jasperreports.engine.JRGraphicElement |
|---|
FILL_SOLID, PEN_1_POINT, PEN_2_POINT, PEN_4_POINT, PEN_DOTTED, PEN_NONE, PEN_THIN |
| Fields inherited from interface net.sf.jasperreports.engine.JRElement |
|---|
MODE_OPAQUE, MODE_TRANSPARENT, POSITION_TYPE_FIX_RELATIVE_TO_BOTTOM, POSITION_TYPE_FIX_RELATIVE_TO_TOP, POSITION_TYPE_FLOAT, STRETCH_TYPE_NO_STRETCH, STRETCH_TYPE_RELATIVE_TO_BAND_HEIGHT, STRETCH_TYPE_RELATIVE_TO_TALLEST_OBJECT |
| Fields inherited from interface net.sf.jasperreports.engine.JRAnchor |
|---|
NO_BOOKMARK |
| Fields inherited from interface net.sf.jasperreports.engine.JRHyperlink |
|---|
HYPERLINK_TARGET_BLANK, HYPERLINK_TARGET_SELF, HYPERLINK_TYPE_LOCAL_ANCHOR, HYPERLINK_TYPE_LOCAL_PAGE, HYPERLINK_TYPE_NONE, HYPERLINK_TYPE_REFERENCE, HYPERLINK_TYPE_REMOTE_ANCHOR, HYPERLINK_TYPE_REMOTE_PAGE |
| Fields inherited from interface net.sf.jasperreports.engine.JRAlignment |
|---|
HORIZONTAL_ALIGN_CENTER, HORIZONTAL_ALIGN_JUSTIFIED, HORIZONTAL_ALIGN_LEFT, HORIZONTAL_ALIGN_RIGHT, VERTICAL_ALIGN_BOTTOM, VERTICAL_ALIGN_JUSTIFIED, VERTICAL_ALIGN_MIDDLE, VERTICAL_ALIGN_TOP |
| Constructor Summary | |
|---|---|
protected |
JRFillImage(JRBaseFiller filler,
JRImage image,
JRFillObjectFactory factory)
|
| Method Summary | |
|---|---|
void |
collectExpressions(JRExpressionCollector collector)
|
protected void |
copy(JRPrintImage printImage)
|
protected void |
evaluate(byte evaluation)
|
protected void |
evaluateImage(byte evaluation)
|
protected JRPrintElement |
fill()
|
protected java.lang.String |
getAnchorName()
|
JRExpression |
getAnchorNameExpression()
Returns an expression whose value represents the anchor name. |
int |
getBookmarkLevel()
Returns the level of the bookmark corresponding to the anchor. |
JRBox |
getBox()
Returns an object containing all border and padding properties for this text element |
JRChild |
getCopy(JRAbstractObjectFactory factory)
|
JRGroup |
getEvaluationGroup()
Indicates the evaluation time for this image. |
byte |
getEvaluationTime()
Indicates the evaluation time for this image. |
JRExpression |
getExpression()
Gets the evaluation group for this text field. |
byte |
getHorizontalAlignment()
Gets the horizontal alignment of the element. |
protected java.lang.String |
getHyperlinkAnchor()
|
JRExpression |
getHyperlinkAnchorExpression()
Returns the expression whose value represents the anchor. |
protected java.lang.Integer |
getHyperlinkPage()
|
JRExpression |
getHyperlinkPageExpression()
Returns an integer representing the page index of the link. |
protected java.lang.String |
getHyperlinkReference()
|
JRExpression |
getHyperlinkReferenceExpression()
Returns the expression whose value represents the hyperlink reference. |
byte |
getHyperlinkTarget()
Retrieves the hyperlink target for the element. |
byte |
getHyperlinkType()
Retrieves the hyperlink type for the element. |
protected JRTemplateImage |
getJRTemplateImage()
|
byte |
getOnErrorType()
Indicates how the engine will treat a missing image. |
protected JRRenderable |
getRenderer()
|
byte |
getScaleImage()
Gets the image scale type. |
byte |
getVerticalAlignment()
Gets the vertical alignment of the element. |
boolean |
isLazy()
Indicates if the images will be loaded lazily or not. |
java.lang.Boolean |
isOwnUsingCache()
Indicates if the engine is loading the current image from cache. |
boolean |
isUsingCache()
Indicates if the engine is loading the current image from cache. |
protected boolean |
prepare(int availableStretchHeight,
boolean isOverflow)
|
protected void |
resolveElement(JRPrintElement element,
byte evaluation)
Resolves an element. |
void |
setHorizontalAlignment(byte horizontalAlignment)
Sets the horizontal alignment of the element. |
void |
setLazy(boolean isLazy)
Gives control over when the images are retrieved from their specified location. |
void |
setOnErrorType(byte onErrorType)
Specifies how the engine should treat a missing image. |
void |
setScaleImage(byte scaleImage)
Sets the image scale type. |
void |
setUsingCache(boolean isUsingCache)
Specifies if the engine should be loading the current image from cache. |
void |
setUsingCache(java.lang.Boolean isUsingCache)
Specifies if the engine should be loading the current image from cache. |
void |
setVerticalAlignment(byte verticalAlignment)
Sets the vertical alignment of the element. |
void |
writeXml(JRXmlWriter xmlWriter)
|
| Methods inherited from class net.sf.jasperreports.engine.fill.JRFillGraphicElement |
|---|
getFill, getPen, rewind, setFill, setPen |
| 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.JRGraphicElement |
|---|
getFill, getPen, setFill, setPen |
| Methods inherited from interface net.sf.jasperreports.engine.JRElement |
|---|
getBackcolor, getElementGroup, getForecolor, getHeight, getKey, getMode, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getStretchType, getWidth, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX |
| Constructor Detail |
|---|
protected JRFillImage(JRBaseFiller filler,
JRImage image,
JRFillObjectFactory factory)
| Method Detail |
|---|
public byte getScaleImage()
JRImage
getScaleImage in interface JRImagepublic void setScaleImage(byte scaleImage)
JRImage
setScaleImage in interface JRImagescaleImage - one of the scale constants in this classpublic byte getHorizontalAlignment()
JRImage
getHorizontalAlignment in interface JRAlignmentgetHorizontalAlignment in interface JRImageJRAlignmentpublic void setHorizontalAlignment(byte horizontalAlignment)
JRImage
setHorizontalAlignment in interface JRAlignmentsetHorizontalAlignment in interface JRImagehorizontalAlignment - one of the alignment values defined in JRAlignmentpublic byte getVerticalAlignment()
JRImage
getVerticalAlignment in interface JRAlignmentgetVerticalAlignment in interface JRImageJRAlignmentpublic void setVerticalAlignment(byte verticalAlignment)
JRImage
setVerticalAlignment in interface JRAlignmentsetVerticalAlignment in interface JRImageverticalAlignment - one of the alignment values defined in JRAlignmentpublic boolean isUsingCache()
JRImage
isUsingCache in interface JRImagepublic java.lang.Boolean isOwnUsingCache()
JRImage
isOwnUsingCache in interface JRImagepublic void setUsingCache(boolean isUsingCache)
JRImageFor 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 JRImagepublic void setUsingCache(java.lang.Boolean isUsingCache)
JRImageIf 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 JRImagepublic boolean isLazy()
JRImage
isLazy in interface JRImagepublic void setLazy(boolean isLazy)
JRImage
setLazy in interface JRImageisLazy - specifies whetherpublic byte getOnErrorType()
JRImage
getOnErrorType in interface JRImagepublic void setOnErrorType(byte onErrorType)
JRImage
setOnErrorType in interface JRImageonErrorType - one of the constants for missing image error typespublic byte getEvaluationTime()
JRImage
getEvaluationTime in interface JRImageJRExpressionpublic JRGroup getEvaluationGroup()
JRImage
getEvaluationGroup in interface JRImageJRExpressionpublic JRBox getBox()
JRImage
getBox in interface JRImagepublic byte getHyperlinkType()
JRHyperlink
getHyperlinkType in interface JRHyperlinkpublic byte getHyperlinkTarget()
JRHyperlink
getHyperlinkTarget in interface JRHyperlinkpublic JRExpression getExpression()
JRImage
getExpression in interface JRImageJRExpression.EVALUATION_TIME_GROUPpublic JRExpression getAnchorNameExpression()
JRAnchor
getAnchorNameExpression in interface JRAnchorpublic JRExpression getHyperlinkReferenceExpression()
JRHyperlink
getHyperlinkReferenceExpression in interface JRHyperlinkpublic JRExpression getHyperlinkAnchorExpression()
JRHyperlink
getHyperlinkAnchorExpression in interface JRHyperlinkpublic JRExpression getHyperlinkPageExpression()
JRHyperlink
getHyperlinkPageExpression in interface JRHyperlinkprotected JRRenderable getRenderer()
protected java.lang.String getAnchorName()
protected java.lang.String getHyperlinkReference()
protected java.lang.String getHyperlinkAnchor()
protected java.lang.Integer getHyperlinkPage()
protected JRTemplateImage getJRTemplateImage()
protected void evaluate(byte evaluation)
throws JRException
evaluate in class JRFillElementJRException
protected void evaluateImage(byte evaluation)
throws JRException
JRException
protected boolean prepare(int availableStretchHeight,
boolean isOverflow)
prepare in class JRFillGraphicElementprotected JRPrintElement fill()
fill in class JRFillElementprotected void copy(JRPrintImage printImage)
public JRChild getCopy(JRAbstractObjectFactory factory)
getCopy in interface JRChildpublic void collectExpressions(JRExpressionCollector collector)
collectExpressions in interface JRElementpublic void writeXml(JRXmlWriter xmlWriter)
writeXml in interface JRChild
protected void resolveElement(JRPrintElement element,
byte evaluation)
throws JRException
JRFillElement
resolveElement in class JRFillElementelement - the elementevaluation - the evaluation type
JRExceptionpublic int getBookmarkLevel()
JRAnchor
getBookmarkLevel in interface JRAnchorNO_BOOKMARK if no bookmark should be created for this anchor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||