|
|||||||||||
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
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 JRImage
public void setScaleImage(byte scaleImage)
JRImage
setScaleImage
in interface JRImage
scaleImage
- one of the scale constants in this classpublic byte getHorizontalAlignment()
JRImage
getHorizontalAlignment
in interface JRImage
JRAlignment
public void setHorizontalAlignment(byte horizontalAlignment)
JRImage
setHorizontalAlignment
in interface JRImage
horizontalAlignment
- one of the alignment values defined in JRAlignment
public byte getVerticalAlignment()
JRImage
getVerticalAlignment
in interface JRImage
JRAlignment
public void setVerticalAlignment(byte verticalAlignment)
JRImage
setVerticalAlignment
in interface JRImage
verticalAlignment
- one of the alignment values defined in JRAlignment
public boolean isUsingCache()
JRImage
isUsingCache
in interface JRImage
public java.lang.Boolean isOwnUsingCache()
JRImage
isOwnUsingCache
in interface JRImage
public void setUsingCache(boolean isUsingCache)
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(java.lang.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
isLazy
in interface JRImage
public void setLazy(boolean isLazy)
JRImage
setLazy
in interface JRImage
isLazy
- specifies whetherpublic byte getOnErrorType()
JRImage
getOnErrorType
in interface JRImage
public void setOnErrorType(byte onErrorType)
JRImage
setOnErrorType
in interface JRImage
onErrorType
- one of the constants for missing image error typespublic byte getEvaluationTime()
JRImage
getEvaluationTime
in interface JRImage
JRExpression
public JRGroup getEvaluationGroup()
JRImage
getEvaluationGroup
in interface JRImage
JRExpression
public JRBox getBox()
JRImage
getBox
in interface JRImage
public byte getHyperlinkType()
JRHyperlink
getHyperlinkType
in interface JRHyperlink
public byte getHyperlinkTarget()
JRHyperlink
getHyperlinkTarget
in interface JRHyperlink
public JRExpression getExpression()
JRImage
getExpression
in interface JRImage
JRExpression.EVALUATION_TIME_GROUP
public JRExpression getAnchorNameExpression()
JRAnchor
getAnchorNameExpression
in interface JRAnchor
public JRExpression getHyperlinkReferenceExpression()
JRHyperlink
getHyperlinkReferenceExpression
in interface JRHyperlink
public JRExpression getHyperlinkAnchorExpression()
JRHyperlink
getHyperlinkAnchorExpression
in interface JRHyperlink
public JRExpression getHyperlinkPageExpression()
JRHyperlink
getHyperlinkPageExpression
in interface JRHyperlink
protected 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 JRFillElement
JRException
protected void evaluateImage(byte evaluation) throws JRException
JRException
protected boolean prepare(int availableStretchHeight, boolean isOverflow)
prepare
in class JRFillGraphicElement
protected JRPrintElement fill()
fill
in class JRFillElement
protected void copy(JRPrintImage printImage)
public JRChild getCopy(JRAbstractObjectFactory factory)
getCopy
in interface JRChild
public void collectExpressions(JRExpressionCollector collector)
collectExpressions
in interface JRElement
public void writeXml(JRXmlWriter xmlWriter)
writeXml
in interface JRChild
protected void resolveElement(JRPrintElement element, byte evaluation) throws JRException
JRFillElement
resolveElement
in class JRFillElement
element
- the elementevaluation
- the evaluation type
JRException
public int getBookmarkLevel()
JRAnchor
getBookmarkLevel
in interface JRAnchor
NO_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 |