public abstract class AbstractFilter extends java.lang.Object implements Filter
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Filter> |
postFilters |
protected java.util.List<Filter> |
preFilters |
Constructor and Description |
---|
AbstractFilter() |
Modifier and Type | Method and Description |
---|---|
Filter |
addPostFilter(Filter filter) |
Filter |
addPreFilter(Filter filter) |
java.nio.FloatBuffer |
doFilter(float sx,
float sy,
float base,
java.nio.FloatBuffer data,
int size) |
abstract java.nio.FloatBuffer |
filter(float sx,
float sy,
float base,
java.nio.FloatBuffer buffer,
int size) |
int |
getMargin(int size,
int margin) |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
protected java.util.List<Filter> preFilters
protected java.util.List<Filter> postFilters
public Filter addPreFilter(Filter filter)
addPreFilter
in interface Filter
public Filter addPostFilter(Filter filter)
addPostFilter
in interface Filter
public java.nio.FloatBuffer doFilter(float sx, float sy, float base, java.nio.FloatBuffer data, int size)
public abstract java.nio.FloatBuffer filter(float sx, float sy, float base, java.nio.FloatBuffer buffer, int size)
public void setEnabled(boolean enabled)