Examples of DeviceWorkspaceEnclosurePanel


Examples of com.pcmsolutions.device.EMU.E4.gui.device.DeviceWorkspaceEnclosurePanel

        final DesktopName[] names = provideDefaultDesktopNames(p);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    dep.init(p.getDeviceContext(), new DefaultPresetViewerPanel(p));
                    return dep;
                } catch (Exception e) {
                    throw new ComponentGenerationException(e.getMessage());
                }
            }
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.gui.device.DeviceWorkspaceEnclosurePanel

        final DesktopName[] names = provideDefaultDesktopNames(p);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    dep.init(p.getDeviceContext(), new DefaultPresetEditorPanel(p));
                    return dep;
                } catch (Exception e) {
                    throw new ComponentGenerationException(e.getMessage());
                }
            }
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.gui.device.DeviceWorkspaceEnclosurePanel

        final DesktopName[] names = provideDefaultDesktopNames(voice);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    if (empty) {
                        EmptyReadableVoicePanel evp = new EmptyReadableVoicePanel();
                        evp.init(voice);
                        dep.init(voice.getPreset().getDeviceContext(), evp);
                    } else
                        dep.init(voice.getPreset().getDeviceContext(), new VoicePanel().init(voice));
                    return dep;
                } catch (Exception e) {
                    throw new ComponentGenerationException(e.getMessage());
                }
            }
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.gui.device.DeviceWorkspaceEnclosurePanel

        final DesktopName[] names = provideDefaultDesktopNames(voice, sections);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    VoiceSectionPanel vsp = new VoiceSectionPanel(tp, ViewIndexFactory.getVoiceSectionIndex(sections));
                    int gridIndex = 0;
                    if ((sections & VoiceSections.VOICE_CORDS) != 0) {
                        CordPanel p = new CordPanel();
                        p.init(voice);
                        vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                    }
                    if ((sections & VoiceSections.VOICE_AMP_FILTER) != 0) {
                        AmplifierPanel amp = new AmplifierPanel();
                        amp.init(voice);
                        vsp.addAnchoredComponent(amp, gridIndex++, 0, GridBagConstraints.NORTH);

                        FilterPanel filt = new FilterPanel();
                        filt.init(voice);
                        vsp.addAnchoredComponent(filt, gridIndex++, 0, GridBagConstraints.NORTH);
                    } else {
                        if ((sections & VoiceSections.VOICE_AMP) != 0) {
                            AmplifierPanel p = new AmplifierPanel();
                            p.init(voice);
                            vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                        }
                        if ((sections & VoiceSections.VOICE_FILTER) != 0) {
                            FilterPanel p = new FilterPanel();
                            p.init(voice);
                            vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                        }
                    }
                    if ((sections & VoiceSections.VOICE_LFO) != 0) {
                        LFOPanel p = new LFOPanel();
                        p.init(voice);
                        vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                    }
                    if ((sections & VoiceSections.VOICE_TUNING) != 0) {
                        TuningPanel p = new TuningPanel();
                        p.init(voice);
                        vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                    }
                    if ((sections & VoiceSections.VOICE_ENVELOPES) != 0) {
                        AmpEnvelopePanel amp = new AmpEnvelopePanel();
                        amp.init(voice);
                        vsp.addAnchoredComponent(amp, gridIndex++, 0, GridBagConstraints.NORTH);

                        FilterEnvelopePanel filt = new FilterEnvelopePanel();
                        filt.init(voice);
                        vsp.addAnchoredComponent(filt, gridIndex++, 0, GridBagConstraints.NORTH);

                        AuxEnvelopePanel aux = new AuxEnvelopePanel();
                        aux.init(voice);
                        vsp.addAnchoredComponent(aux, gridIndex++, 0, GridBagConstraints.NORTH);
                    } else {
                        if ((sections & VoiceSections.VOICE_AMP_ENVELOPE) != 0) {
                            AmpEnvelopePanel p = new AmpEnvelopePanel();
                            p.init(voice);
                            vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                        }
                        if ((sections & VoiceSections.VOICE_FILTER_ENVELOPE) != 0) {
                            FilterEnvelopePanel p = new FilterEnvelopePanel();
                            p.init(voice);
                            vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                        }
                        if ((sections & VoiceSections.VOICE_AUX_ENVELOPE) != 0) {
                            AuxEnvelopePanel p = new AuxEnvelopePanel();
                            p.init(voice);
                            vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                        }
                    }
                    dep.init(voice.getPreset().getDeviceContext(), vsp);
                    return dep;
                } catch (Exception e) {
                    throw new ComponentGenerationException(e.getMessage());
                }
            }
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.gui.device.DeviceWorkspaceEnclosurePanel

        final DesktopName[] names = provideDefaultDesktopNames(voices);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    if (empty) {
                        EmptyEditableVoicePanel evp = new EmptyEditableVoicePanel();
                        evp.init(voices);
                        dep.init(voices[0].getPreset().getDeviceContext(), evp);
                    } else
                        dep.init(voices[0].getPreset().getDeviceContext(), new EditableVoicePanel().init(voices));
                    return dep;
                } catch (Exception e) {
                    throw new ComponentGenerationException(e.getMessage());
                }
            }
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.gui.device.DeviceWorkspaceEnclosurePanel

        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    int gridIndex = 0;
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    VoiceSectionPanel vsp = new VoiceSectionPanel(tp, ViewIndexFactory.getVoiceSectionIndex(sections));
                    if ((sections & VoiceSections.VOICE_CORDS) != 0) {
                        EditableCordPanel p = new EditableCordPanel();
                        p.init(voices);
                        vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                    }
                    if ((sections & VoiceSections.VOICE_AMP_FILTER) != 0) {
                        EditableAmplifierPanel amp = new EditableAmplifierPanel();
                        amp.init(voices);
                        vsp.addAnchoredComponent(amp, gridIndex++, 0, GridBagConstraints.NORTH);

                        EditableFilterPanel filt = new EditableFilterPanel();
                        filt.init(voices);
                        vsp.addAnchoredComponent(filt, gridIndex++, 0, GridBagConstraints.NORTH);
                    } else {
                        if ((sections & VoiceSections.VOICE_AMP) != 0) {
                            EditableAmplifierPanel p = new EditableAmplifierPanel();
                            p.init(voices);
                            vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                        }
                        if ((sections & VoiceSections.VOICE_FILTER) != 0) {
                            EditableFilterPanel p = new EditableFilterPanel();
                            p.init(voices);
                            vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                        }
                    }
                    if ((sections & VoiceSections.VOICE_LFO) != 0) {
                        EditableLFOPanel p = new EditableLFOPanel();
                        p.init(voices);
                        vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                    }
                    if ((sections & VoiceSections.VOICE_TUNING) != 0) {
                        EditableTuningPanel p = new EditableTuningPanel();
                        p.init(voices);
                        vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                    }
                    if ((sections & VoiceSections.VOICE_ENVELOPES) != 0) {
                        EditableAmpEnvelopePanel amp = new EditableAmpEnvelopePanel();
                        amp.init(voices);
                        vsp.addAnchoredComponent(amp, gridIndex++, 0, GridBagConstraints.NORTH);

                        EditableFilterEnvelopePanel filt = new EditableFilterEnvelopePanel();
                        filt.init(voices);
                        vsp.addAnchoredComponent(filt, gridIndex++, 0, GridBagConstraints.NORTH);

                        EditableAuxEnvelopePanel aux = new EditableAuxEnvelopePanel();
                        aux.init(voices);
                        vsp.addAnchoredComponent(aux, gridIndex++, 0, GridBagConstraints.NORTH);
                    } else {
                        if ((sections & VoiceSections.VOICE_AMP_ENVELOPE) != 0) {
                            EditableAmpEnvelopePanel p = new EditableAmpEnvelopePanel();
                            p.init(voices);
                            vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                        }
                        if ((sections & VoiceSections.VOICE_FILTER_ENVELOPE) != 0) {
                            EditableFilterEnvelopePanel p = new EditableFilterEnvelopePanel();
                            p.init(voices);
                            vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                        }
                        if ((sections & VoiceSections.VOICE_AUX_ENVELOPE) != 0) {
                            EditableAuxEnvelopePanel p = new EditableAuxEnvelopePanel();
                            p.init(voices);
                            vsp.addAnchoredComponent(p, gridIndex++, 0, GridBagConstraints.NORTH);
                        }
                    }
                    dep.init(voices[0].getPreset().getDeviceContext(), vsp);
                    return dep;
                } catch (Exception e) {
                    throw new ComponentGenerationException(e.getMessage());
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.