@@ -73,11 +73,6 @@ public void start()
73
73
panels [0 ] = canvas .getGroupPanels ();
74
74
rows = new Panel [auroras .length ][][];
75
75
rows [0 ] = PanelTableSort .getRows (panels [0 ]);
76
- // for (int i = 0; i < auroras.length; i++)
77
- // {
78
- // panels[i] = getSortedPanels(auroras[i]);
79
- // rows[i] = PanelTableSort.getRows(panels[i]);
80
- // }
81
76
saveCurrentEffect ();
82
77
startExternalStreaming ();
83
78
timer = new Timer (delay , new ActionListener ()
@@ -220,61 +215,6 @@ else if (deviceType.equals("canvas"))
220
215
}
221
216
}
222
217
223
- // private void applySelectionMode()
224
- // throws StatusCodeException, IOException
225
- // {
226
- // for (int p = 0; p < auroras.length; p++)
227
- // {
228
- // String deviceType = getDeviceType(auroras[p]);
229
- // CustomEffectBuilder ceb = new CustomEffectBuilder(auroras[p]);
230
- // CanvasAnimDataBuilder cadb = new CanvasAnimDataBuilder(auroras[p]);
231
- // BufferedImage img = getScreenImage();
232
- // final int VERTICAL_SEPARATOR = captureArea.height/rows[p].length;
233
- // for (int i = 0; i < rows[p].length; i++)
234
- // {
235
- // int captureY = VERTICAL_SEPARATOR*i + VERTICAL_SEPARATOR/2;
236
- //
237
- // Map<Panel, Color> colors = new HashMap<Panel, Color>();
238
- // for (int j = 0; j < rows[p][i].length; j++)
239
- // {
240
- // final int HORIZONTAL_SEPARATOR = captureArea.width/rows[p][i].length;
241
- // int captureX = HORIZONTAL_SEPARATOR*j + HORIZONTAL_SEPARATOR/2;
242
- //
243
- // try
244
- // {
245
- // if (img.getSubimage(captureX, captureY, 1, 1) != null)
246
- // {
247
- // Color color = new Color(img.getRGB(captureX, captureY));
248
- // if (deviceType.equals("aurora"))
249
- // {
250
- // ceb.addFrame(rows[p][i][j], new Frame(color.getRed(),
251
- // color.getGreen(), color.getBlue(), 0, 5));
252
- // }
253
- // else if (deviceType.equals("canvas"))
254
- // {
255
- // cadb.addFrame(rows[p][i][j], new Frame(color.getRed(),
256
- // color.getGreen(), color.getBlue(), 0, 5));
257
- // }
258
- // colors.put(rows[p][i][j], color);
259
- // }
260
- // }
261
- // catch (RasterFormatException rfe)
262
- // {
263
- // // catch, but ignore
264
- // }
265
- // }
266
- // }
267
- // if (deviceType.equals("aurora"))
268
- // {
269
- // auroras[p].externalStreaming().sendStaticEffect(ceb.build("", false));
270
- // }
271
- // else if (deviceType.equals("canvas"))
272
- // {
273
- // CanvasExtStreaming.sendAnimData(cadb.build(), auroras[p]);
274
- // }
275
- // }
276
- // }
277
-
278
218
public boolean isRunning ()
279
219
{
280
220
return running ;
0 commit comments