App

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

- File List
- File Members

Tool.java
Go to the documentation of this file.
1 package mhr.appcore.tools;
2
3 import mhr.appcore.bitmap.NBitmap;
4 import mhr.appcore.image.Image;
5 import mhr.appcore.tools.actiondata.ToolActionData;
6 import mhr.appcore.tools.exceptions.ToolNotApplicableException;
7 import mhr.appcore.utils.Rect;
8
12 public interface Tool {
13
20 public void applyTo(Image img, ToolActionData data) throws ToolNotApplicableException;
21
36 public void onRender(Image img, NBitmap canvas, NBitmap tmpLayer, NBitmap origLayer, NBitmap masterMask, Rect src, int srcOrigX, int srcOrigY);
37
51 public void onCommit(Image image, NBitmap canvas, NBitmap tmpLayer, NBitmap origLayer, NBitmap masterMask, Rect src, int srcOrigX, int srcOrigY);
52
56 public void dispose();
57
58
59 }