Package com.neophob.sematrix.core.fader

Examples of com.neophob.sematrix.core.fader.Switch


    @Test
    public void presetFadeTest() throws Exception {
      final int fps = 50;
     
      MatrixData matrix = new MatrixData(8, 8);
      IFader switchFader = new Switch(matrix, fps);
      assertEquals(Fader.FaderName.SWITCH.getId(), switchFader.getId());

      //special case, the switch fader is always done!
      assertTrue(switchFader.isDone());
      assertFalse(switchFader.isStarted());
     
      switchFader.startFade(99, new int[77]);
      assertTrue(switchFader.isStarted());
     
      switchFader.getBuffer(new int[55], new int[5]);
      switchFader.cleanUp();
    }
View Full Code Here


    @Test
    public void visualFadeTest() throws Exception {
      final int fps = 5000;
     
      MatrixData matrix = new MatrixData(8, 8);
      IFader switchFader = new Switch(matrix, fps);
      assertEquals(Fader.FaderName.SWITCH.getId(), switchFader.getId());

      //special case, the switch fader is always done!
      assertTrue(switchFader.isDone());
      assertFalse(switchFader.isStarted());
     
      switchFader.startFade(99, 1);
      assertTrue(switchFader.isStarted());
     
      switchFader.getBuffer(new int[55], new int[5]);
      switchFader.getBuffer(new int[55], new int[5]);
      switchFader.cleanUp();
    }
View Full Code Here

      assertEquals(panels, l.getRow1Size());
      assertEquals(0, l.getRow2Size());     
      assertEquals(Layout.LayoutName.HORIZONTAL, l.getLayoutName());
     
      MatrixData matrix = new MatrixData(8, 8);
      IFader f = new Switch(matrix, 50);
      List<OutputMapping> ioMapping = new ArrayList<OutputMapping>();
     
      //testcase#1: each output has a visual assigned
    for (int n=0; n<panels; n++) {
      ioMapping.add(new OutputMapping(f, n));     
View Full Code Here

              Generator g = new Fire(matrix);
              Effect e = new PassThru(matrix);
                Visual visual = new Visual(g, e, m, c);       
                   
              IFader fader = new Switch(matrix, 100);
              OutputMapping map = new OutputMapping(fader, 0);
             
                assertNotNull(matrix.getScreenBufferForDevice(visual, map));     
                assertNotNull(matrix.getScreenBufferForDevice(visual, lmDefault, map, output));
                assertNotNull(matrix.getScreenBufferForDevice(visual, lmBox1, map, output));
View Full Code Here

      assertEquals(panels, l.getRow1Size());
      assertEquals(panels, l.getRow2Size());     
      assertEquals(Layout.LayoutName.BOX, l.getLayoutName());
     
      MatrixData matrix = new MatrixData(8, 8);
      IFader fader = new Switch(matrix, 50);
      List<OutputMapping> ioMapping = new ArrayList<OutputMapping>();
    for (int n=0; n<panels+panels; n++) {
      ioMapping.add(new OutputMapping(fader, n));     
    }
View Full Code Here

TOP

Related Classes of com.neophob.sematrix.core.fader.Switch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.