|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.instruments.ImageFilterAdapter
public abstract class ImageFilterAdapter
An object that filters frames. We only need to override
the filter
method
Constructor Summary | |
---|---|
ImageFilterAdapter()
|
Method Summary | |
---|---|
abstract void |
filter(Image f)
defines the operations acutally needed for filtering |
java.awt.Component |
getControlComponent()
|
java.awt.Component |
getFilterControlComponent()
defines the Component that controls this filter |
int |
getHeight()
|
java.lang.String |
getName()
defines the name of the filter |
java.awt.Dimension |
getSize()
|
int |
getWidth()
|
void |
receive(Image f)
This method is called by the ImageSource to send a Image |
void |
setSink(ImageSink fs)
set the object that must read the frames through receive() method. |
void |
setSource(ImageSource fs)
set the object that sends the Image s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageFilterAdapter()
Method Detail |
---|
public void setSink(ImageSink fs)
ImageSource
setSink
in interface ImageSource
fs
- the object that reads the framespublic void setSource(ImageSource fs)
ImageSink
Image
s.
setSource
in interface ImageSink
fs
- the object that sends the framespublic void receive(Image f)
ImageSink
receive
in interface ImageSink
f
- the new frame that must be displayedpublic java.awt.Component getControlComponent()
getControlComponent
in interface Control
public int getWidth()
getWidth
in interface Dimensions
public int getHeight()
getHeight
in interface Dimensions
public java.awt.Dimension getSize()
getSize
in interface Dimensions
public java.awt.Component getFilterControlComponent()
public abstract void filter(Image f)
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |