App
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
appcore
src
mhr
appcore
commands
imagecommands
DeleteLayerCommand.java
Go to the documentation of this file.
1
package
mhr.appcore.commands.imagecommands;
2
3
import
mhr.appcore.AppCore;
4
import
mhr.appcore.commands.AppCommand;
5
11
public
class
DeleteLayerCommand
extends
AppCommand
{
12
13
protected
int
id
;
14
19
public
DeleteLayerCommand
(
int
id
) {
20
this.
id
=
id
;
21
}
22
23
@Override
24
protected
void
action
(
AppCore
target) {
25
synchronized
(
this
) {
26
target.
getRenderer
().
susepnd
(
this
);
27
try
{
28
this.wait();
29
}
catch
(InterruptedException
e
) {
30
31
}
32
try
{
33
target.
getImg
().
deleteLayer
(
id
);
34
target.
getRenderer
().
renderOnThisThread
();
35
}
finally
{
36
target.
getRenderer
().
wake
(
this
);
37
}
38
}
39
40
}
41
42
}
Generated on Thu May 23 2013 22:10:55 for App by
1.8.3