edu.mit.csail.uid
Class Screen

java.lang.Object
  extended by edu.mit.csail.uid.Region
      extended by edu.mit.csail.uid.Screen
All Implemented Interfaces:
Observer
Direct Known Subclasses:
UnionScreen

public class Screen
extends Region
implements Observer


Field Summary
protected  java.awt.GraphicsDevice _curGD
           
protected  int _curID
           
protected  edu.mit.csail.uid.OverlayWindow _overlay
           
protected  edu.mit.csail.uid.CapturePrompt _prompt
           
protected  boolean _waitPrompt
           
 
Fields inherited from class edu.mit.csail.uid.Region
_autoWaitTimeout, _evtMgr, _lastMatch, _lastMatches, _observing, _throwException, h, w, x, y
 
Constructor Summary
Screen()
           
Screen(int id)
           
 
Method Summary
 ScreenImage capture()
           
 ScreenImage capture(int x, int y, int w, int h)
           
 ScreenImage capture(java.awt.Rectangle rect)
           
 ScreenImage capture(Region reg)
           
 java.awt.Rectangle getBounds()
           
static java.awt.Rectangle getBounds(int id)
           
 java.awt.GraphicsDevice getGraphicsDevice()
           
 int getID()
           
static int getNumberScreens()
           
 java.awt.Robot getRobot()
           
static java.awt.Robot getRobot(int id)
           
protected  void initBounds()
           
 Region selectRegion()
           
 Region selectRegion(java.lang.String msg)
           
 void showClick(Location loc)
           
 void showDropTarget(Location loc)
           
 void showMove(Location loc)
           
 void showRegion(Region region)
           
 void showTarget(Location loc)
           
 java.lang.String toString()
           
 void update(Subject s)
           
 ScreenImage userCapture()
           
 ScreenImage userCapture(java.lang.String msg)
           
 
Methods inherited from class edu.mit.csail.uid.Region
above, above, below, below, click, doubleClick, drag, dragDrop, dropAt, exists, exists, find, findAll, findAllNow, findNow, getAutoWaitTimeout, getCenter, getEventManager, getH, getLastMatch, getLastMatches, getRect, getROI, getScreen, getThrowException, getW, getX, getY, hover, inside, keyDown, keyUp, left, left, mouseDown, mouseUp, nearby, nearby, observe, observe, observeInBackground, onAppear, onChange, onVanish, paste, right, right, rightClick, setAutoWaitTimeout, setH, setRect, setRect, setRect, setROI, setROI, setROI, setThrowException, setW, setX, setY, stopObserver, type, wait, wait, waitAll, waitVanish, waitVanish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_curGD

protected java.awt.GraphicsDevice _curGD

_curID

protected int _curID

_waitPrompt

protected boolean _waitPrompt

_prompt

protected edu.mit.csail.uid.CapturePrompt _prompt

_overlay

protected edu.mit.csail.uid.OverlayWindow _overlay
Constructor Detail

Screen

public Screen(int id)

Screen

public Screen()
Method Detail

getNumberScreens

public static int getNumberScreens()

getRobot

public static java.awt.Robot getRobot(int id)

getRobot

public java.awt.Robot getRobot()

getGraphicsDevice

public java.awt.GraphicsDevice getGraphicsDevice()

getBounds

public static java.awt.Rectangle getBounds(int id)

getBounds

public java.awt.Rectangle getBounds()

getID

public int getID()

initBounds

protected void initBounds()

capture

public ScreenImage capture()

capture

public ScreenImage capture(int x,
                           int y,
                           int w,
                           int h)

capture

public ScreenImage capture(java.awt.Rectangle rect)

capture

public ScreenImage capture(Region reg)

userCapture

public ScreenImage userCapture()

userCapture

public ScreenImage userCapture(java.lang.String msg)

update

public void update(Subject s)
Specified by:
update in interface Observer

selectRegion

public Region selectRegion()

selectRegion

public Region selectRegion(java.lang.String msg)

showRegion

public void showRegion(Region region)

showMove

public void showMove(Location loc)

showClick

public void showClick(Location loc)

showTarget

public void showTarget(Location loc)

showDropTarget

public void showDropTarget(Location loc)

toString

public java.lang.String toString()
Overrides:
toString in class Region