|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.media.core.Filter
org.opensourcephysics.media.core.FilterStack
public class FilterStack
This is a Filter that contains and manages a series of Filters.
Field Summary |
---|
Fields inherited from class org.opensourcephysics.media.core.Filter |
---|
ableButton, clearButton, closeButton, deleteItem, enabledAction, enabledItem, frame, hasInspector, inspectorVisible, inspectorX, inspectorY, propertiesItem, stack, support, vidPanel |
Constructor Summary | |
---|---|
FilterStack()
Constructs a FilterStack object. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.opensourcephysics.media.core.Filter |
---|
addPropertyChangeListener, addPropertyChangeListener, getMenu, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterStack()
Method Detail |
---|
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 class
public void removeFilter(Filter filter)
filter
- the filterpublic void clear()
clear
in class Filter
public 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 filter
public javax.swing.JDialog getInspector()
getInspector
in class Filter
public void setInspectorsVisible(boolean vis)
vis
- true to show inspectorspublic void refresh()
refresh
in class Filter
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
e
- the property change event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |