|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webcodepro.applecommander.storage.filters.imagehandlers.AppleImage
public abstract class AppleImage
AppleImage is an abstract class that represents a generic interface for handing graphic images. This abstraction is needed because not all graphic routines use BufferedImage. AppleImage itself acts as a factory for creating "the best" AppleImage subclass.
Date Created: Mar 25, 2003
Constructor Summary | |
---|---|
AppleImage(java.lang.String[] availableExtensions)
Construct AppleImage. |
Method Summary | |
---|---|
static AppleImage |
create(int width,
int height)
Create a specific instance of AppleImage. |
java.lang.String[] |
getAvailableExtensions()
Return a list of file extensions that this specific implementation can handle. |
java.lang.String |
getDefaultExtension()
Get the default file extension. |
java.lang.String |
getFileExtension()
Returns the file extension. |
abstract int |
getHeight()
Return the height of the image. |
abstract int |
getPoint(int x,
int y)
Get a color point. |
abstract int |
getWidth()
Return the width of the image. |
abstract void |
save(java.io.OutputStream outputStream)
Save the image. |
protected void |
setAvailableExtensions(java.lang.String[] availableExtensions)
Set the list of file extensions that can be handled. |
void |
setFileExtension(java.lang.String fileExtension)
Sets the file extension. |
abstract void |
setPoint(int x,
int y,
int color)
Set a color point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppleImage(java.lang.String[] availableExtensions)
Method Detail |
---|
public static AppleImage create(int width, int height)
public java.lang.String getDefaultExtension()
public java.lang.String[] getAvailableExtensions()
protected void setAvailableExtensions(java.lang.String[] availableExtensions)
public java.lang.String getFileExtension()
public void setFileExtension(java.lang.String fileExtension)
public abstract void setPoint(int x, int y, int color)
public abstract int getPoint(int x, int y)
public abstract void save(java.io.OutputStream outputStream) throws java.io.IOException
java.io.IOException
public abstract int getWidth()
public abstract int getHeight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |