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