|
|||||||||
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.ThresholdFilter
public class ThresholdFilter
This is a Filter that produces a b/w version of the source.
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 | |
---|---|
ThresholdFilter()
Constructs a default ThresholdFilter object. |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
getFilteredImage(java.awt.image.BufferedImage sourceImage)
Applies the filter to a source image and returns the result. |
javax.swing.JDialog |
getInspector()
Implements abstract Filter method. |
static XML.ObjectLoader |
getLoader()
Returns an XML.ObjectLoader to save and load filter data. |
int |
getThreshold()
Gets the threshold. |
void |
refresh()
Refreshes this filter's GUI |
void |
setThreshold(int threshold)
Sets the threshold. |
Methods inherited from class org.opensourcephysics.media.core.Filter |
---|
addPropertyChangeListener, addPropertyChangeListener, clear, 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 ThresholdFilter()
Method Detail |
---|
public void setThreshold(int threshold)
threshold
- the threshold.public int getThreshold()
public java.awt.image.BufferedImage getFilteredImage(java.awt.image.BufferedImage sourceImage)
getFilteredImage
in class Filter
sourceImage
- the source image
public javax.swing.JDialog getInspector()
getInspector
in class Filter
public void refresh()
refresh
in class Filter
public static XML.ObjectLoader getLoader()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |