java.lang.Objectgui.TCFilter
public abstract class TCFilter
| Field Summary | |
|---|---|
protected java.awt.image.BufferedImage |
dest
|
protected gui.ImageDisplay |
id
|
protected java.awt.image.BufferedImage |
src
|
| Constructor Summary | |
|---|---|
TCFilter()
|
|
| Method Summary | |
|---|---|
protected int |
av(int r,
int g,
int b)
Returns the average of the 3 Red, Green, Blue components (i.e. |
protected int |
b(int rgb)
Returns the blue component of the given GRB color |
abstract void |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dest)
Performs the filtering on a given source (src) image, writing the result into the destination (dest) image. |
protected int |
g(int rgb)
Returns the green component of the given GRB color |
abstract java.awt.Component |
getGUI()
Returns the gui component for this filter. |
java.awt.Component |
getSettingGUI(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dest,
gui.ImageDisplay id)
This function is called by the filter dialog window whenever settings are asked to be brought up. |
protected int |
r(int rgb)
Returns the red component of the given GRB color |
abstract void |
reset()
Rollback any changes made to whatever-gui-has-control-over eversince getSettingGUI() was last time called. |
void |
update()
Updates the image display. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected gui.ImageDisplay id
protected java.awt.image.BufferedImage src
protected java.awt.image.BufferedImage dest
| Constructor Detail |
|---|
public TCFilter()
| Method Detail |
|---|
public abstract void filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dest)
src - the source imagedest - the destination imagepublic abstract java.awt.Component getGUI()
public abstract void reset()
public java.awt.Component getSettingGUI(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dest,
gui.ImageDisplay id)
src - source imagedest - destination-to-be imageid - reference image displace (Don't concern yourself with this)
public void update()
protected int r(int rgb)
rgb - RGB color represented all as one integer.
protected int g(int rgb)
rgb - RGB color represented all as one integer.
protected int b(int rgb)
rgb - RGB color represented all as one integer.
protected int av(int r,
int g,
int b)
r - red component (out of 255)g - green component (out of 255)b - blue component (out of 255)