|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jmage.filterchain.FilterChain
public class FilterChain
A FilterChain processes an image by passing it through a preconfigured, ordered set of filters.
| Field Summary | |
|---|---|
protected java.util.List |
filters
|
protected static org.apache.log4j.Logger |
log
|
protected java.lang.String |
name
|
| Constructor Summary | |
|---|---|
FilterChain(java.lang.String name)
Use this to construct an empty FilterChain. |
|
| Method Summary | |
|---|---|
void |
addFilter(ConfigurableImageFilter filter,
java.util.Properties filterProperties)
Add a filter to the FilterChain's end. |
void |
addFilter(ConfigurableImageFilter filter,
java.util.Properties filterProperties,
int position)
Add a filter to the FilterChain at the given position. |
void |
addFilter(ImageFilter filter)
Add a filter to the FilterChain at the end. |
void |
addFilter(ImageFilter filter,
int position)
Add a filter to the FilterChain at the given position. |
boolean |
equals(java.lang.Object o)
Override equals to check for unique name |
javax.media.jai.PlanarImage |
filter(javax.media.jai.PlanarImage image)
Filters the image by passing it through all filters in the filterchain. |
java.lang.String |
getName()
Gets the FilterChain's unique name. |
int |
hashCode()
Override hashCode to generate for "name" uniqueness |
void |
removeFilter(ImageFilter filter)
Removes a filter from a FilterChain. |
void |
updateConfigurableFilters(java.util.Properties filterProperties)
Iterates through all configurable image filters in the filter filterchain and applies additional filterProperties to them. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String name
protected java.util.List filters
protected static org.apache.log4j.Logger log
| Constructor Detail |
|---|
public FilterChain(java.lang.String name)
| Method Detail |
|---|
public java.lang.String getName()
public void addFilter(ConfigurableImageFilter filter,
java.util.Properties filterProperties)
throws FilterException
filter - the filterfilterProperties - the filter's properties
FilterException - if the filter can't be properly initialized
public void addFilter(ConfigurableImageFilter filter,
java.util.Properties filterProperties,
int position)
throws FilterException,
java.lang.IndexOutOfBoundsException
filter - the filterfilterProperties - the filter's propertiesposition - the position in the filter filterchain
FilterException - if the filter can't be properly initialized
java.lang.IndexOutOfBoundsException - if the FilterChain can't add the filter at the position.
public void addFilter(ImageFilter filter,
int position)
throws java.lang.IndexOutOfBoundsException
filter - the filterposition - the position in the filter filterchain
java.lang.IndexOutOfBoundsException - if the FilterChain can't add the filter at the position.public void addFilter(ImageFilter filter)
filter - the filter
public void removeFilter(ImageFilter filter)
throws FilterException
filter - the filter
FilterException
public void updateConfigurableFilters(java.util.Properties filterProperties)
throws FilterException
filterProperties -
FilterException
public javax.media.jai.PlanarImage filter(javax.media.jai.PlanarImage image)
throws FilterException
image - the image
FilterExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the FilterChain
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||