com.webcodepro.applecommander.storage.filters.imagehandlers
Class SunJpegImage

java.lang.Object
  extended by com.webcodepro.applecommander.storage.filters.imagehandlers.AppleImage
      extended by com.webcodepro.applecommander.storage.filters.imagehandlers.SunJpegImage

public class SunJpegImage
extends AppleImage

SunJpegImage is a specific implementation of AppleImage that handles all SUN JPEG codec related coding surrounding image manipulation. This is available only on SUN JVMs.

Date Created: Mar 25, 2003

Author:
Rob Greene

Constructor Summary
SunJpegImage(int width, int height)
          Create SunJpegImage.
 
Method Summary
 int getHeight()
          Return the height of the image.
 int getPoint(int x, int y)
          Get a color point.
 int getWidth()
          Return the width of the image.
 void save(java.io.OutputStream outputStream)
          Save the image.
 void setPoint(int x, int y, int color)
          Set a color point.
 
Methods inherited from class com.webcodepro.applecommander.storage.filters.imagehandlers.AppleImage
create, getAvailableExtensions, getDefaultExtension, getFileExtension, setAvailableExtensions, setFileExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SunJpegImage

public SunJpegImage(int width,
                    int height)
             throws java.lang.ClassNotFoundException
Create SunJpegImage. Verifies all (known) required classes are available as well as sets up the class.

Throws:
java.lang.ClassNotFoundException
Method Detail

setPoint

public void setPoint(int x,
                     int y,
                     int color)
Set a color point.

Specified by:
setPoint in class AppleImage

getPoint

public int getPoint(int x,
                    int y)
Get a color point.

Specified by:
getPoint in class AppleImage

save

public void save(java.io.OutputStream outputStream)
          throws java.io.IOException
Save the image.

Specified by:
save in class AppleImage
Throws:
java.io.IOException

getWidth

public int getWidth()
Return the width of the image.

Specified by:
getWidth in class AppleImage

getHeight

public int getHeight()
Return the height of the image.

Specified by:
getHeight in class AppleImage