SetColorCommand.java

00001 package edu.stanford.hci.r3.actions.types.graphicscommands;
00002 
00003 import java.awt.Color;
00004 import java.awt.Graphics2D;
00005 
00016 public class SetColorCommand implements GraphicsCommand {
00017 
00018         private Color color;
00019 
00023         public SetColorCommand(Color c) {
00024                 color = c;
00025         }
00026 
00030         public void invoke(Graphics2D g2d) {
00031                 g2d.setColor(color);
00032         }
00033 }

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