public class FillCommand extends Command
| Constructor and Description |
|---|
FillCommand(Model model,
DrawingPalette view,
boolean present) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
complete(java.util.Optional<java.awt.Color> chosenColor)
Helper method that supports
execute() and can be tested using JUnit. |
boolean |
execute()
Execute method involves user interaction (when present) so the helper complete method
is provided for testing purposes.
|
public FillCommand(Model model, DrawingPalette view, boolean present)
public boolean execute()
public boolean complete(java.util.Optional<java.awt.Color> chosenColor)
execute() and can be tested using JUnit.chosenColor - color to use for filling selected elements