public abstract class AFilter
extends java.lang.Object
implements java.lang.Cloneable
AFilter
class provides the functionality specification for filtering a fractal's image buffer.Constructor and Description |
---|
AFilter() |
Modifier and Type | Method and Description |
---|---|
AFilter |
clone()
Clones (deep copy) the current filter.
|
abstract java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage image)
Applies the filter to a specified image and returns the result.
|
abstract java.lang.String |
getName()
Returns the filter's name.
|
void |
plainTextLoadParameters(org.sm.smtools.util.TextFileParser tfp)
Loads the filter's parameters from a file.
|
void |
plainTextSaveParameters(org.sm.smtools.util.TextFileWriter tfw)
Saves the filter's parameters to a plain-text file.
|
void |
streamLoadParameters(java.io.DataInputStream dataInputStream)
Loads the filter's parameters from a file.
|
void |
streamSaveParameters(java.io.DataOutputStream dataOutputStream)
Saves the filter's parameters to a file as a stream.
|
public AFilter clone()
clone
in class java.lang.Object
public abstract java.awt.image.BufferedImage filter(java.awt.image.BufferedImage image)
image
- the BufferedImage
to apply the filter toBufferedImage
that results after applying the filterpublic abstract java.lang.String getName()
public void plainTextLoadParameters(org.sm.smtools.util.TextFileParser tfp) throws org.sm.smtools.exceptions.FileParseException
tfp
- a reference to the file parserorg.sm.smtools.exceptions.FileParseException
- in case a read error occurspublic void plainTextSaveParameters(org.sm.smtools.util.TextFileWriter tfw) throws org.sm.smtools.exceptions.FileWriteException
tfw
- a reference to the file writerorg.sm.smtools.exceptions.FileWriteException
- in case a write error occurspublic void streamLoadParameters(java.io.DataInputStream dataInputStream) throws java.io.IOException
dataInputStream
- a data inputstreamjava.io.IOException
- in case a parse error occurspublic void streamSaveParameters(java.io.DataOutputStream dataOutputStream) throws java.io.IOException
dataOutputStream
- a data outputstreamjava.io.IOException
- in case a write error occurs