|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclasses.main.AppletPainter
public class AppletPainter
Paints the graphics commands stored in the command container class
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 |
|---|
public AppletPainter(IShapeCommand shapeCommand,
CommandContainer commandContainer)
| Method Detail |
|---|
public void paint()
ShapeDrawCommands,
CommandContainerpublic void collectCommands()
public void collectCommands(java.util.ArrayList list)
list - Arraylist consists of commands
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||