/*
 * @(#)IShapeDrawer.java	1.0 11-Apr-07
 *
 * IIT Bombay, 
 * Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License.
 */
package interfaces;

import java.awt.Graphics;

import types.Command;

/**
 * Interface for Drawing shape using graphics object
 *
 * @author  Prathab
 * @version 1.0, 31-Mar-07
 */
public interface IShapeDrawer {

   /**
    * Set the Graphics object which is responsible to draw the graphics
    * @param g <tt>Graphics</tt> object to be set
    */
	public void setGraphicsObject(Graphics g);
	
	/**
	 * Set the Command object which contains the commands to draw the shape
	 * @param command <tt>Command</tt> object to set
	 */
	public void setCommandObject(Command command);

	/**
	 * Draws the shape based on the operations stored in command object
	 */
	public void drawShape();
}
