Java Doc for SImage.java in  » Swing-Library » Swinglets » com » javelin » swinglets » 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 » Swing Library » Swinglets » com.javelin.swinglets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.Image
      com.javelin.swinglets.SImage

SImage
public class SImage extends Image (Code)
SImage is an AWT Image that can be created from dimensions, or a file. The written to an output stream. The image is cached as a byte array to write quickly to the output stream. If the image has changed used the flush() method to ensure that the new image is reflected in the next write().
author:
   Robin Sharp


Field Summary
protected static  intCOUNTER
    
protected  byte[]byteArray
    
protected static  Componentcomponent
    
protected  intheight
    
protected  Imageimage
    
protected  ImageObserverimageObserver
    
transient  intloadStatus
    
protected  Stringname
    
protected static  MediaTrackertracker
    
protected  intwidth
    

Constructor Summary
public  SImage(int width, int height)
     Create a blank image with the following dimensions.
public  SImage(String url)
    
public  SImage(URL url)
    

Method Summary
public  booleanequals(Object object)
     Equals is based on the name and class.
public  voidflush()
     Flush the image.
public  byte[]getBytes()
    
public  GraphicsgetGraphics()
     Creates a graphics context for drawing to an off-screen image.
public  intgetHeight()
     Determines the height of the image.
public  intgetHeight(ImageObserver observer)
     Determines the height of the image.
protected  ImagegetImage(URL url, int w, int h)
     Load the image from a file or create it in memory. If the url is not null then load the image from the url and set the width and height.
public  StringgetName()
     Determines the name of the image.
public  ObjectgetProperty(String name, ImageObserver observer)
     Gets a property of this image by name.
public  ImageProducergetSource()
     Gets the object that produces the pixels for the image.
public  intgetWidth()
     Determines the width of the image.
public  intgetWidth(ImageObserver observer)
     Determines the width of the image.
public  inthashCode()
     Hashcode.
protected  voidloadByteArray()
    
public  voidpaint(Object out)
     Write the image as a GIF.
public  StringtoString()
     To String returns the stream that would be painted.

Field Detail
COUNTER
protected static int COUNTER(Code)



byteArray
protected byte[] byteArray(Code)



component
protected static Component component(Code)



height
protected int height(Code)



image
protected Image image(Code)



imageObserver
protected ImageObserver imageObserver(Code)



loadStatus
transient int loadStatus(Code)



name
protected String name(Code)



tracker
protected static MediaTracker tracker(Code)



width
protected int width(Code)




Constructor Detail
SImage
public SImage(int width, int height)(Code)
Create a blank image with the following dimensions.
exception:
  IllegalArgumentException - if width or height is less than 1



SImage
public SImage(String url) throws MalformedURLException(Code)
Create an image with the following url suitable for painting on.

Parameters:
  url - for the image
exception:
  IllegalArgumentException - if the url does not exist



SImage
public SImage(URL url)(Code)
Create an image with the following url suitable for painting on.

Parameters:
  url - the image URL
exception:
  IllegalArgumentException - if the url does not exist




Method Detail
equals
public boolean equals(Object object)(Code)
Equals is based on the name and class.



flush
public void flush()(Code)
Flush the image.



getBytes
public byte[] getBytes()(Code)
Get the image as a byte array



getGraphics
public Graphics getGraphics()(Code)
Creates a graphics context for drawing to an off-screen image.



getHeight
public int getHeight()(Code)
Determines the height of the image.



getHeight
public int getHeight(ImageObserver observer)(Code)
Determines the height of the image.



getImage
protected Image getImage(URL url, int w, int h) throws IllegalArgumentException(Code)
Load the image from a file or create it in memory. If the url is not null then load the image from the url and set the width and height. Otherwise create an image from memory with the defined dimensions and set the width and height proprerties.



getName
public String getName()(Code)
Determines the name of the image.



getProperty
public Object getProperty(String name, ImageObserver observer)(Code)
Gets a property of this image by name.



getSource
public ImageProducer getSource()(Code)
Gets the object that produces the pixels for the image.



getWidth
public int getWidth()(Code)
Determines the width of the image.



getWidth
public int getWidth(ImageObserver observer)(Code)
Determines the width of the image.



hashCode
public int hashCode()(Code)
Hashcode. Is based on the name.



loadByteArray
protected void loadByteArray()(Code)



paint
public void paint(Object out) throws IOException(Code)
Write the image as a GIF. This will handle either OutputStream's or Graphics.



toString
public String toString()(Code)
To String returns the stream that would be painted. This is useful for JSP and debugging.



Fields inherited from java.awt.Image
final public static int SCALE_AREA_AVERAGING(Code)(Java Doc)
final public static int SCALE_DEFAULT(Code)(Java Doc)
final public static int SCALE_FAST(Code)(Java Doc)
final public static int SCALE_REPLICATE(Code)(Java Doc)
final public static int SCALE_SMOOTH(Code)(Java Doc)
final public static Object UndefinedProperty(Code)(Java Doc)
protected float accelerationPriority(Code)(Java Doc)

Methods inherited from java.awt.Image
public void flush()(Code)(Java Doc)
public float getAccelerationPriority()(Code)(Java Doc)
public ImageCapabilities getCapabilities(GraphicsConfiguration gc)(Code)(Java Doc)
abstract public Graphics getGraphics()(Code)(Java Doc)
abstract public int getHeight(ImageObserver observer)(Code)(Java Doc)
abstract public Object getProperty(String name, ImageObserver observer)(Code)(Java Doc)
public Image getScaledInstance(int width, int height, int hints)(Code)(Java Doc)
abstract public ImageProducer getSource()(Code)(Java Doc)
abstract public int getWidth(ImageObserver observer)(Code)(Java Doc)
public void setAccelerationPriority(float priority)(Code)(Java Doc)

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.