App
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
appcore
src
mhr
appcore
commands
imagecommands
MoveLayerCommand.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
MoveLayerCommand
extends
AppCommand
{
12
13
protected
int
layerId
;
14
protected
int
beforeLayerId
;
15
21
public
MoveLayerCommand
(
int
layerId
,
int
overLayerId) {
22
this.layerId =
layerId
;
23
this.
beforeLayerId
= overLayerId;
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
}
35
try
{
36
target.
getImg
().
moveLayer
(
layerId
,
beforeLayerId
);
37
target.
getRenderer
().
renderOnThisThread
();
38
}
finally
{
39
target.
getRenderer
().
wake
(
this
);
40
}
41
42
}
43
}
44
45
}
Generated on Thu May 23 2013 22:10:55 for App by
1.8.3