net.aerith.misao.image.filter
Class FilterSet

java.lang.Object
  |
  +--net.aerith.misao.image.filter.FilterSet

public class FilterSet
extends java.lang.Object
implements ImageConverter

The FilterSet represents a set of image processing filters.


Field Summary
protected  java.util.Vector list_filter
          The list of filters.
protected  java.util.Vector list_name
          The list of filter names.
 
Constructor Summary
FilterSet()
          Constructs an empty FilterSet.
FilterSet(FilterSet filter_set)
          Constructs a FilterSet.
 
Method Summary
 void add(Filter filter, java.lang.String name)
          Adds a filter.
 MonoImage convertImage(MonoImage image)
          Converts an image.
 java.lang.String[] getFilterNames()
          Gets the filter names.
 Filter[] getFilters()
          Gets the filters.
 void removeAt(int index)
          Removes a filter at the specified position.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

list_filter

protected java.util.Vector list_filter
The list of filters.

list_name

protected java.util.Vector list_name
The list of filter names.
Constructor Detail

FilterSet

public FilterSet()
Constructs an empty FilterSet.

FilterSet

public FilterSet(FilterSet filter_set)
Constructs a FilterSet.
Parameters:
filter_set - the source filter set.
Method Detail

add

public void add(Filter filter,
                java.lang.String name)
Adds a filter.
Parameters:
filter - the filter.
name - the name of the filter.

removeAt

public void removeAt(int index)
Removes a filter at the specified position.
Parameters:
index - the index.

getFilters

public Filter[] getFilters()
Gets the filters.
Returns:
the filters.

getFilterNames

public java.lang.String[] getFilterNames()
Gets the filter names.
Returns:
the filter names.

convertImage

public MonoImage convertImage(MonoImage image)
                       throws java.lang.Exception
Converts an image.
Specified by:
convertImage in interface ImageConverter
Parameters:
image - an image.
Returns:
a new image.
Throws:
java.lang.Exception - if an exception occurs.