DisplayChannel Class Reference

List of all members.

Public Types

 NORTH
enum  ImageLocation {
  NORTH, SOUTH, EAST, WEST,
  NORTH_EAST, NORTH_WEST, SOUTH_EAST, SOUTH_WEST
}

Public Member Functions

 DisplayChannel (Device device)
void showInk ()
void displayImage (File imgFile, double maxWidthAsPercentageOfDisplay, double maxHeightAsPercentageOfDisplay, ImageLocation where)

Detailed Description

A Local/Remote JFrame and associated Graphics2D object, essentially. Calls to this graphics2D are handled differently depending on whether the device is local or not. If it is a remote device, the commands are replicated across the wire to the actual device. Don't do toooo many, of course... Need to load local images and such.

This class needs to know whether it's local or remote, and it will handle the display accordingly. If it is remote, it will ask the associated action receiver to create a display object, etc.

TODO: Alternatively, we can implement a remote Display channel that runs in Apollo/Flash! That means, we can have really nice vector graphics that can scale to the display size!

This software is distributed under the BSD License.

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

Definition at line 30 of file DisplayChannel.java.


Member Enumeration Documentation

enum ImageLocation

Definition at line 36 of file DisplayChannel.java.


Constructor & Destructor Documentation

DisplayChannel ( Device  device  ) 

Parameters:
device 

Definition at line 48 of file DisplayChannel.java.


Member Function Documentation

void displayImage ( File  imgFile,
double  maxWidthAsPercentageOfDisplay,
double  maxHeightAsPercentageOfDisplay,
ImageLocation  where 
)

Parameters:
imgFile 

Definition at line 62 of file DisplayChannel.java.


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