|
|||||||||
| 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.DarkGhostFilter
public class DarkGhostFilter
This is a Filter that produces fading ghost images of dark objects on a bright background.
| Field Summary | |
|---|---|
protected int[] |
pixels
|
protected int[] |
values
|
| 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 | |
|---|---|
DarkGhostFilter()
Constructs a GhostFilter object with default fade. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears ghosts. |
double |
getFade()
Gets the fade. |
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 |
setEnabled(boolean enabled)
Overrides the setEnabled method to force reinitialization. |
void |
setFade(double fade)
Sets the fade. |
| Methods inherited from class org.opensourcephysics.media.core.Filter |
|---|
addPropertyChangeListener, addPropertyChangeListener, getMenu, isEnabled, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int[] pixels
protected int[] values
| Constructor Detail |
|---|
public DarkGhostFilter()
| Method Detail |
|---|
public void setFade(double fade)
fade - the fraction by which a ghost image fades each time it is
rendered. A fade of 0 never fades, while a fade of 1 fades completely
and so is never seen.public double getFade()
setFade(double)public void setEnabled(boolean enabled)
setEnabled in class Filterenabled - true if this is enabled.public java.awt.image.BufferedImage getFilteredImage(java.awt.image.BufferedImage sourceImage)
getFilteredImage in class FiltersourceImage - the source image
public javax.swing.JDialog getInspector()
getInspector in class Filterpublic void clear()
clear in class Filterpublic void refresh()
refresh in class Filterpublic static XML.ObjectLoader getLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||