⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 technologytab.java

📁 The ElectricTM VLSI Design System is an open-source Electronic Design Automation (EDA) system that c
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
		// updating VHDL names		for(int i=0; i<schemPrimModel.size(); i++)		{			String str = (String)schemPrimModel.get(i);			int spacePos = str.indexOf(' ');			if (spacePos < 0) continue;			String primName = str.substring(0, spacePos);			PrimitiveNode np = Schematics.tech().findNodeProto(primName);			if (np == null) continue;			String newVHDLname = str.substring(spacePos+3, str.length()-1);			String oldVHDLname = Schematics.tech().getVHDLNames(np);			if (!newVHDLname.equals(oldVHDLname))				Schematics.tech().setVHDLNames(np, newVHDLname);		}		// update the display		if (redrawMenus)		{			Technology tech = Technology.getCurrent();			for(Iterator<WindowFrame> it = WindowFrame.getWindows(); it.hasNext(); )			{				WindowFrame wf = it.next();				wf.getPaletteTab().loadForTechnology(tech, wf);			}		}		if (redrawWindows)		{			EditWindow.repaintAllContents();		}	}	/**	 * Method called when the factory reset is requested.	 */	public void reset()	{		if (User.isFactoryRotateLayoutTransistors() != User.isRotateLayoutTransistors())			User.setRotateLayoutTransistors(User.isFactoryRotateLayoutTransistors());		if (Artwork.tech().isFactoryFilledArrowHeads() != Artwork.tech().isFilledArrowHeads())			Artwork.tech().setFilledArrowHeads(Artwork.tech().isFactoryFilledArrowHeads());		if (Schematics.tech().getFactoryNegatingBubbleSize() != Schematics.tech().getNegatingBubbleSize())			Schematics.tech().setNegatingBubbleSize(Schematics.tech().getFactoryNegatingBubbleSize());		for(Iterator<PrimitiveNode> it = Schematics.tech().getNodes(); it.hasNext(); )		{			PrimitiveNode np = it.next();			if (np != Schematics.tech().andNode && np != Schematics.tech().orNode &&				np != Schematics.tech().xorNode && np != Schematics.tech().muxNode &&				np != Schematics.tech().bufferNode) continue;			if (!Schematics.tech().getFactoryVHDLNames(np).equals(Schematics.tech().getVHDLNames(np)))				Schematics.tech().setVHDLNames(np, Schematics.tech().getFactoryVHDLNames(np));		}	}	/** 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.	 */    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents    private void initComponents() {        java.awt.GridBagConstraints gridBagConstraints;        technology = new javax.swing.JPanel();        artworkPanel = new javax.swing.JPanel();        techArtworkArrowsFilled = new javax.swing.JCheckBox();        schematicsPanel = new javax.swing.JPanel();        techSchematicsNegatingSize = new javax.swing.JTextField();        jLabel52 = new javax.swing.JLabel();        vhdlPrimPane = new javax.swing.JScrollPane();        jLabel1 = new javax.swing.JLabel();        vhdlName = new javax.swing.JTextField();        jLabel2 = new javax.swing.JLabel();        vhdlNegatedName = new javax.swing.JTextField();        layoutPanel = new javax.swing.JPanel();        rotateLayoutTransistors = new javax.swing.JCheckBox();        getContentPane().setLayout(new java.awt.GridBagLayout());        setTitle("Edit Options");        setName("");        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                closeDialog(evt);            }        });        technology.setLayout(new java.awt.GridBagLayout());        artworkPanel.setLayout(new java.awt.GridBagLayout());        artworkPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Artwork"));        techArtworkArrowsFilled.setText("Arrows filled");        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);        artworkPanel.add(techArtworkArrowsFilled, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        technology.add(artworkPanel, gridBagConstraints);        schematicsPanel.setLayout(new java.awt.GridBagLayout());        schematicsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Schematics"));        techSchematicsNegatingSize.setColumns(8);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        schematicsPanel.add(techSchematicsNegatingSize, gridBagConstraints);        jLabel52.setText("Negating Bubble Size:");        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);        schematicsPanel.add(jLabel52, gridBagConstraints);        vhdlPrimPane.setMinimumSize(new java.awt.Dimension(22, 100));        vhdlPrimPane.setPreferredSize(new java.awt.Dimension(22, 100));        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        schematicsPanel.add(vhdlPrimPane, gridBagConstraints);        jLabel1.setText("VHDL for primitive:");        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);        schematicsPanel.add(jLabel1, gridBagConstraints);        vhdlName.setColumns(8);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 2;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        schematicsPanel.add(vhdlName, gridBagConstraints);        jLabel2.setText("VHDL for negated primitive:");        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);        schematicsPanel.add(jLabel2, gridBagConstraints);        vhdlNegatedName.setColumns(8);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 3;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        schematicsPanel.add(vhdlNegatedName, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        technology.add(schematicsPanel, gridBagConstraints);        layoutPanel.setLayout(new java.awt.GridBagLayout());        layoutPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Layout Technologies"));        rotateLayoutTransistors.setText("Rotate transistors in menu");        rotateLayoutTransistors.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));        rotateLayoutTransistors.setMargin(new java.awt.Insets(0, 0, 0, 0));        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);        layoutPanel.add(rotateLayoutTransistors, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        technology.add(layoutPanel, gridBagConstraints);        getContentPane().add(technology, new java.awt.GridBagConstraints());        pack();    }// </editor-fold>//GEN-END:initComponents	/** Closes the dialog */	private void closeDialog(java.awt.event.WindowEvent evt)//GEN-FIRST:event_closeDialog	{		setVisible(false);		dispose();	}//GEN-LAST:event_closeDialog    // Variables declaration - do not modify//GEN-BEGIN:variables    private javax.swing.JPanel artworkPanel;    private javax.swing.JLabel jLabel1;    private javax.swing.JLabel jLabel2;    private javax.swing.JLabel jLabel52;    private javax.swing.JPanel layoutPanel;    private javax.swing.JCheckBox rotateLayoutTransistors;    private javax.swing.JPanel schematicsPanel;    private javax.swing.JCheckBox techArtworkArrowsFilled;    private javax.swing.JTextField techSchematicsNegatingSize;    private javax.swing.JPanel technology;    private javax.swing.JTextField vhdlName;    private javax.swing.JTextField vhdlNegatedName;    private javax.swing.JScrollPane vhdlPrimPane;    // End of variables declaration//GEN-END:variables}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -