|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.video.processor.ImageSaver net.jinx.video.processor.ScreenShotProcessor
public class ScreenShotProcessor
ImageSaver extension modified to save images only when a key has been
pressed.
API Stability: Stable.
Constructor Summary | |
---|---|
ScreenShotProcessor(java.io.File dir,
java.lang.String format)
|
|
ScreenShotProcessor(java.io.File dir,
java.lang.String format,
int imageType)
|
|
ScreenShotProcessor(java.lang.String dir,
java.lang.String format)
|
|
ScreenShotProcessor(java.lang.String dir,
java.lang.String format,
int imageType)
|
Method Summary | |
---|---|
void |
keyPressed(java.awt.event.KeyEvent e)
If the currently set key has been pressed, this signals that the next frame should be saved. |
void |
keyReleased(java.awt.event.KeyEvent e)
Does nothing. |
void |
keyTyped(java.awt.event.KeyEvent e)
Does nothing. |
void |
setKey(int key)
Sets the key to listen for. |
protected boolean |
shouldProcess()
Returns true if the key specified by setKey(int) has been detected and the frame has not yet been processed. |
Methods inherited from class net.jinx.video.processor.ImageSaver |
---|
canProcess, deinit, init, nextFile, process |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScreenShotProcessor(java.lang.String dir, java.lang.String format, int imageType)
public ScreenShotProcessor(java.lang.String dir, java.lang.String format)
public ScreenShotProcessor(java.io.File dir, java.lang.String format)
public ScreenShotProcessor(java.io.File dir, java.lang.String format, int imageType)
Method Detail |
---|
protected boolean shouldProcess()
shouldProcess
in class ImageSaver
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
e
- the KeyEvent.public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void setKey(int key)
key
- the key code to listen for. This should be one of the VK_*
constants from java.awt.event.KeyEvent.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |