|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.media.core.Filter org.opensourcephysics.media.core.BrightnessFilter
public class BrightnessFilter
This is a Filter that changes the brightness and contrast of a source image.
Field Summary |
---|
Fields inherited from class org.opensourcephysics.media.core.Filter |
---|
inspectorVisible, inspectorX, inspectorY, vidPanel |
Constructor Summary | |
---|---|
BrightnessFilter()
Constructs a default BrightnessFilter object. |
Method Summary | |
---|---|
void |
clear()
Clears this filter |
int |
getBrightness()
Gets the brightness. |
double |
getContrast()
Gets the contrast. |
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. |
void |
refresh()
Refreshes this filter's GUI |
void |
setBrightness(int brightness)
Sets the brightness. |
void |
setContrast(double contrast)
Sets the contrast. |
Methods inherited from class org.opensourcephysics.media.core.Filter |
---|
addPropertyChangeListener, addPropertyChangeListener, getMenu, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BrightnessFilter()
Method Detail |
---|
public void setContrast(double contrast)
contrast
- the contrast.public double getContrast()
public void setBrightness(int brightness)
brightness
- the brightness.public int getBrightness()
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 clear()
clear
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 |