|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.smartwerkz.jupload.classic.screenshot.ScreenCamera
public abstract class ScreenCamera
Has to be implemented and an instace has to be delivered to take
a delayed screenshot with the ScreenCapturer
| Field Summary | |
|---|---|
protected java.util.TimerTask |
currentTask
|
static java.awt.Dimension |
screenDimension
|
| Constructor Summary | |
|---|---|
ScreenCamera()
|
|
| Method Summary | |
|---|---|
void |
cancel()
|
void |
capture(java.awt.GraphicsDevice device,
int delayInSeconds)
Captures a screenshot with the given device, delayed by the given amount of seconds or instantly if the amount of seconds is less than 1. |
static java.awt.image.BufferedImage |
capture(java.awt.GraphicsDevice device,
java.awt.Rectangle where)
Captures and returns a screenshot taken from the given device. |
static java.awt.image.BufferedImage |
capture(java.awt.Rectangle where)
Captures and returns a screenshot taken from the default device. |
abstract void |
captureCancelled()
|
abstract void |
captured(java.awt.image.BufferedImage img,
int delay,
int captureTime)
Is called when a capture has successfully been taken after the given delay. |
abstract void |
captureFailed(int delay,
java.lang.Exception e)
Is called when the capturing failed because of the given Exception after the given delay. |
abstract void |
captureStarting(int delay)
Is called when a delayed capture should be taken. |
boolean |
capturing()
|
static java.awt.GraphicsDevice[] |
getDevices()
Returns all available devices for screen captures. |
long |
getElapsedTime()
|
long |
getStartTime()
|
abstract java.awt.Rectangle |
getTarget()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.Dimension screenDimension
protected java.util.TimerTask currentTask
| Constructor Detail |
|---|
public ScreenCamera()
| Method Detail |
|---|
public static java.awt.GraphicsDevice[] getDevices()
public static java.awt.image.BufferedImage capture(java.awt.Rectangle where)
throws java.lang.Exception
java.lang.Exception
public static java.awt.image.BufferedImage capture(java.awt.GraphicsDevice device,
java.awt.Rectangle where)
throws java.lang.Exception
device - The device to be used
java.lang.ExceptiongetDevices()
public void capture(java.awt.GraphicsDevice device,
int delayInSeconds)
public boolean capturing()
public void cancel()
public long getStartTime()
public long getElapsedTime()
public abstract java.awt.Rectangle getTarget()
public abstract void captureStarting(int delay)
public abstract void captured(java.awt.image.BufferedImage img,
int delay,
int captureTime)
captureTime - The amount of milliseconds that the capturing took.
public abstract void captureFailed(int delay,
java.lang.Exception e)
public abstract void captureCancelled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||