Java Doc for DefaultImageReference.java in  » Report » pentaho-report » org » jfree » report » 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 » pentaho report » org.jfree.report 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.report.DefaultImageReference

DefaultImageReference
public class DefaultImageReference implements Serializable,URLImageContainer,LocalImageContainer(Code)
An DefaultImageReference encapsulates the source of an image together with a java.awt.Image. The source is used to create a higher resolution version if needed. The source file/URL may also be inlined into the output target, to create better results.

This implementation provides a reasonable default implementation to encapsualte local AWT-images into reports.

The given image might specify a fixed scale factor for the given image. The scaling will be applied before any layout computations will be performed.
author:
   Thomas Morgner




Constructor Summary
public  DefaultImageReference(URL url)
     Creates a new ImageReference with an origin of 0,0 and the desired width.
public  DefaultImageReference(Image img)
     Creates a new ImageReference without an assigned URL for the Image.
public  DefaultImageReference(int w, int h)
     Creates a new image reference without assigning either an Image or an URL.
public  DefaultImageReference(DefaultImageReference parent)
     Copies the contents of the given DefaultImageReference.

Method Summary
public  Objectclone()
     Clones this Element.
public  booleanequals(Object obj)
     Checks for equality.
Parameters:
  obj - the object to test.
public  ObjectgetIdentity()
     Returns the identity information.
public  ImagegetImage()
     Returns the original image if available.
public  intgetImageHeight()
     Returns the (unscaled) image height.
public  intgetImageWidth()
     Returns the (unscaled) image width.
public  StringgetName()
     Returns the name of this image reference.
public  floatgetScaleX()
     Returns a predefined scaling factor.
public  floatgetScaleY()
     Returns a predefined scaling factor.
public  URLgetSourceURL()
     Returns the source URL for the image.
public  StringgetSourceURLString()
     Returns the a string version of the source URL.
public  inthashCode()
     Compute a hashcode for this imageReference.
public  booleanisIdentifiable()
     Checks, whether this image has a assigned identity.
public  booleanisLoadable()
     Checks, whether this image reference is loadable.
public  voidsetScale(float sx, float sy)
     Defines a predefined scaling factor.
public  StringtoString()
     Returns a String representing this object.


Constructor Detail
DefaultImageReference
public DefaultImageReference(URL url) throws IOException(Code)
Creates a new ImageReference with an origin of 0,0 and the desired width. The image data is read from the given URL.
Parameters:
  url - the source url. The url must be readable during the report generation.
throws:
  IOException - if the url could not be read.
throws:
  NullPointerException - if the given URL is null.



DefaultImageReference
public DefaultImageReference(Image img) throws IOException(Code)
Creates a new ImageReference without an assigned URL for the Image. This image reference will not be loadable and cannot be used to embedd the original rawdata of the image into the generated content.
Parameters:
  img - the image for this reference.
throws:
  NullPointerException - if the image is null.
throws:
  java.io.IOException - if an IOError occured while loading the image.



DefaultImageReference
public DefaultImageReference(int w, int h)(Code)
Creates a new image reference without assigning either an Image or an URL. This DefaultImageReference will act as place holder to reserve space during the layouting, no content will be generated.
Parameters:
  w - the width of the unscaled image.
Parameters:
  h - the height of the unscaled image.



DefaultImageReference
public DefaultImageReference(DefaultImageReference parent)(Code)
Copies the contents of the given DefaultImageReference.
Parameters:
  parent - the parent.




Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)
Clones this Element. a clone of this element.
throws:
  CloneNotSupportedException - this should never be thrown.



equals
public boolean equals(Object obj)(Code)
Checks for equality.
Parameters:
  obj - the object to test. true if the specified object is equal to this one.



getIdentity
public Object getIdentity()(Code)
Returns the identity information. This instance returns the URL of the image, if any. the image identifier.



getImage
public Image getImage()(Code)
Returns the original image if available. The current image instance, or null, if no image has been assigned.



getImageHeight
public int getImageHeight()(Code)
Returns the (unscaled) image height. the image height.



getImageWidth
public int getImageWidth()(Code)
Returns the (unscaled) image width. the image width.



getName
public String getName()(Code)
Returns the name of this image reference. If an URL has been set, this will return the URL of the image, else null is returned. the name.



getScaleX
public float getScaleX()(Code)
Returns a predefined scaling factor. That scaling will be applied before any layout specific scaling is done. the scale factor.



getScaleY
public float getScaleY()(Code)
Returns a predefined scaling factor. That scaling will be applied before any layout specific scaling is done. the scale factor.



getSourceURL
public URL getSourceURL()(Code)
Returns the source URL for the image. The URL from where the image has been loaded, or null, if the source URL is not known.



getSourceURLString
public String getSourceURLString()(Code)
Returns the a string version of the source URL. If no URL has been assigned, this method will return null. a String representing the assigned URL.



hashCode
public int hashCode()(Code)
Compute a hashcode for this imageReference. the hashcode



isIdentifiable
public boolean isIdentifiable()(Code)
Checks, whether this image has a assigned identity. Two identities should be equal, if the image contents are equal. true, if that image contains contains identity information, false otherwise.



isLoadable
public boolean isLoadable()(Code)
Checks, whether this image reference is loadable. A default image reference is loadable, if a valid URL has been set. true, if it is loadable, false otherwise.



setScale
public void setScale(float sx, float sy)(Code)
Defines a predefined scaling factor. That scaling will be applied before any layout specific scaling is done.

If your image has a higher resolution than 72dpi, this factor should be a value lower than 1 (the image will be scaled down).
Parameters:
  sx - the scale factor.
Parameters:
  sy - the scale factor.




toString
public String toString()(Code)
Returns a String representing this object. Useful for debugging. The string.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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