Ejemplo n.º 1
0
 private void showMonomeDisplay() {
   if (monomeDisplayFrame == null || monomeDisplayFrame.isClosed()) {
     MonomeConfiguration monomeConfiguration =
         MonomeConfigurationFactory.getMonomeConfiguration(index);
     monomeDisplayFrame =
         new MonomeDisplayFrame(monomeConfiguration.sizeX, monomeConfiguration.sizeY);
     MainGUI.getDesktopPane().add(monomeDisplayFrame);
     try {
       monomeDisplayFrame.setSelected(true);
     } catch (PropertyVetoException e) {
       e.printStackTrace();
     }
   } else {
     try {
       monomeDisplayFrame.setSelected(true);
     } catch (PropertyVetoException e) {
       e.printStackTrace();
     }
   }
 }
Ejemplo n.º 2
0
  private void showMonomeSetup() {
    if (monomeSetupFrame != null && monomeSetupFrame.isShowing()) {
      try {
        monomeSetupFrame.setSelected(true);
      } catch (PropertyVetoException e) {
        e.printStackTrace();
      }
      return;
    }

    monomeSetupFrame =
        new MonomeSetupFrame(MonomeConfigurationFactory.getMonomeConfiguration(index));
    monomeSetupFrame.setSize(new Dimension(148, 207));
    monomeSetupFrame.setVisible(true);
    Main.main.mainFrame.add(monomeSetupFrame);
    try {
      monomeSetupFrame.setSelected(true);
    } catch (PropertyVetoException e) {
      e.printStackTrace();
    }
  }
Ejemplo n.º 3
0
  private void showPageChangeConfiguration() {
    if (pccFrame != null && pccFrame.isShowing()) {
      try {
        pccFrame.setSelected(true);
      } catch (PropertyVetoException e) {
        e.printStackTrace();
      }
      return;
    }

    pccFrame =
        new PageChangeConfigurationFrame(MonomeConfigurationFactory.getMonomeConfiguration(index));
    pccFrame.setSize(new Dimension(212, 370));
    pccFrame.setVisible(true);
    Main.main.mainFrame.add(pccFrame);
    try {
      pccFrame.setSelected(true);
    } catch (PropertyVetoException e) {
      e.printStackTrace();
    }
  }
Ejemplo n.º 4
0
 public void actionToggleMidiOutput(String deviceName) {
   MonomeConfiguration monomeConfig = MonomeConfigurationFactory.getMonomeConfiguration(index);
   monomeConfig.toggleMidiOutDevice(deviceName);
 }
Ejemplo n.º 5
0
 public void actionTogglePageChangeMidiInput(String deviceName) {
   MonomeConfiguration monomeConfig = MonomeConfigurationFactory.getMonomeConfiguration(index);
   monomeConfig.togglePageChangeMidiInDevice(deviceName);
 }