edu.stanford.hci.r3.devices.channels
Class DisplayChannel
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DisplayChannel
public DisplayChannel(Device device)
- Parameters:
device
-
showInk
public void showInk()
displayImage
public void displayImage(java.io.File imgFile,
double maxWidthAsPercentageOfDisplay,
double maxHeightAsPercentageOfDisplay,
DisplayChannel.ImageLocation where)
- Parameters:
imgFile
-