00001 package edu.stanford.hci.r3.devices.channels;
00002
00003 import java.awt.Dimension;
00004 import java.io.File;
00005
00006 import edu.stanford.hci.r3.devices.Device;
00007 import edu.stanford.hci.r3.util.DebugUtils;
00008 import edu.stanford.hci.r3.util.graphics.ImageUtils;
00009
00030 public class DisplayChannel {
00031
00036 public enum ImageLocation {
00037 NORTH, SOUTH, EAST, WEST, NORTH_EAST, NORTH_WEST, SOUTH_EAST, SOUTH_WEST
00038 }
00039
00043 private Device parentDevice;
00044
00048 public DisplayChannel(Device device) {
00049 parentDevice = device;
00050 }
00051
00055 public void showInk() {
00056
00057 }
00058
00062 public void displayImage(File imgFile, double maxWidthAsPercentageOfDisplay,
00063 double maxHeightAsPercentageOfDisplay, ImageLocation where) {
00064 final Dimension dimension = ImageUtils.readSize(imgFile);
00065 DebugUtils.println(dimension);
00066
00067 }
00068 }