DisplayGraphicsAction Class Reference

Inheritance diagram for DisplayGraphicsAction:

R3Action List of all members.

Public Member Functions

 DisplayGraphicsAction ()
void drawImage (File imgFile, int x, int y)
void drawImage (File imgFile, int x, int y, double scaleFactor)
void drawRect (int x, int y, int w, int h)
void drawShape (Shape s)
void fillRect (int x, int y, int w, int h)
 Queues up a fillRect.
void invoke ()
 Causes the graphics commands to be displayed on our local device's display channel.
void maximizeFrame ()
void minimizeFrame ()
void restoreFrame ()
void setColor (Color col)
void setExitOnClose (boolean flag)
void setFrameLocation (Point windowOrigin)
void setFrameSize (int w, int h)
void setBringToFront (boolean flag)

Classes

class  LocalDisplay

Detailed Description

Ideally, this is done with reflection, runtime class loading and compilation, etc. But, that's crazy. And we're not gonna do it before the CHI deadline. =) In fact, let's do a little test and try to serialize a JPanel and send it across the wire.

First, test this on a local ActionReceiver. =)

This software is distributed under the BSD License.

Author:
Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 42 of file DisplayGraphicsAction.java.


Member Function Documentation

void drawImage ( File  imgFile,
int  x,
int  y,
double  scaleFactor 
)

Parameters:
imgFile 
x 
y 
scaleFactor 

Definition at line 161 of file DisplayGraphicsAction.java.

void drawImage ( File  imgFile,
int  x,
int  y 
)

Parameters:
imgFile 
x 
y 

Definition at line 151 of file DisplayGraphicsAction.java.

void drawRect ( int  x,
int  y,
int  w,
int  h 
)

Parameters:
x 
y 
w 
h 

Definition at line 172 of file DisplayGraphicsAction.java.

void drawShape ( Shape  s  ) 

Parameters:
s 

Definition at line 179 of file DisplayGraphicsAction.java.

void fillRect ( int  x,
int  y,
int  w,
int  h 
)

Queues up a fillRect.

..

Parameters:
x 
y 
w 
h 

Definition at line 191 of file DisplayGraphicsAction.java.

void invoke (  ) 

Causes the graphics commands to be displayed on our local device's display channel.

See also:
edu.stanford.hci.r3.actions.R3Action.invoke()

Implements R3Action.

Definition at line 200 of file DisplayGraphicsAction.java.

void setColor ( Color  col  ) 

Parameters:
col 

Definition at line 244 of file DisplayGraphicsAction.java.

void setExitOnClose ( boolean  flag  ) 

Parameters:
flag 

Definition at line 251 of file DisplayGraphicsAction.java.


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:40 2007 for R3 Paper Toolkit by  doxygen 1.4.7