App

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

- File List
- File Members

PasteRasterDataCommand.java
Go to the documentation of this file.
1 package mhr.appcore.commands.imagecommands.rasterdatacommands;
2
3 import mhr.appcore.AppCore;
4 import mhr.appcore.commands.AppCommand;
5 import mhr.appcore.image.ImageSelectedState;
6
10 public class PasteRasterDataCommand extends AppCommand {
11
12 protected int itemId;
13 protected ImageSelectedState item;
14
20 public PasteRasterDataCommand(ImageSelectedState item, int itemId) {
21 this.item = item;
22 this.itemId = itemId;
23 }
24
25 @Override
26 protected void action(AppCore target) {
27 target.getImg().fromClipBoard(item, itemId);
28 target.getRenderer().render();
29 }
30 }