Java Doc for JRImage.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » engine » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » jasperreports 2.0.1 » net.sf.jasperreports.engine 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.sf.jasperreports.engine.JRImage

All known Subclasses:   net.sf.jasperreports.engine.design.JRDesignImage,  net.sf.jasperreports.engine.fill.JRFillImage,  net.sf.jasperreports.engine.base.JRBaseImage,
JRImage
public interface JRImage extends JRGraphicElement,JRAnchor,JRHyperlink,JRAlignment,JRBox(Code)
An abstract representation of a graphic element representing an image. Images can be aligned and scaled. They can also contain hyperlinks or be anchors for other hyperlinks.
author:
   Teodor Danciu (teodord@users.sourceforge.net)
version:
   $Id: JRImage.java 1229 2006-04-19 10:27:35Z teodord $


Field Summary
final public static  byteON_ERROR_TYPE_BLANK
     A constant used for specifying that the engine should display blank space if the image is not found.
final public static  byteON_ERROR_TYPE_ERROR
     A constant used for specifying that the engine should raise an exception if the image is not found.
final public static  byteON_ERROR_TYPE_ICON
     A constant used for specifying that the engine should display a replacement icon if the image is not found.
final public static  byteSCALE_IMAGE_CLIP
     A constant value specifying that if the actual image is larger than the image element size, it will be cut off so that it keeps its original resolution, and only the region that fits the specified size will be displayed.
final public static  byteSCALE_IMAGE_FILL_FRAME
     A constant value specifying that if the dimensions of the actual image do not fit those specified for the image element that displays it, the image can be forced to obey them and stretch itself so that it fits in the designated output area.
final public static  byteSCALE_IMAGE_RETAIN_SHAPE
     A constant value specifying that if the actual image does not fit into the image element, it can be adapted to those dimensions without needing to change its original proportions.


Method Summary
public  JRBoxgetBox()
    
public  JRGroupgetEvaluationGroup()
     Indicates the evaluation time for this image.
public  bytegetEvaluationTime()
     Indicates the evaluation time for this image.
public  JRExpressiongetExpression()
     Gets the evaluation group for this text field.
public  bytegetOnErrorType()
     Indicates how the engine will treat a missing image.
public  BytegetOwnScaleImage()
    
public  bytegetScaleImage()
     Gets the image scale type.
public  booleanisLazy()
     Indicates if the images will be loaded lazily or not.
public  BooleanisOwnUsingCache()
     Indicates if the engine is loading the current image from cache.
public  booleanisUsingCache()
     Indicates if the engine is loading the current image from cache.
public  voidsetLazy(boolean isLazy)
     Gives control over when the images are retrieved from their specified location.
public  voidsetOnErrorType(byte onErrorType)
     Specifies how the engine should treat a missing image.
public  voidsetScaleImage(byte scaleImage)
     Sets the image scale type.
public  voidsetScaleImage(Byte scaleImage)
    
public  voidsetUsingCache(boolean isUsingCache)
     Specifies if the engine should be loading the current image from cache.
public  voidsetUsingCache(Boolean isUsingCache)
     Specifies if the engine should be loading the current image from cache.

Field Detail
ON_ERROR_TYPE_BLANK
final public static byte ON_ERROR_TYPE_BLANK(Code)
A constant used for specifying that the engine should display blank space if the image is not found.



ON_ERROR_TYPE_ERROR
final public static byte ON_ERROR_TYPE_ERROR(Code)
A constant used for specifying that the engine should raise an exception if the image is not found.



ON_ERROR_TYPE_ICON
final public static byte ON_ERROR_TYPE_ICON(Code)
A constant used for specifying that the engine should display a replacement icon if the image is not found.



SCALE_IMAGE_CLIP
final public static byte SCALE_IMAGE_CLIP(Code)
A constant value specifying that if the actual image is larger than the image element size, it will be cut off so that it keeps its original resolution, and only the region that fits the specified size will be displayed.



SCALE_IMAGE_FILL_FRAME
final public static byte SCALE_IMAGE_FILL_FRAME(Code)
A constant value specifying that if the dimensions of the actual image do not fit those specified for the image element that displays it, the image can be forced to obey them and stretch itself so that it fits in the designated output area.



SCALE_IMAGE_RETAIN_SHAPE
final public static byte SCALE_IMAGE_RETAIN_SHAPE(Code)
A constant value specifying that if the actual image does not fit into the image element, it can be adapted to those dimensions without needing to change its original proportions.





Method Detail
getBox
public JRBox getBox()(Code)
Returns an object containing all border and padding properties for this text element



getEvaluationGroup
public JRGroup getEvaluationGroup()(Code)
Indicates the evaluation time for this image. one of the evaluation time constants in JRExpression



getEvaluationTime
public byte getEvaluationTime()(Code)
Indicates the evaluation time for this image. one of the evaluation time constants in JRExpression



getExpression
public JRExpression getExpression()(Code)
Gets the evaluation group for this text field. Used only when evaluation time is group.
See Also:   JRExpression.EVALUATION_TIME_GROUP



getOnErrorType
public byte getOnErrorType()(Code)
Indicates how the engine will treat a missing image. one of the constants for missing image error types



getOwnScaleImage
public Byte getOwnScaleImage()(Code)



getScaleImage
public byte getScaleImage()(Code)
Gets the image scale type. one of the scale constants in this class



isLazy
public boolean isLazy()(Code)
Indicates if the images will be loaded lazily or not.



isOwnUsingCache
public Boolean isOwnUsingCache()(Code)
Indicates if the engine is loading the current image from cache. Implementations of this method return the actual value for the internal flag that was explicitly set on this image element. Boolean.TRUE if the image should be loaded from cache, Boolean.FALSE otherwise or null in case the flag was never explicitly set on this image element



isUsingCache
public boolean isUsingCache()(Code)
Indicates if the engine is loading the current image from cache. Implementations of this method rely on default values that depend on the type of the image expression if a value was not explicitly set of this flag. true if the image should be loaded from cache, false otherwise



setLazy
public void setLazy(boolean isLazy)(Code)
Gives control over when the images are retrieved from their specified location. If set to true, the image is loaded from the specified location only when the document is viewed or exported to other formats. Otherwise it is loaded during the report filling process and stored in the resulting document.
Parameters:
  isLazy - specifies whether



setOnErrorType
public void setOnErrorType(byte onErrorType)(Code)
Specifies how the engine should treat a missing image.
Parameters:
  onErrorType - one of the constants for missing image error types



setScaleImage
public void setScaleImage(byte scaleImage)(Code)
Sets the image scale type.
Parameters:
  scaleImage - one of the scale constants in this class



setScaleImage
public void setScaleImage(Byte scaleImage)(Code)



setUsingCache
public void setUsingCache(boolean isUsingCache)(Code)
Specifies if the engine should be loading the current image from cache. If set to true, the reporting engine will try to recognize previously loaded images using their specified source. For example, it will recognize an image if the image source is a file name that it has already loaded, or if it is the same URL.

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
public void setUsingCache(Boolean isUsingCache)(Code)
Specifies if the engine should be loading the current image from cache. If set to Boolean.TRUE, the reporting engine will try to recognize previously loaded images using their specified source. For example, it will recognize an image if the image source is a file name that it has already loaded, or if it is the same URL.

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.




www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.