public class FilterStack extends Filter implements java.beans.PropertyChangeListener
ableButton, clearButton, closeButton, deleteItem, enabledAction, enabledItem, frame, hasInspector, inspectorVisible, inspectorX, inspectorY, propertiesItem, stack, support, vidPanel
Constructor and Description |
---|
FilterStack()
Constructs a FilterStack object.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Filter filter)
Adds a filter to the end of the stack.
|
void |
clear()
Clears the filter stack.
|
Filter |
getFilter(java.lang.Class filterClass)
Gets the first instance of the specified filter class.
|
java.awt.image.BufferedImage |
getFilteredImage(java.awt.image.BufferedImage image)
Returns the current filtered image.
|
java.util.Collection |
getFilters()
Returns a copy of the filters in this filter stack.
|
javax.swing.JDialog |
getInspector()
Implements abstract Filter method.
|
Filter |
getPostFilter()
Gets the post filter.
|
void |
insertFilter(Filter filter,
int index)
Adds a filter at the specified index.
|
boolean |
isEmpty()
Returns true if this contains no filters.
|
int |
lastIndexRemoved()
Gets the index of the last removed filter, or -1 if none removed.
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
Responds to property change events.
|
void |
refresh()
Refreshes this filter's GUI
|
void |
removeFilter(Filter filter)
Removes the specified filter from the stack.
|
void |
setInspectorsVisible(boolean vis)
Shows/hides all inspectors.
|
void |
setPostFilter(Filter filter)
Sets the post filter.
|
addPropertyChangeListener, addPropertyChangeListener, getMenu, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setEnabled
public void addFilter(Filter filter)
filter
- the filterpublic void insertFilter(Filter filter, int index)
filter
- the filterpublic int lastIndexRemoved()
public void setPostFilter(Filter filter)
filter
- a filterpublic Filter getPostFilter()
public Filter getFilter(java.lang.Class filterClass)
filterClass
- the filter classpublic void removeFilter(Filter filter)
filter
- the filterpublic boolean isEmpty()
true
if this is emptypublic java.util.Collection getFilters()
public java.awt.image.BufferedImage getFilteredImage(java.awt.image.BufferedImage image)
getFilteredImage
in class Filter
image
- the image to filterpublic javax.swing.JDialog getInspector()
getInspector
in class Filter
public void setInspectorsVisible(boolean vis)
vis
- true to show inspectorspublic void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
e
- the property change event