亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? changecellgroup.java

?? The ElectricTM VLSI Design System is an open-source Electronic Design Automation (EDA) system that c
?? JAVA
字號:
/* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * * File: ChangeCellGroup.java * * Copyright (c) 2003 Sun Microsystems and Static Free Software * * Electric(tm) is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Electric(tm) is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Electric(tm); see the file COPYING.  If not, write to * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, Mass 02111-1307, USA. */package com.sun.electric.tool.user.dialogs;import com.sun.electric.database.hierarchy.Cell;import com.sun.electric.database.hierarchy.Library;import com.sun.electric.tool.Job;import com.sun.electric.tool.JobException;import com.sun.electric.tool.user.User;import java.util.ArrayList;import java.util.Collections;import java.util.Comparator;import java.util.Iterator;import java.util.List;import java.util.prefs.Preferences;/** * Class to handle the request to change a cell's group. */public class ChangeCellGroup extends EDialog {	private static Preferences prefs = Preferences.userNodeForPackage(ChangeCellGroup.class);    private static final String selectedRadioButton = "ChangeCellGroup-WhichMoveType";    private List<Cell> cellsToRegroup;              // cells to regroup    private List<Cell.CellGroup> cellGroups;        // list of cell groups    /** Creates new form ChangeCellGroup */    public ChangeCellGroup(java.awt.Frame parent, boolean modal, List<Cell> cellsToRegroup, Library initialLibrary) {        super(parent, modal);        setTitle("Change Cell Group");        this.cellsToRegroup = cellsToRegroup;        cellGroups = new ArrayList<Cell.CellGroup>();        initComponents();        cellNameLabel.setText("Change Cell Group for: "+cellsToRegroup.get(0));        // populate cell group combo box        populateCellGroupsComboBox(cellsToRegroup, initialLibrary);        // get last state of dialog        int selected = prefs.getInt(selectedRadioButton, 0);        cellGroupsComboBox.setEnabled(false);        switch(selected) {            case 0: { moveOwnCellGroup.setSelected(true); break; }            case 1: { moveToCellGroup.setSelected(true); break; }        }        if (cellsToRegroup.size() > 1)        {        	moveToCellGroup.setSelected(true);        	moveOwnCellGroup.setEnabled(false);        }        pack();		finishInitialization();    }    private void populateCellGroupsComboBox(List<Cell> cellsToRegroup, Library lib) {        cellGroups.clear();        cellGroupsComboBox.removeAllItems();        for (Iterator<Cell> it = lib.getCells(); it.hasNext(); ) {            Cell c = it.next();            Cell.CellGroup cg = c.getCellGroup();            if (cg == null) continue;            boolean inList = false;            for(Cell rgCell : cellsToRegroup)            {                if (cg == rgCell.getCellGroup()) { inList = true;   break; }            }            if (inList) continue;            if (!cellGroups.contains(cg)) {                cellGroups.add(cg);            }        }        // sort cell groups        Collections.sort(cellGroups, new CellGroupComparator());        for (Cell.CellGroup cg : cellGroups) {            cellGroupsComboBox.addItem(cg.getName());        }    }    private static class CellGroupComparator implements Comparator<Cell.CellGroup>    {        public int compare(Cell.CellGroup cg1, Cell.CellGroup cg2) {            String s1 = cg1.getName();            String s2 = cg2.getName();            return s1.compareTo(s2);        }    }    private static class ChangeCellGroupJob extends Job    {        private List<Cell> cellsToRegroup;        private Cell newGroupCell;        ChangeCellGroupJob(List<Cell> cellsToRegroup, Cell newGroupCell) {            super("Change Cell Group", User.getUserTool(), Job.Type.CHANGE, cellsToRegroup.get(0), cellsToRegroup.get(0), Job.Priority.USER);            this.cellsToRegroup = cellsToRegroup;            this.newGroupCell = newGroupCell;            startJob();        }        public boolean doIt() throws JobException {        	Cell.CellGroup newGroup = null;        	if (newGroupCell != null) newGroup = newGroupCell.getCellGroup();        	for(Cell cell : cellsToRegroup)        	{                if (newGroup != null && cell.getCellGroup() == newGroup) continue;        		cell.setCellGroup(newGroup);        	}            return true;        }    }    /** This method is called from within the constructor to     * initialize the form.     * WARNING: Do NOT modify this code. The content of this method is     * always regenerated by the Form Editor.     */    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        buttonGroup1 = new javax.swing.ButtonGroup();        mainPanel = new javax.swing.JPanel();        cellNameLabel = new javax.swing.JLabel();        moveOwnCellGroup = new javax.swing.JRadioButton();        moveToCellGroup = new javax.swing.JRadioButton();        cellGroupsComboBox = new javax.swing.JComboBox();        jPanel1 = new javax.swing.JPanel();        apply = new javax.swing.JButton();        cancel = new javax.swing.JButton();        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                closeDialog(evt);            }        });        mainPanel.setLayout(new java.awt.GridBagLayout());        cellNameLabel.setText("cellName");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridwidth = 2;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 10, 4, 4);        mainPanel.add(cellNameLabel, gridBagConstraints);        moveOwnCellGroup.setText("Move to it's own cell group");        buttonGroup1.add(moveOwnCellGroup);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        mainPanel.add(moveOwnCellGroup, gridBagConstraints);        moveToCellGroup.setText("Move to Cell Group: ");        buttonGroup1.add(moveToCellGroup);        moveToCellGroup.addItemListener(new java.awt.event.ItemListener() {            public void itemStateChanged(java.awt.event.ItemEvent evt) {                moveToCellGroupItemStateChanged(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 4;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        mainPanel.add(moveToCellGroup, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 4;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weightx = 0.2;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        mainPanel.add(cellGroupsComboBox, gridBagConstraints);        jPanel1.setLayout(new java.awt.GridBagLayout());        apply.setText("OK");        apply.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                applyActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.weightx = 0.1;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        jPanel1.add(apply, gridBagConstraints);        cancel.setText("Cancel");        cancel.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                cancelActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.weightx = 0.1;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        jPanel1.add(cancel, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 5;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        mainPanel.add(jPanel1, gridBagConstraints);        getContentPane().add(mainPanel, java.awt.BorderLayout.CENTER);        pack();    }//GEN-END:initComponents    private void cancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelActionPerformed        closeDialog(null);            }//GEN-LAST:event_cancelActionPerformed    private void moveToCellGroupItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_moveToCellGroupItemStateChanged        boolean selected = moveToCellGroup.isSelected();        cellGroupsComboBox.setEnabled(selected);    }//GEN-LAST:event_moveToCellGroupItemStateChanged    private void applyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_applyActionPerformed        Cell newGroupCell = null;        boolean doIt = true;        if (moveOwnCellGroup.isSelected())        {            // if already only cell in group, do nothing        	Cell cell = cellsToRegroup.get(0);            if (cell.getCellGroup() != null && cell.getCellGroup().getNumCells() == 1) doIt = false;        } else if (moveToCellGroup.isSelected())        {            // get group to move to            int selected = cellGroupsComboBox.getSelectedIndex();            Cell.CellGroup newGroup = (Cell.CellGroup)(cellGroups.toArray()[selected]);            newGroupCell = newGroup.getCells().next();        }        if (doIt) {            new ChangeCellGroupJob(cellsToRegroup, newGroupCell);        }        closeDialog(null);    }//GEN-LAST:event_applyActionPerformed        /** Closes the dialog */    private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog        // save settings        int selected = 0;        selected = moveOwnCellGroup.isSelected() ? 0 : selected;        selected = moveToCellGroup.isSelected() ? 1 : selected;        prefs.putInt(selectedRadioButton, selected);        setVisible(false);        dispose();    }//GEN-LAST:event_closeDialog            // Variables declaration - do not modify//GEN-BEGIN:variables    private javax.swing.JButton apply;    private javax.swing.ButtonGroup buttonGroup1;    private javax.swing.JButton cancel;    private javax.swing.JComboBox cellGroupsComboBox;    private javax.swing.JLabel cellNameLabel;    private javax.swing.JPanel jPanel1;    private javax.swing.JPanel mainPanel;    private javax.swing.JRadioButton moveOwnCellGroup;    private javax.swing.JRadioButton moveToCellGroup;    // End of variables declaration//GEN-END:variables    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲在线观看免费视频| 亚洲欧美日韩精品久久久久| 三级欧美韩日大片在线看| 51精品秘密在线观看| 国产精品一二三四| 极品少妇一区二区三区精品视频| 久久免费看少妇高潮| 日本韩国欧美在线| 国内精品视频一区二区三区八戒| 亚洲免费av高清| 亚洲欧美电影院| 亚洲黄色小说网站| 久久色.com| 欧美日韩aaa| 91免费精品国自产拍在线不卡| 蜜臀国产一区二区三区在线播放| 亚洲欧美激情插| 亚洲午夜影视影院在线观看| 中文字幕一区二区三| 欧美精品一区二区不卡| 国产欧美精品一区aⅴ影院| 欧美高清精品3d| 一本色道久久综合狠狠躁的推荐| 国内成人精品2018免费看| 国产福利一区在线| 精品在线播放午夜| 国产大陆亚洲精品国产| 91黄色小视频| 日韩欧美专区在线| 日韩精品一区二区三区四区视频| 欧美三级蜜桃2在线观看| 色综合网站在线| av不卡一区二区三区| 大陆成人av片| 成人sese在线| 91亚洲精品一区二区乱码| 欧美日韩国产系列| 久久精品亚洲精品国产欧美kt∨| 精品成a人在线观看| 日韩一本二本av| 国产精品电影一区二区三区| 亚洲欧洲国产专区| 全国精品久久少妇| 狠狠色狠狠色综合系列| 91婷婷韩国欧美一区二区| 日韩视频一区在线观看| 国产精品成人免费精品自在线观看| 亚洲午夜激情网页| www.欧美.com| 精品va天堂亚洲国产| 日韩制服丝袜av| 色猫猫国产区一区二在线视频| 欧美一级高清大全免费观看| 亚洲精品欧美专区| 高清不卡在线观看av| 97久久超碰国产精品| 欧美午夜寂寞影院| 日韩一区二区三区四区| 一区二区三区中文字幕在线观看| 亚洲成a人v欧美综合天堂| 美腿丝袜亚洲色图| 欧美性色欧美a在线播放| 中文乱码免费一区二区| 亚洲超碰97人人做人人爱| 99v久久综合狠狠综合久久| xfplay精品久久| 国产一区二区三区观看| 色婷婷久久久亚洲一区二区三区| 中文字幕免费在线观看视频一区| 一区二区三区产品免费精品久久75| 国产高清精品网站| 久久亚洲精精品中文字幕早川悠里| 奇米色一区二区三区四区| 欧美午夜宅男影院| 亚洲第一在线综合网站| 欧美专区在线观看一区| 国产午夜精品美女毛片视频| 久久99国产精品久久99果冻传媒| 91精品国产欧美一区二区成人| 国产精品美女久久久久av爽李琼| 国产盗摄一区二区三区| 国产欧美日韩精品一区| 波多野结衣精品在线| 中文字幕一区二| 99国产麻豆精品| 一区二区三区日韩| 欧美欧美欧美欧美| 美国三级日本三级久久99| 精品国产髙清在线看国产毛片| 日本va欧美va精品| 337p日本欧洲亚洲大胆色噜噜| 国模套图日韩精品一区二区| 久久久久国产精品厨房| a亚洲天堂av| 亚洲.国产.中文慕字在线| 在线不卡免费av| 黑人精品欧美一区二区蜜桃| 久久精品人人做人人综合| www.日本不卡| 日韩不卡在线观看日韩不卡视频| aaa亚洲精品| 丝袜亚洲精品中文字幕一区| 欧美一级二级在线观看| 成人美女在线观看| 亚洲国产精品麻豆| 日韩欧美高清在线| 91在线丨porny丨国产| 日韩在线a电影| 中文av一区特黄| 欧美日韩高清一区二区| 国产成都精品91一区二区三| 亚洲午夜一区二区| 欧美精品一区二区三| 色婷婷精品久久二区二区蜜臀av | 美女脱光内衣内裤视频久久影院| 久久久久99精品国产片| 欧美亚男人的天堂| 久久精品国产色蜜蜜麻豆| 日韩欧美激情在线| 成人国产在线观看| 免费黄网站欧美| 亚洲男人天堂av| 精品国产电影一区二区| 欧日韩精品视频| 国产精品77777| 日韩影院免费视频| 自拍偷自拍亚洲精品播放| 99精品欧美一区二区三区综合在线| 日日夜夜免费精品视频| 欧美激情一区三区| 欧美大胆人体bbbb| 欧美手机在线视频| 色呦呦网站一区| 99热99精品| 成人黄色在线看| 国产精品中文欧美| 久久99精品久久久久久久久久久久 | 亚洲精品乱码久久久久久| 久久婷婷色综合| 欧美一区二区三区四区久久| 色诱亚洲精品久久久久久| 成人aaaa免费全部观看| 国产精品原创巨作av| 国产乱子轮精品视频| 精品在线播放免费| 精品综合久久久久久8888| 美腿丝袜在线亚洲一区| 美女脱光内衣内裤视频久久影院| 奇米777欧美一区二区| 首页欧美精品中文字幕| 天天综合色天天| 久久精品这里都是精品| 精品奇米国产一区二区三区| 99精品一区二区| 成人美女在线观看| 99国内精品久久| 色综合久久中文综合久久牛| 色婷婷精品大在线视频| 色欧美片视频在线观看在线视频| 一本到高清视频免费精品| 在线观看亚洲精品视频| 欧美伦理影视网| 日韩欧美中文一区二区| 久久蜜臀中文字幕| 中文字幕中文字幕中文字幕亚洲无线| 国产精品网站在线观看| 亚洲嫩草精品久久| 亚洲五码中文字幕| 看国产成人h片视频| 国产美女久久久久| av电影在线不卡| 欧美日韩小视频| 精品欧美一区二区在线观看| 国产女同性恋一区二区| 亚洲最色的网站| 美女久久久精品| 成人永久看片免费视频天堂| 色婷婷综合久久久中文一区二区 | 久久99久久99| 成人动漫一区二区三区| 欧美在线小视频| 久久久一区二区| 一区二区三区高清在线| 国产综合久久久久影院| 在线中文字幕一区| 精品久久久久久久久久久久包黑料| 国产日韩欧美在线一区| 亚洲一区二区五区| 国产精品亚洲一区二区三区妖精| 欧美亚洲愉拍一区二区| 久久亚洲影视婷婷| 亚洲成人动漫一区| 成人一区在线观看| 欧美精品粉嫩高潮一区二区| 中文子幕无线码一区tr| 日韩电影免费在线看| 色网综合在线观看| 国产人成一区二区三区影院| 三级欧美在线一区| 一本色道久久综合精品竹菊|