Пример #1
0
 double getInit() {
   // refresh every 1 = 1d ; refresh every 100 = 0d;
   IDisplayOutput output = view.getOutput();
   if (output == null) {
     return 1d;
   }
   int refresh = output.getRefreshRate();
   if (refresh >= 100 || refresh == 0) {
     return 0d;
   }
   return (100 - refresh) / 100d;
 }
Пример #2
0
 void pause(final ToolItem item, final IOutput out) {
   out.setPaused(true);
   item.setToolTipText("Resume " + out.getName());
   view.pauseChanged();
 }
Пример #3
0
 void toggle() {
   view.pauseChanged();
 }