App

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

- File List
- File Members

ResizeImageCommand.java
Go to the documentation of this file.
1 package mhr.appcore.commands.core;
2
3 import mhr.appcore.AppCore;
4 import mhr.appcore.commands.AppCommand;
5 import mhr.appcore.interpolators.InterpolatorType;
6 import mhr.appcore.utils.Rect;
7
11 public class ResizeImageCommand extends AppCommand {
12
13 public int newWidth;
14 public int newHeight;
15 public InterpolatorType iType;
16 public double force;
17 public ResizeAction action;
18
19 public static enum ResizeAction {
20 INIT, PREVIEW, COMMIT, CANCEL
21 }
22
31 public ResizeImageCommand(int w, int h, InterpolatorType type, double force, ResizeAction action) {
32 newWidth = w;
33 newHeight = h;
34 iType = type;
35 this.force = force;
36 this.action = action;
37 }
38
39 @Override
40 protected void action(AppCore target) {
41 target.resizeImage(this);
42 }
43
44 }