DrawRectCommand.java

00001 package edu.stanford.hci.r3.actions.types.graphicscommands;
00002 
00003 import java.awt.Graphics2D;
00004 
00015 public class DrawRectCommand implements GraphicsCommand {
00016 
00017         private int h;
00018 
00019         private int w;
00020 
00021         private int x;
00022 
00023         private int y;
00024 
00032         public DrawRectCommand(int xVal, int yVal, int wVal, int hVal) {
00033                 x = xVal;
00034                 y = yVal;
00035                 w = wVal;
00036                 h = hVal;
00037         }
00038 
00042         public void invoke(Graphics2D g2d) {
00043                 g2d.drawRect(x, y, w, h);
00044         }
00045 }

Generated on Sat Apr 14 18:21:34 2007 for R3 Paper Toolkit by  doxygen 1.4.7