safehome.device
Class DeviceCamera

java.lang.Object
  extended by java.lang.Thread
      extended by safehome.device.DeviceCamera
All Implemented Interfaces:
Runnable, interfaceCamera

public class DeviceCamera
extends Thread
implements interfaceCamera

Author:
cs350

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  int centerHeight
           
(package private)  int centerWidth
           
(package private)  Font font
           
(package private)  BufferedImage imgSource
           
(package private) static int RETURN_SIZE
           
(package private) static int SOURCE_SIZE
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DeviceCamera()
           
 
Method Summary
 int getID()
           
 BufferedImage getView()
           
 boolean panLeft()
           
 boolean panRight()
           
 void run()
           
 void setID(int id)
          (non-Javadoc)
 boolean zoomIn()
           
 boolean zoomOut()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

imgSource

BufferedImage imgSource

font

Font font

centerWidth

int centerWidth

centerHeight

int centerHeight

RETURN_SIZE

static final int RETURN_SIZE
See Also:
Constant Field Values

SOURCE_SIZE

static final int SOURCE_SIZE
See Also:
Constant Field Values
Constructor Detail

DeviceCamera

public DeviceCamera()
Method Detail

setID

public void setID(int id)
(non-Javadoc)

Specified by:
setID in interface interfaceCamera
Parameters:
id - id is just id merong
See Also:
interfaceCamera.setID(int)

getID

public int getID()
Specified by:
getID in interface interfaceCamera
Returns:

getView

public BufferedImage getView()
Specified by:
getView in interface interfaceCamera
Returns:

panRight

public boolean panRight()
Specified by:
panRight in interface interfaceCamera
Returns:

panLeft

public boolean panLeft()
Specified by:
panLeft in interface interfaceCamera
Returns:

zoomIn

public boolean zoomIn()
Specified by:
zoomIn in interface interfaceCamera
Returns:

zoomOut

public boolean zoomOut()
Specified by:
zoomOut in interface interfaceCamera
Returns:

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread