App
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 
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 {
37  } finally {
38  target.getRenderer().wake(this);
39  }
40  }
41  }
42 
43 }