public class PenCommand extends Command
| Constructor and Description |
|---|
PenCommand(Model model,
DrawingPalette view) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
complete(java.awt.Color cc)
Method can be tested in JUnit.
|
boolean |
execute()
Invoke the command.
|
public PenCommand(Model model, DrawingPalette view)
public boolean execute()
Commandpublic boolean complete(java.awt.Color cc)
cc - chosen color