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

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

?? newcell.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: NewCell.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.database.hierarchy.View;import com.sun.electric.technology.Technology;import com.sun.electric.technology.technologies.Artwork;import com.sun.electric.technology.technologies.Schematics;import com.sun.electric.tool.Job;import com.sun.electric.tool.JobException;import com.sun.electric.tool.user.User;import com.sun.electric.tool.user.ui.WindowFrame;import java.awt.Frame;import java.awt.event.MouseAdapter;import java.awt.event.MouseEvent;import java.util.Iterator;import java.util.List;import javax.swing.DefaultListModel;import javax.swing.JList;import javax.swing.ListSelectionModel;/** * Class to handle the "New Cell" dialog. */public class NewCell extends EDialog{	private JList viewList;	private DefaultListModel viewModel;	private static boolean makeWindow = false;	/**	 * Inner class to control options based on views and technologies.	 * This is done to access View or Tech without calling toString()	 */	private static class ViewTechOption	{		View view;		Technology tech;		ViewTechOption(View v, Technology t)		{			this.view = v;			this.tech = t;		}		public String toString()		{			if (view != null)				return view.getFullName();			return tech.getTechName();		}	}	/** Creates new form New Cell */	public NewCell(Frame parent)	{		super(parent, true);		initComponents();		getRootPane().setDefaultButton(ok);		// make a list of views		viewModel = new DefaultListModel();		viewList = new JList(viewModel);		viewList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);		view.setViewportView(viewList);		Technology curTech = Technology.getCurrent();		Technology defTech = Technology.findTechnology(User.getDefaultTechnology());		ViewTechOption theViewOption = null;		View defaultView = View.LAYOUT;		if (curTech == Schematics.tech()) defaultView = View.SCHEMATIC;		else if (curTech == Artwork.tech()) defaultView = View.ICON;		for (View v : View.getOrderedViews())		{			ViewTechOption option = new ViewTechOption(v, null);			viewModel.addElement(option);			if (v == defaultView) theViewOption = option;		}		viewList.setSelectedValue(theViewOption, true);        viewList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {            public void valueChanged(javax.swing.event.ListSelectionEvent evt)            {                techComboBoxItemStateChanged(null);            }        });        viewList.addMouseListener(new MouseAdapter()		{			public void mouseClicked(MouseEvent e)			{				techComboBoxItemStateChanged(null);				if (e.getClickCount() == 2) ok(null);			}		});		// Choosen appropiate technology		for (Iterator<Technology> it = Technology.getTechnologies(); it.hasNext();)		{			Technology tech = it.next();			if (tech != Schematics.tech() && tech != Artwork.tech())			{				ViewTechOption option = new ViewTechOption(null, tech);				techComboBox.addItem(option);				if ((defaultView == View.LAYOUT && tech == curTech) ||					(tech == defTech)) techComboBox.setSelectedItem(option);			}		}		// Only capable to switch technology if they are layout-based		techComboBoxItemStateChanged(null);		// make a popup of libraries		List<Library> libList = Library.getVisibleLibraries();		for (Library lib : libList)		{			library.addItem(lib.getName());		}		int curIndex = libList.indexOf(Library.getCurrent());		if (curIndex >= 0) library.setSelectedIndex(curIndex);		newWindow.setSelected(makeWindow);		cellName.grabFocus();		finishInitialization();	}	protected void escapePressed() { cancel(null); }	/** 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;        cancel = new javax.swing.JButton();        ok = new javax.swing.JButton();        cellName = new javax.swing.JTextField();        jLabel4 = new javax.swing.JLabel();        library = new javax.swing.JComboBox();        jLabel1 = new javax.swing.JLabel();        jLabel2 = new javax.swing.JLabel();        newWindow = new javax.swing.JCheckBox();        view = new javax.swing.JScrollPane();        techLabel = new javax.swing.JLabel();        techComboBox = new javax.swing.JComboBox();        getContentPane().setLayout(new java.awt.GridBagLayout());        setTitle("New Cell");        setName("");        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                closeDialog(evt);            }        });        cancel.setText("Cancel");        cancel.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                cancel(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 4;        gridBagConstraints.weightx = 0.5;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(cancel, gridBagConstraints);        ok.setText("OK");        ok.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                ok(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 4;        gridBagConstraints.weightx = 0.5;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(ok, gridBagConstraints);        cellName.setColumns(20);        cellName.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                cellNameActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 1;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(cellName, gridBagConstraints);        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);        jLabel4.setText("Library:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(jLabel4, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(library, gridBagConstraints);        jLabel1.setText("Name:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(jLabel1, gridBagConstraints);        jLabel2.setText("View:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(jLabel2, gridBagConstraints);        newWindow.setText("Make new window");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 4;        getContentPane().add(newWindow, gridBagConstraints);        view.setMinimumSize(new java.awt.Dimension(200, 150));        view.setPreferredSize(new java.awt.Dimension(200, 150));        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 2;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(view, gridBagConstraints);        techLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);        techLabel.setText("Technology:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 3;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(techLabel, gridBagConstraints);        techComboBox.addItemListener(new java.awt.event.ItemListener() {            public void itemStateChanged(java.awt.event.ItemEvent evt) {                techComboBoxItemStateChanged(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 3;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(techComboBox, gridBagConstraints);        pack();    }//GEN-END:initComponents    private void techComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_techComboBoxItemStateChanged		ViewTechOption view = (ViewTechOption)viewList.getSelectedValue();		if (view != null)			techComboBox.setEnabled(view.view == View.LAYOUT);    }//GEN-LAST:event_techComboBoxItemStateChanged	private void cellNameActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_cellNameActionPerformed	{//GEN-HEADEREND:event_cellNameActionPerformed		ok(evt);	}//GEN-LAST:event_cellNameActionPerformed	private void cancel(java.awt.event.ActionEvent evt)//GEN-FIRST:event_cancel	{//GEN-HEADEREND:event_cancel		closeDialog(null);	}//GEN-LAST:event_cancel	private void ok(java.awt.event.ActionEvent evt)//GEN-FIRST:event_ok	{//GEN-HEADEREND:event_ok		String name = cellName.getText().trim();		if (name.length() == 0)		{			Job.getUserInterface().showErrorMessage("Must type a cell name", "Invalid cell name");			return;		}		String viewName = ((ViewTechOption)viewList.getSelectedValue()).view.getFullName();		View v = View.findView(viewName);		if (v != View.UNKNOWN)  name += v.getAbbreviationExtension();		String libName = (String)library.getSelectedItem();		Library lib = Library.findLibrary(libName);		if (lib == null)		{			Job.getUserInterface().showErrorMessage("No library exists.  Create one first.", "No Library");			return;		}		makeWindow = newWindow.isSelected();		// create the cell		Technology tech = null;		if (techComboBox.isEnabled()) tech = ((ViewTechOption)techComboBox.getSelectedItem()).tech;		new CreateCell(lib, name, tech, makeWindow);		closeDialog(null);	}//GEN-LAST:event_ok	/** Closes the dialog */	private void closeDialog(java.awt.event.WindowEvent evt)//GEN-FIRST:event_closeDialog	{		makeWindow = newWindow.isSelected();		setVisible(false);		dispose();	}//GEN-LAST:event_closeDialog	/**	 * Class to create a cell in a new thread.	 */	private static class CreateCell extends Job	{		private Library lib;		private String cellName;		private boolean newWindow;		private Technology tech;		private Cell newCell;		protected CreateCell(Library l, String c, Technology t, boolean w)		{			super("Create Cell " + c, User.getUserTool(), Job.Type.CHANGE, null, null, Job.Priority.USER);			this.lib = l;			this.cellName = c;			this.newWindow = w;			this.tech = t;			startJob();		}		public boolean doIt() throws JobException		{			// should ensure that the name is valid			newCell = Cell.makeInstance(lib, cellName);			if (newCell == null)				throw new JobException("Unable to create cell " + cellName);			newCell.setTechnology(tech);			fieldVariableChanged("newCell");			return true;		}		public void terminateOK()		{			if (newWindow)			{				WindowFrame.createEditWindow(newCell);			} else			{				WindowFrame wf = WindowFrame.getCurrentWindowFrame();				wf.setCellWindow(newCell, null);			}		}	}    // Variables declaration - do not modify//GEN-BEGIN:variables    private javax.swing.JButton cancel;    private javax.swing.JTextField cellName;    private javax.swing.JLabel jLabel1;    private javax.swing.JLabel jLabel2;    private javax.swing.JLabel jLabel4;    private javax.swing.JComboBox library;    private javax.swing.JCheckBox newWindow;    private javax.swing.JButton ok;    private javax.swing.JComboBox techComboBox;    private javax.swing.JLabel techLabel;    private javax.swing.JScrollPane view;    // End of variables declaration//GEN-END:variables}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品视频第一区| 亚洲精品国产一区二区精华液| 成人久久视频在线观看| 亚洲国产成人va在线观看天堂| 精品国产一区a| 91视频一区二区| 国产乱码字幕精品高清av| 一区二区三区产品免费精品久久75| 亚洲精品在线三区| 欧美久久久久免费| 菠萝蜜视频在线观看一区| 久久疯狂做爰流白浆xx| 一区二区三区电影在线播| 国产精品国产精品国产专区不蜜| 日韩免费在线观看| 欧美日韩色综合| 色8久久精品久久久久久蜜| 国产成人精品综合在线观看 | 亚洲在线视频一区| 中文字幕日本不卡| 久久久亚洲午夜电影| 欧美一级久久久久久久大片| 91久久精品午夜一区二区| 白白色亚洲国产精品| 国模套图日韩精品一区二区| 日韩电影在线免费观看| 亚洲一区二区三区精品在线| 亚洲欧洲日韩综合一区二区| 国产色综合久久| 久久色视频免费观看| 欧美xxxx在线观看| 日韩欧美一级精品久久| 欧美一二三四在线| 日韩一区二区三区视频| 欧美理论电影在线| 在线不卡中文字幕| 欧美日韩高清一区二区三区| 在线中文字幕不卡| 欧美丝袜第三区| 欧美性生活影院| 欧美精品在线一区二区三区| 欧美日韩亚洲综合一区二区三区| 欧美午夜宅男影院| 欧美丰满一区二区免费视频| 欧美剧在线免费观看网站| 777奇米成人网| 日韩午夜激情视频| 欧美va亚洲va| 久久久久久亚洲综合影院红桃| 精品粉嫩超白一线天av| 久久精品亚洲国产奇米99| 久久久久97国产精华液好用吗| 久久久精品免费观看| 国产精品视频麻豆| 亚洲欧美日韩国产综合| 亚洲国产精品久久人人爱| 偷窥少妇高潮呻吟av久久免费| 亚洲bt欧美bt精品| 蜜臀av性久久久久蜜臀aⅴ流畅| 九色|91porny| 成人免费的视频| 欧美艳星brazzers| 制服.丝袜.亚洲.中文.综合| 欧美精品一区二区三区四区| 中文字幕不卡在线播放| 亚洲精品国产视频| 日本不卡免费在线视频| 国产一区二区不卡在线| av电影天堂一区二区在线 | 在线亚洲高清视频| 7777精品久久久大香线蕉 | 午夜不卡av在线| 激情另类小说区图片区视频区| 粉嫩一区二区三区在线看| 在线免费观看视频一区| 日韩精品一区二区三区在线播放 | 中文字幕一区二区5566日韩| 依依成人精品视频| 美女在线观看视频一区二区| 丁香激情综合五月| 欧美三级韩国三级日本一级| 精品久久久久久久久久久久包黑料| 中文字幕乱码久久午夜不卡| 性做久久久久久久免费看| 国产乱理伦片在线观看夜一区| 色拍拍在线精品视频8848| 欧美一区二区三区不卡| 亚洲欧洲色图综合| 精品亚洲成a人| 日本乱码高清不卡字幕| 久久九九99视频| 午夜日韩在线观看| caoporen国产精品视频| 日韩视频免费直播| 一区二区三区欧美| 国产激情一区二区三区| 欧美高清你懂得| 亚洲视频电影在线| 狠狠色丁香九九婷婷综合五月| 在线亚洲高清视频| 国产精品久久久久久久久果冻传媒| 日韩成人伦理电影在线观看| 99久久综合色| 久久久www成人免费毛片麻豆| 亚洲综合视频在线| 不卡一区二区三区四区| 精品国产第一区二区三区观看体验| 亚洲综合成人在线视频| 成人免费观看男女羞羞视频| 久久综合精品国产一区二区三区 | 96av麻豆蜜桃一区二区| 日韩欧美亚洲国产另类| 亚洲一区二区精品视频| aa级大片欧美| 国产午夜一区二区三区| 青青草国产精品亚洲专区无| 欧美性感一类影片在线播放| 亚洲欧美自拍偷拍色图| 国产成人免费在线观看不卡| 精品91自产拍在线观看一区| 青青草国产精品97视觉盛宴| 欧美中文字幕不卡| 亚洲视频一区二区在线观看| 成人午夜在线视频| 国产欧美日韩综合精品一区二区 | 成人av影视在线观看| 久久久久久久久97黄色工厂| 美女视频黄久久| 7777精品伊人久久久大香线蕉的 | 亚洲人亚洲人成电影网站色| 成人午夜视频在线观看| 日本一区二区三区在线不卡| 国产乱码精品一区二区三区忘忧草| 欧美sm美女调教| 久久99久久99| www激情久久| 国产精品一品视频| 国产免费久久精品| 成人精品视频一区二区三区尤物| 国产欧美一区二区三区在线老狼| 国产精品主播直播| 中文字幕av资源一区| 成人午夜大片免费观看| 中文字幕久久午夜不卡| av色综合久久天堂av综合| 亚洲视频图片小说| 欧美性极品少妇| 免费成人美女在线观看.| 欧美大胆一级视频| 国产成人精品影视| 中文字幕一区二区三区不卡在线 | 欧美日韩一区三区四区| 天天影视色香欲综合网老头| 91精品在线一区二区| 麻豆精品视频在线| 久久久精品国产99久久精品芒果| 粉嫩在线一区二区三区视频| 亚洲码国产岛国毛片在线| 欧美日韩一区二区在线观看视频 | 日韩美女天天操| 国产精品66部| 亚洲女同女同女同女同女同69| 在线欧美日韩国产| 久久99精品国产.久久久久| 国产欧美一区二区精品忘忧草| 色综合欧美在线视频区| 视频一区二区三区中文字幕| 精品乱人伦一区二区三区| 成人精品亚洲人成在线| 亚洲电影中文字幕在线观看| 日韩欧美一二区| av中文字幕不卡| 日韩一区精品字幕| 国产亚洲一二三区| 欧美午夜在线一二页| 国产精品99久久久久久久女警 | 国产老女人精品毛片久久| 中文字幕亚洲在| 欧美一区二区三区电影| av电影在线观看一区| 日韩av在线播放中文字幕| 中文字幕精品一区二区精品绿巨人| 欧美写真视频网站| 成人免费毛片app| 午夜精品久久久久久久99水蜜桃| 久久久久久久久久久99999| 欧美性生活影院| 成人激情免费视频| 日日摸夜夜添夜夜添亚洲女人| 国产精品你懂的在线欣赏| 这里只有精品电影| 99久久国产综合精品女不卡| 另类小说色综合网站| 亚洲精品福利视频网站| 国产亚洲美州欧州综合国| 欧美日韩亚洲高清一区二区| kk眼镜猥琐国模调教系列一区二区| 图片区小说区国产精品视频| 中文字幕亚洲不卡| 久久久久久99久久久精品网站|