Package com.pcmsolutions.device.EMU.E4

Examples of com.pcmsolutions.device.EMU.E4.ViewMediator


        return models;
    }

    protected JPanel getAmpEnvPanel() throws IllegalParameterIdException {
        return new AmpEnvelopePanel().init(voice);
    }
View Full Code Here


    protected JPanel getFiltEnvPanel() throws IllegalParameterIdException {
        return new FilterEnvelopePanel().init(voice);
    }

    protected JPanel getAuxEnvPanel() throws IllegalParameterIdException {
        return new AuxEnvelopePanel().init(voice);
    }
View Full Code Here

    protected JPanel getAmpEnvPanel() throws IllegalParameterIdException {
        return new AmpEnvelopePanel().init(voice);
    }

    protected JPanel getFiltEnvPanel() throws IllegalParameterIdException {
        return new FilterEnvelopePanel().init(voice);
    }
View Full Code Here

    private EditableAmpEnvelopePanel init(ContextEditablePreset.EditableVoice[] voices, EditableParameterModel[] models) {
        super.init(voices, ParameterCategories.VOICE_AMPLIFIER_ENVELOPE, models, "Amp Envelope", toggleAction);
        DevicePreferences.ZPREF_fillAmpEnvelopes.addChangeListener(cl);
        DevicePreferences.ZPREF_ampEnvelopeMode.addChangeListener(cl);
        getEnvelope().addMouseListener(new RatesEnvelopeMouseListener(getEnvelope(), DevicePreferences.ZPREF_fillAmpEnvelopes, DevicePreferences.ZPREF_ampEnvelopeMode));
        updateEnvelope();
        return this;
    }
View Full Code Here

    public EditableAmpEnvelopePanel init(ContextEditablePreset.EditableVoice voice) throws IllegalParameterIdException {
        super.init(voice, ParameterCategories.VOICE_AMPLIFIER_ENVELOPE, IntPool.get(70), "Amp Envelope", toggleAction);
        DevicePreferences.ZPREF_fillAmpEnvelopes.addChangeListener(cl);
        DevicePreferences.ZPREF_ampEnvelopeMode.addChangeListener(cl);
        getEnvelope().addMouseListener(new RatesEnvelopeMouseListener(getEnvelope(), DevicePreferences.ZPREF_fillAmpEnvelopes, DevicePreferences.ZPREF_ampEnvelopeMode));
        updateEnvelope();
        return this;
    }
View Full Code Here

    private EditableFilterEnvelopePanel init(ContextEditablePreset.EditableVoice[] voices, EditableParameterModel[] models) {
        super.init(voices, ParameterCategories.VOICE_FILTER_ENVELOPE, models, "Filter Envelope", toggleAction);
        getEnvModel().setMinLevel(-100);
        DevicePreferences.ZPREF_fillFilterEnvelopes.addChangeListener(cl);
        DevicePreferences.ZPREF_filterEnvelopeMode.addChangeListener(cl);
        getEnvelope().addMouseListener(new RatesEnvelopeMouseListener(getEnvelope(), DevicePreferences.ZPREF_fillFilterEnvelopes, DevicePreferences.ZPREF_filterEnvelopeMode));
        return this;
    }
View Full Code Here

    private EditableAuxEnvelopePanel init(ContextEditablePreset.EditableVoice[] voices, EditableParameterModel[] models) {
        super.init(voices, ParameterCategories.VOICE_AUX_ENVELOPE, models, "Aux Envelope", toggleAction);
        getEnvModel().setMinLevel(-100);
        DevicePreferences.ZPREF_fillAuxEnvelopes.addChangeListener(cl);
        DevicePreferences.ZPREF_auxEnvelopeMode.addChangeListener(cl);
        getEnvelope().addMouseListener(new RatesEnvelopeMouseListener(getEnvelope(), DevicePreferences.ZPREF_fillAuxEnvelopes, DevicePreferences.ZPREF_auxEnvelopeMode));
        return this;
    }
View Full Code Here

        WinValueProfile.ZPREF_velWinDisplayMode.removeChangeListener(this);
        readablePresets.clear();
    }

    protected void buildColumnAndSectionData() {
        rowHeaderColumnData = new ColumnData("", DEF_COL_WIDTH, JLabel.LEFT, 0, Object.class);
        columnData = new ColumnData[parameterObjects.size()];
        String title;
        GeneralParameterDescriptor pd;
        int id;
        ArrayList arrSectionData = new ArrayList();
        int sectionIndex = 0;
        int colWidthCount = 0;

        id2col.clear();

        for (int i = 0, n = parameterObjects.size(); i < n; i++) {
            pd = (GeneralParameterDescriptor) parameterObjects.get(i);
            title = getColNameFromRefString(pd.getReferenceString(), 1);
            id = pd.getId().intValue();

            id2col.put(IntPool.get(id), IntPool.get(i + 1));

            if (id == 23)
                columnData[i] = new ColumnData(title, DEF_COL_WIDTH * 4, JLabel.LEFT, sectionIndex, ReadableParameterModel.class);
            else if (id == 28 || id == 30) // alphanumeric key position and keyWin
                columnData[i] = new ColumnData(title, DEF_COL_WIDTH + 5, JLabel.LEFT, sectionIndex, ReadableParameterModel.class, WinTableCellRenderer.CANONICAL_RENDERERS[(id - 28) % 4]);
            else if (id >= 28 && id <= 35) // keyWin, velWin
                columnData[i] = new ColumnData(title, DEF_COL_WIDTH, JLabel.LEFT, sectionIndex, ReadableParameterModel.class, WinTableCellRenderer.CANONICAL_RENDERERS[(id - 28) % 4]);
            else if (id == 251)
                columnData[i] = new ColumnData(title, (DEF_COL_WIDTH * 3) / 2, JLabel.LEFT, sectionIndex, ReadableParameterModel.class);
            else
                columnData[i] = new ColumnData(title, DEF_COL_WIDTH, JLabel.LEFT, sectionIndex, ReadableParameterModel.class);

            colWidthCount += columnData[i].width;

            if (id == 27) {
                arrSectionData.add(new SectionData(
View Full Code Here

    protected void updateParameterModelAtIndex(int pmIndex) {
        this.fireTableCellUpdated(pmIndex / 4, pmIndex % 4 + 1);
    }

    protected void buildColumnAndSectionData() {
        rowHeaderColumnData = new ColumnData("", 50, JLabel.LEFT, 0, Object.class);
        columnData = new ColumnData[4];
        columnData[0] = new ColumnData("Rate", 60, JLabel.LEFT, 0, ReadableParameterModel.class, null, null);
        columnData[1] = new ColumnData("Level", 60, JLabel.LEFT, 0, ReadableParameterModel.class, null, null);
        columnData[2] = new ColumnData("Rate", 60, JLabel.LEFT, 1, ReadableParameterModel.class, null, null);
        columnData[3] = new ColumnData("Level", 60, JLabel.LEFT, 1, ReadableParameterModel.class, null, null);
        sectionData = new SectionData[2];
        sectionData[0] = new SectionData(UIColors.getTableFirstSectionBG(), UIColors.getTableFirstSectionFG(), 120, "SEG 1");
        sectionData[1] = new SectionData(UIColors.getTableSecondSectionBG(), UIColors.getTableSecondSectionFG(), 120, "SEG 2");
    }
View Full Code Here

        init();
        pc.addPresetContextListener(this);
    }

    protected void buildColumnAndSectionData() {
        rowHeaderColumnData = new ColumnData("", 45, JLabel.LEFT, 0, Object.class);
        columnData = new ColumnData[1];
        // columnData[0] = new ColumnData("", 155, JLabel.LEFT, 0, ReadablePreset.class, new PresetContextTableCellRenderer(new Color(255, 255, 255, 200), new Color(242, 81, 103, 250), 0.6), null);
        columnData[0] = new ColumnData("", 155, JLabel.LEFT, 0, ReadablePreset.class, new PresetContextTableCellRenderer(), null);
        sectionData = new SectionData[]{new SectionData(UIColors.getTableFirstSectionBG(), UIColors.getTableFirstSectionFG(), 155, "")};
    }
View Full Code Here

TOP

Related Classes of com.pcmsolutions.device.EMU.E4.ViewMediator

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.