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

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


            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

        if (parameterModels.length % 3 != 0)
            throw new IllegalArgumentException("Cord parameters must be passed in sets of 3");
    }

    protected void buildColumnAndSectionData() {
        rowHeaderColumnData = new ColumnData("", 50, JLabel.LEFT, 0, Object.class);
        columnData = new ColumnData[3];
        columnData[0] = new ColumnData("Source", 80, JLabel.LEFT, 0, ReadableParameterModel.class, null, null);
        columnData[1] = new ColumnData("Dest", 80, JLabel.LEFT, 0, ReadableParameterModel.class, null, null);
        columnData[2] = new ColumnData("Amt", 55, JLabel.LEFT, 0, ReadableParameterModel.class, null, null);
        sectionData = new SectionData[]{new SectionData(UIColors.getTableFirstSectionBG(), UIColors.getTableFirstSectionFG(), 215, "")};
    }
View Full Code Here

*/
public class MidiManagerTableModel extends AbstractRowHeaderedAndSectionedTableModel implements MidiSystemFacade.MidiSystemListener {


    protected void buildColumnAndSectionData() {
        rowHeaderColumnData = new ColumnData("", 150, JLabel.LEFT, 0, Object.class);
        columnData = new ColumnData[5];
        columnData[0] = new ColumnData("Permitted", 60, JLabel.LEFT, 0, String.class, null, null);
        columnData[1] = new ColumnData("References", 60, JLabel.LEFT, 0, String.class, null, null);
        columnData[2] = new ColumnData("Description", 200, JLabel.LEFT, 0, String.class, null, null);
        columnData[3] = new ColumnData("Vendor", 150, JLabel.LEFT, 0, String.class, null, null);
        columnData[4] = new ColumnData("Version", 80, JLabel.LEFT, 0, String.class, null, null);
        sectionData = new SectionData[]{new SectionData(UIColors.getTableFirstSectionBG(), UIColors.getTableFirstSectionFG(), 550, "")};
    }
View Full Code Here

    public void zDispose() {
        super.zDispose();
    }

    protected void buildColumnAndSectionData() {
        rowHeaderColumnData = new ColumnData("", 65, JLabel.LEFT, 0, Object.class);
        columnData = new ColumnData[1];
        columnData[0] = new ColumnData("", 85, JLabel.LEFT, 0, ReadableParameterModel.class, null, null);
        sectionData = new SectionData[]{new SectionData(UIColors.getTableFirstSectionBG(), UIColors.getTableFirstSectionFG(), 85, "")};
    }
View Full Code Here

        init();
        sc.addSampleContextListener(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, ContextReadableSample.class, new PresetContextTableCellRenderer(), null);
        sectionData = new SectionData[]{new SectionData(UIColors.getTableFirstSectionBG(), UIColors.getTableFirstSectionFG(), 155, "")};
    }
View Full Code Here

* To change this template use Options | File Templates.
*/
public class SmdiManagerTableModel extends AbstractRowHeaderedAndSectionedTableModel implements SMDIAgent.SmdiListener {

    protected void buildColumnAndSectionData() {
        rowHeaderColumnData = new ColumnData("", 150, JLabel.LEFT, 0, Object.class);
        columnData = new ColumnData[5];
        columnData[0] = new ColumnData("SMDI", 50, JLabel.LEFT, 0, String.class, null, null);
        columnData[1] = new ColumnData("Host Adapter Id", 80, JLabel.LEFT, 0, String.class, null, null);
        columnData[2] = new ColumnData("SCSI Id", 50, JLabel.LEFT, 0, String.class, null, null);
        columnData[3] = new ColumnData("Manufacturer", 150, JLabel.LEFT, 0, String.class, null, null);
        columnData[4] = new ColumnData("Coupled Midi Device", 200, JLabel.LEFT, 0, String.class, null, null);
        sectionData = new SectionData[]{new SectionData(UIColors.getTableFirstSectionBG(), UIColors.getTableFirstSectionFG(), 530, "")};
    }
View Full Code Here

* To change this template use Options | File Templates.
*/
public class LicenseManagerTableModel extends AbstractRowHeaderedAndSectionedTableModel implements LicenseKeyManager.LicenseKeyListener {

    protected void buildColumnAndSectionData() {
        rowHeaderColumnData = new ColumnData("", 30, JLabel.LEFT, 0, Object.class);
        columnData = new ColumnData[5];
        columnData[0] = new ColumnData("Product", 100, JLabel.LEFT, 0, String.class, null, null);
        columnData[1] = new ColumnData("Type", 120, JLabel.LEFT, 0, String.class, null, null);
        columnData[2] = new ColumnData("Load", 50, JLabel.LEFT, 0, String.class, null, null);
        columnData[3] = new ColumnData("Licensee", 180, JLabel.LEFT, 0, String.class, null, null);
        columnData[4] = new ColumnData("Key String", 200, JLabel.LEFT, 0, String.class, null, null);
        sectionData = new SectionData[]{new SectionData(UIColors.getTableFirstSectionBG(), UIColors.getTableFirstSectionFG(), 650, "")};
    }
View Full Code Here

        }
    }

    protected void setupLook(JTable table, Object value, boolean isSelected, int row, int column) {
        super.setupLook(table, value, isSelected, row, column);
        RowHeaderedAndSectionedTable t = (RowHeaderedAndSectionedTable) table;
        ColumnData[] cd = t.getColumnData();
        SectionData[] sd = t.getSectionData();
        setBackground(sd[cd[column].sectionIndex].sectionBG);
        setForeground(sd[cd[column].sectionIndex].sectionFG);

        if (table instanceof WinValueProfileProvider)
            wvp = ((WinValueProfileProvider) table).getWinValues(row, column);
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.ColumnData

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.