classes.main
Class AppletPainter

java.lang.Object
  extended by classes.main.AppletPainter

public class AppletPainter
extends java.lang.Object

Paints the graphics commands stored in the command container class

Version:
1.0, 25-Mar-07
Author:
Prathab, Mukesh
See Also:
CommandContainer, IShapeDrawer

Constructor Summary
AppletPainter(IShapeCommand shapeCommand, CommandContainer commandContainer)
          Initializes with the IShapeCommand object and CommandContainer object
 
Method Summary
 void collectCommands()
          Collects the commands from the CommandContainer object
 void collectCommands(java.util.ArrayList list)
          Collects the commands from the parameter passed
 void paint()
          Paints the commands stored in the commandConatiner object and uses the ShapeDrawCommand to draw the shapes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppletPainter

public AppletPainter(IShapeCommand shapeCommand,
                     CommandContainer commandContainer)
Initializes with the IShapeCommand object and CommandContainer object

Method Detail

paint

public void paint()
Paints the commands stored in the commandConatiner object and uses the ShapeDrawCommand to draw the shapes

See Also:
ShapeDrawCommands, CommandContainer

collectCommands

public void collectCommands()
Collects the commands from the CommandContainer object


collectCommands

public void collectCommands(java.util.ArrayList list)
Collects the commands from the parameter passed

Parameters:
list - Arraylist consists of commands