App
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
appcore
src
mhr
appcore
commands
imagecommands
SetLayerMaskActiveCommand.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
import
mhr.appcore.image.ImageSelectedState;
6
12
public
class
SetLayerMaskActiveCommand
extends
AppCommand
{
13
14
protected
int
id
;
15
protected
boolean
active
;
16
22
public
SetLayerMaskActiveCommand
(
int
id
,
boolean
active
) {
23
this.active =
active
;
24
this.
id
=
id
;
25
}
26
27
@Override
28
protected
void
action
(
AppCore
target) {
29
synchronized
(
this
) {
30
target.
getRenderer
().
susepnd
(
this
);
31
try
{
32
this.wait();
33
}
catch
(InterruptedException
e
) {
34
35
}
36
try
{
37
target.
getImg
().
setLayerMaskActive
(
id
,
active
);
38
}
finally
{
39
target.
getRenderer
().
wake
(
this
);
40
target.
getRenderer
().
renderOnThisThread
();
41
}
42
}
43
44
}
45
46
}
Generated on Thu May 23 2013 22:10:55 for App by
1.8.3