Package com.neophob.sematrix.core.glue

Examples of com.neophob.sematrix.core.glue.MatrixData


      LayoutModel lmBox2 = new LayoutModel(2, 1, 32, 32, 0);
      LayoutModel lmBox4 = new LayoutModel(2, 2, 32, 32, 0);

      for (int y=1; y<38; y++) {
          for (int x=1; x<38; x++) {
              MatrixData matrix = new MatrixData(x,y);

              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));
                assertNotNull(matrix.getScreenBufferForDevice(visual, lmBox2, map, output));
                assertNotNull(matrix.getScreenBufferForDevice(visual, lmBox4, map, output));
          }       
      }
    }
View Full Code Here


        }
      }
    }
   
    private void testWithResolution(int x, int y) {
      MatrixData matrix = new MatrixData(x,y);
      PixelControllerMixer pcm = new PixelControllerMixer(matrix, sound);
      pcm.initAll();

      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
View Full Code Here

      Layout l = new BoxLayout(panels, panels);
      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

  @Test
  public void testWindowSizePixelInvaders() {
    if (java.awt.GraphicsEnvironment.isHeadless()) {
      return;
    }
    MatrixData matrixData = new MatrixData(8, 8);
    LedSimulatorOutputWindow lsow = new LedSimulatorOutputWindow(matrixData, LED_SIZE, l);
    Point p = lsow.getWindowSize();
  }
View Full Code Here

  @Test
  public void testWindowSizeStripInvaders() {
    if (java.awt.GraphicsEnvironment.isHeadless()) {
      return;
    }
    MatrixData matrixData = new MatrixData(400, 8);
    LedSimulatorOutputWindow lsow = new LedSimulatorOutputWindow(matrixData, LED_SIZE, l);
    Point p = lsow.getWindowSize();
    Assert.assertTrue(p.getX()>p.getY());
    System.out.println(lsow);
  }
View Full Code Here

  @Test
  public void testWindowSizeStripInvadersInverted() {
    if (java.awt.GraphicsEnvironment.isHeadless()) {
      return;
    }
    MatrixData matrixData = new MatrixData(8, 200);
    LedSimulatorOutputWindow lsow = new LedSimulatorOutputWindow(matrixData, LED_SIZE, l);
    Point p = lsow.getWindowSize();
    Assert.assertTrue(p.getX()<p.getY());
    System.out.println(lsow);
  }
View Full Code Here

TOP

Related Classes of com.neophob.sematrix.core.glue.MatrixData

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.