edu.stanford.hci.r3.devices.channels
Class DisplayChannel

java.lang.Object
  extended by edu.stanford.hci.r3.devices.channels.DisplayChannel

public class DisplayChannel
extends java.lang.Object

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.


Nested Class Summary
static class DisplayChannel.ImageLocation
          
 
Constructor Summary
DisplayChannel(Device device)
           
 
Method Summary
 void displayImage(java.io.File imgFile, double maxWidthAsPercentageOfDisplay, double maxHeightAsPercentageOfDisplay, DisplayChannel.ImageLocation where)
           
 void showInk()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayChannel

public DisplayChannel(Device device)
Parameters:
device -
Method Detail

showInk

public void showInk()

displayImage

public void displayImage(java.io.File imgFile,
                         double maxWidthAsPercentageOfDisplay,
                         double maxHeightAsPercentageOfDisplay,
                         DisplayChannel.ImageLocation where)
Parameters:
imgFile -

Copyright 2006 Stanford University