FillRectCommand.java

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

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