Package com.pcmsolutions.device.EMU.E4.preset

Examples of com.pcmsolutions.device.EMU.E4.preset.AggRemoteName


    }

    public String getSummaryString(Object[] arguments) throws IllegalArgumentException {
        if (arguments.length < numArgs)
            throw new IllegalArgumentException("Insufficient Arguments");
        AggRemoteName pn;
        try {
            pn = new AggRemoteName(getTarget().getPresetNumber(), getTarget().getPresetName());
        } catch (NoSuchPresetException e) {
            pn = new AggRemoteName(getTarget().getPresetNumber(), null);
        } catch (PresetEmptyException e) {
            pn = new AggRemoteName(getTarget().getPresetNumber(), null);
        }
        try {
            if (getTarget().presetEmpty(((AggRemoteName) arguments[0]).getIndex())) {
                return "Copy " + pn + " to  " + arguments[0];
            } else
View Full Code Here


                } catch (NoSuchPresetException e) {
                    e.printStackTrace();
                } catch (NoSuchContextException e) {
                    e.printStackTrace();
                }
                retArray[k] = new AggRemoteName(p, (String) presetMap.get(p));
                k++;
            }
        }

        JComboBox j = new JComboBox(retArray);
View Full Code Here

                        } catch (NoSuchPresetException e) {
                            e.printStackTrace();
                        } catch (NoSuchContextException e) {
                            e.printStackTrace();
                        }
                        retArray[k] = new AggRemoteName(p, (String) presetMap.get(p));
                        k++;
                    }
                }

                JComboBox j = new JComboBox(retArray);
View Full Code Here

                updateTitle();
        }
    };
*/
    protected void makeGlobalPanel() throws ZDeviceNotRunningException {
        ContextEditablePreset cp = (ContextEditablePreset) preset;
        ParameterContext ppc = preset.getDeviceParameterContext().getPresetContext();
        List cats = ppc.getCategories();
        Collections.sort(cats);
        globalPanel = new JPanel() {
            public Color getBackground() {
                return UIColors.getDefaultBG();
            }
        };
        globalPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 10));
        for (int i = 0,n = cats.size(); i < n; i++) {
            List ids = ppc.getIdsForCategory((String) cats.get(i));
            ArrayList models = new ArrayList();
            for (int j = 0,k = ids.size(); j < k; j++)
                try {
                    models.add(cp.getEditableParameterModel((Integer) ids.get(j)));
                } catch (IllegalParameterIdException e) {
                    e.printStackTrace();
                }
            EditableParameterModel[] pms = new EditableParameterModel[models.size()];
            models.toArray(pms);
View Full Code Here

            });
        }
    }

    protected void makeLinkPanel() throws ZDeviceNotRunningException {
        ContextEditablePreset cp = (ContextEditablePreset) preset;
        RowHeaderedAndSectionedTablePanel lp;
        linkTable = new EditableLinkTable(cp);
        linkTable.setCustomAction(new AbstractAction("Hide/Show Filter Section") {
            public void actionPerformed(ActionEvent e) {
                //try {
View Full Code Here

            }
        };
    }

    protected void makeVoicePanel(java.util.List expansionMemory) throws ZDeviceNotRunningException {
        ContextEditablePreset cp = (ContextEditablePreset) preset;
        RowHeaderedAndSectionedTablePanel vp;
        voiceOverviewTable = new EditableVoiceOverviewTable(cp);
        if (expansionMemory != null)
            ((VoiceOverviewTableModel) voiceOverviewTable.getModel()).setExpansionMemory(expansionMemory);
View Full Code Here

                }
                final int f_i = i;
                final String name = (stripIndex ? ZUtilities.removeFirstPattern(ZUtilities.stripExtension(files[f_i].getName()), AudioUtilities.sampleIndexPattern) :
                        ZUtilities.stripExtension(files[f_i].getName()));
                try {
                    sc.newSample(new IsolatedSample() {
                        public String getName() {
                            return name;
                        }

                        public Integer getOriginalIndex() {
View Full Code Here

            }
        };
        JMenuItem pmi = null;
        try {
            ArrayList selPresets = new ArrayList();
            PresetContext dpc = device.getDefaultPresetContext();
            MultiModeContext mmc = device.getMultiModeContext();
            for (int i = 0; i < selRows.length; i++) {
                Integer preset = mmc.getPreset(IntPool.get(selRows[i] + 1));        // +1 because midi channels indexed from 1
                if (preset.intValue() >= 0)
                    selPresets.add(dpc.getReadablePreset(preset));
            }
            if (selPresets.size() > 0) {

                Object[] sp = ZUtilities.eliminateDuplicates(selPresets.toArray());
                String name = (sp.length > 1 ? "Presets on selected channels" : ((ReadablePreset) sp[0]).getPresetDisplayName());
View Full Code Here

        generatePanels();

        if (voice.getPreset().getIcon() instanceof PresetIcon)
            icon = new VoiceEditingIcon((PresetIcon) voice.getPreset().getIcon());

        pla = new PresetListenerAdapter() {
            public void presetNameChanged(PresetNameChangeEvent ev) {
            }

            public void presetRefreshed(PresetRefreshEvent ev) {
                revalidate();
View Full Code Here

    }

    public boolean editCellAt(int row, int column, EventObject e) {
        if (e instanceof MouseEvent && ((MouseEvent) e).getClickCount() >= 2) {
            if (getValueAt(row, column) instanceof ReadablePreset) {
                final ReadablePreset p = (ReadablePreset) getValueAt(row, column);
                new ZDBModifyThread("Preset Default Action") {
                    public void run() {
                        p.performDefaultAction();
                    }
                }.start();
            }
        }
        return false;
View Full Code Here

TOP

Related Classes of com.pcmsolutions.device.EMU.E4.preset.AggRemoteName

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.