App

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

CancelableToolUpdateCommand.java
Go to the documentation of this file.
1 package mhr.appcore.commands.toolcommands;
2
3 import mhr.appcore.AppCore;
4 import mhr.appcore.commands.AppCommand;
5 import mhr.appcore.tools.actiondata.BrushLikeToolActionData;
6 import mhr.appcore.tools.actiondata.BrushLikeToolActionData.Action;
7 import mhr.appcore.tools.actiondata.CancelableToolActionData;
8 import mhr.appcore.utils.NotImplementedException;
9
13 public class CancelableToolUpdateCommand extends AppCommand {
14
15 CancelableToolActionData data;
16
17 public CancelableToolUpdateCommand(CancelableToolActionData data) {
18 this.data = data;
19 }
20
21 @Override
22 protected void action(AppCore target) {
23 target.getTool().applyTo(target.getImg(), data);
24 target.getRenderer().render();
25 }
26 }