Package com.pcmsolutions.device.EMU.E4.gui.table

Examples of com.pcmsolutions.device.EMU.E4.gui.table.RowHeaderedAndSectionedTablePanel


    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

        }
        return false;
    }

    protected void buildColumnAndSectionData() {
        rowHeaderColumnData = new ColumnData("", DEF_COL_WIDTH, JLabel.LEFT, 0, Object.class, VoiceOverviewRowHeaderTableCellRenderer.INSTANCE, null);
        columnData = new ColumnData[parameterObjects.size()];
        firstCustomCol = parameterObjects.size() - customIds.length;

        int id;
        ArrayList arrSectionData = new ArrayList();
View Full Code Here

            title = getColNameFromRefString(pd.getReferenceString(), 2);
        else
            title = getColNameFromRefString(pd.getReferenceString(), 1);

        if (id == 38) // sample
            columnData[i] = new ColumnData(title, DEF_COL_WIDTH * 4, JLabel.LEFT, sectionIndex, ReadableParameterModel.class);
        else if (id == 44) // alphanumeric key position
            columnData[i] = new ColumnData(title, DEF_COL_WIDTH + 5, JLabel.LEFT, sectionIndex, ReadableParameterModel.class);
        else if (id == 45 || id == 47) // alphanumeric key position and keyWin
            columnData[i] = new ColumnData(title, DEF_COL_WIDTH + 5, JLabel.LEFT, sectionIndex, ReadableParameterModel.class, WinTableCellRenderer.CANONICAL_RENDERERS[(id - 45) % 4]);
        else if (id >= 45 && id <= 56) // keyWin, velWin, rtWin
            columnData[i] = new ColumnData(title, DEF_COL_WIDTH, JLabel.LEFT, sectionIndex, ReadableParameterModel.class, WinTableCellRenderer.CANONICAL_RENDERERS[(id - 45) % 4]);
        else if (id < 57) // one of the defaults
            columnData[i] = new ColumnData(title, DEF_COL_WIDTH, JLabel.LEFT, sectionIndex, ReadableParameterModel.class);
        else  // user id
            columnData[i] = new ColumnData(title, DEF_COL_WIDTH + 20, JLabel.LEFT, sectionIndex, ReadableParameterModel.class);
        return id;
    }
View Full Code Here

        int hw = 45;
        int pw = 180;
        int vw = 50;
        int pnw = 45;
        int sw = 55;
        rowHeaderColumnData = new ColumnData("", hw, JLabel.LEFT, 0, Object.class);
        columnData = new ColumnData[4];
        sectionData = new SectionData[2];
        columnData[0] = new ColumnData("Preset", pw, JLabel.LEFT, 0, ReadablePreset.class, null, mmptce);
        columnData[1] = new ColumnData("Volume", vw, JLabel.LEFT, 1, ReadableParameterModel.class, null, pmtce);
        columnData[2] = new ColumnData("Pan", pnw, JLabel.LEFT, 1, ReadableParameterModel.class, null, pmtce);
        columnData[3] = new ColumnData("Submix", sw, JLabel.LEFT, 1, ReadableParameterModel.class, null, pmtce);
        // replace "" below with " " to make the section headers visible
        String sStr = "";
        //if (totalChnls > 16)
        //    sStr = " ";
View Full Code Here

                    }
                }.start();
            }
        };
        rs.putValue("tip", "Refresh Tuning Setup");
        RowHeaderedAndSectionedTablePanel tuningPanel;
        RowHeaderedAndSectionedTablePanel modifierPanel;
        RowHeaderedAndSectionedTablePanel setupPanel;
        tuningPanel = new RowHeaderedAndSectionedTablePanel().init(new VoiceParameterTable(voice, ParameterCategories.VOICE_TUNING, tuningModels, "Tuning"), "Show Tuning", UIColors.getTableBorder(), rt);
        modifierPanel = new RowHeaderedAndSectionedTablePanel().init(new VoiceParameterTable(voice, ParameterCategories.VOICE_TUNING_MODIFIERS, modifierModels, "Tuning Modifiers"), "Show Tuning Modifiers", UIColors.getTableBorder(), rm);
        setupPanel = new RowHeaderedAndSectionedTablePanel().init(new VoiceParameterTable(voice, ParameterCategories.VOICE_TUNING_SETUP, setupModels, "Tuning Setup"), "Show Tuning Setup", UIColors.getTableBorder(), rs);
        tuningPanel.setAlignmentX(Component.TOP_ALIGNMENT);
        modifierPanel.setAlignmentX(Component.TOP_ALIGNMENT);
        setupPanel.setAlignmentX(Component.TOP_ALIGNMENT);
        this.add(tuningPanel);
        this.add(modifierPanel);
        this.add(setupPanel);
        return this;
    }
View Full Code Here

TOP

Related Classes of com.pcmsolutions.device.EMU.E4.gui.table.RowHeaderedAndSectionedTablePanel

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.