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

📄 cellproperties.java

📁 The ElectricTM VLSI Design System is an open-source Electronic Design Automation (EDA) system that c
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridheight = 2;        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);        jPanel1.add(frameSize, gridBagConstraints);        frameOrientation.add(frameLandscape);        frameLandscape.setText("Landscape");        frameLandscape.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                frameLandscapeActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(0, 4, 2, 4);        jPanel1.add(frameLandscape, gridBagConstraints);        frameOrientation.add(framePortrait);        framePortrait.setText("Portrait");        framePortrait.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                framePortraitActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(2, 4, 0, 4);        jPanel1.add(framePortrait, gridBagConstraints);        frameTitleBox.setText("Title Box");        frameTitleBox.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                frameTitleBoxActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridheight = 2;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        jPanel1.add(frameTitleBox, gridBagConstraints);        jLabel18.setText("Designer Name:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(2, 4, 0, 0);        jPanel1.add(jLabel18, gridBagConstraints);        frameDesigner.setColumns(15);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 2;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.weightx = 0.5;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 0, 4);        jPanel1.add(frameDesigner, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 10;        gridBagConstraints.gridwidth = 5;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(jPanel1, gridBagConstraints);        jLabel5.setText("Technology:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 8;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(jLabel5, gridBagConstraints);        whichTechnology.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                whichTechnologyActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 8;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(whichTechnology, gridBagConstraints);        textCells.setLayout(new java.awt.GridBagLayout());        textCells.setBorder(javax.swing.BorderFactory.createTitledBorder("For Textual Cells"));        jLabel7.setText("Font:");        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);        textCells.add(jLabel7, gridBagConstraints);        textCellFont.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                textCellFontActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        textCells.add(textCellFont, gridBagConstraints);        jLabel6.setText("Size:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 0;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        textCells.add(jLabel6, gridBagConstraints);        textCellSize.setColumns(8);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        textCells.add(textCellSize, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 9;        gridBagConstraints.gridwidth = 5;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(textCells, gridBagConstraints);        setExpandNewInstances.setText("Set");        setExpandNewInstances.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                setExpandNewInstancesActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 5;        gridBagConstraints.gridy = 5;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(setExpandNewInstances, gridBagConstraints);        clearExpandNewInstances.setText("Clear");        clearExpandNewInstances.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                clearExpandNewInstancesActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 6;        gridBagConstraints.gridy = 5;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(clearExpandNewInstances, gridBagConstraints);        expandNewInstances.setText("Expand new instances of this cell");        expandNewInstances.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                expandNewInstancesActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 5;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(expandNewInstances, gridBagConstraints);        pack();    }// </editor-fold>//GEN-END:initComponents    private void expandNewInstancesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_expandNewInstancesActionPerformed		Cell cell = getSelectedCell();		if (cell == null) return;		PerCellValues pcv = getPCV(cell);		pcv.defExpanded.setBoolean(expandNewInstances.isSelected());    }//GEN-LAST:event_expandNewInstancesActionPerformed    private void clearExpandNewInstancesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearExpandNewInstancesActionPerformed		String libName = (String)libraryPopup.getSelectedItem();		Library lib = Library.findLibrary(libName);		for(Iterator<Cell> it = lib.getCells(); it.hasNext(); )		{			Cell cell = it.next();			PerCellValues pcv = getPCV(cell);			pcv.defExpanded.setBoolean(false);		}		cellListClick();    }//GEN-LAST:event_clearExpandNewInstancesActionPerformed    private void setExpandNewInstancesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_setExpandNewInstancesActionPerformed		String libName = (String)libraryPopup.getSelectedItem();		Library lib = Library.findLibrary(libName);		for(Iterator<Cell> it = lib.getCells(); it.hasNext(); )		{			Cell cell = it.next();			PerCellValues pcv = getPCV(cell);			pcv.defExpanded.setBoolean(true);		}		cellListClick();    }//GEN-LAST:event_setExpandNewInstancesActionPerformed	private void textCellFontActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_textCellFontActionPerformed	{//GEN-HEADEREND:event_textCellFontActionPerformed		Cell cell = getSelectedCell();		if (cell == null) return;		PerCellValues pcv = getPCV(cell);		pcv.textCellFont.setString((String)textCellFont.getSelectedItem());	}//GEN-LAST:event_textCellFontActionPerformed	private void whichTechnologyActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_whichTechnologyActionPerformed	{//GEN-HEADEREND:event_whichTechnologyActionPerformed		Cell cell = getSelectedCell();		if (cell == null) return;		PerCellValues pcv = getPCV(cell);		pcv.technologyName.setString((String)whichTechnology.getSelectedItem());	}//GEN-LAST:event_whichTechnologyActionPerformed	private void frameTitleBoxActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_frameTitleBoxActionPerformed	{//GEN-HEADEREND:event_frameTitleBoxActionPerformed		frameInfoChanged();	}//GEN-LAST:event_frameTitleBoxActionPerformed	private void framePortraitActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_framePortraitActionPerformed	{//GEN-HEADEREND:event_framePortraitActionPerformed		frameInfoChanged();	}//GEN-LAST:event_framePortraitActionPerformed	private void frameLandscapeActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_frameLandscapeActionPerformed	{//GEN-HEADEREND:event_frameLandscapeActionPerformed		frameInfoChanged();	}//GEN-LAST:event_frameLandscapeActionPerformed	private void frameSizeActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_frameSizeActionPerformed	{//GEN-HEADEREND:event_frameSizeActionPerformed		frameInfoChanged();	}//GEN-LAST:event_frameSizeActionPerformed	private void libraryPopupActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_libraryPopupActionPerformed	{//GEN-HEADEREND:event_libraryPopupActionPerformed		loadCellList();	}//GEN-LAST:event_libraryPopupActionPerformed	private void useTechEditorActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_useTechEditorActionPerformed	{//GEN-HEADEREND:event_useTechEditorActionPerformed		Cell cell = getSelectedCell();		if (cell == null) return;		PerCellValues pcv = getPCV(cell);		pcv.useTechEditor.setBoolean(useTechEditor.isSelected());	}//GEN-LAST:event_useTechEditorActionPerformed	private void partOfCellLibActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_partOfCellLibActionPerformed	{//GEN-HEADEREND:event_partOfCellLibActionPerformed		Cell cell = getSelectedCell();		if (cell == null) return;		PerCellValues pcv = getPCV(cell);		pcv.inCellLib.setBoolean(partOfCellLib.isSelected());	}//GEN-LAST:event_partOfCellLibActionPerformed	private void disallowModInstInCellActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_disallowModInstInCellActionPerformed	{//GEN-HEADEREND:event_disallowModInstInCellActionPerformed		Cell cell = getSelectedCell();		if (cell == null) return;		PerCellValues pcv = getPCV(cell);		pcv.disInstMod.setBoolean(disallowModInstInCell.isSelected());	}//GEN-LAST:event_disallowModInstInCellActionPerformed	private void disallowModAnyInCellActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_disallowModAnyInCellActionPerformed	{//GEN-HEADEREND:event_disallowModAnyInCellActionPerformed		Cell cell = getSelectedCell();		if (cell == null) return;		PerCellValues pcv = getPCV(cell);		pcv.disAllMod.setBoolean(disallowModAnyInCell.isSelected());	}//GEN-LAST:event_disallowModAnyInCellActionPerformed	private void clearUseTechEditorActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_clearUseTechEditorActionPerformed	{//GEN-HEADEREND:event_clearUseTechEditorActionPerformed		String libName = (String)libraryPopup.getSelectedItem();		Library lib = Library.findLibrary(libName);		for(Iterator<Cell> it = lib.getCells(); it.hasNext(); )		{			Cell cell = it.next();			PerCellValues pcv = getPCV(cell);			pcv.useTechEditor.setBoolean(false);		}		cellListClick();	}//GEN-LAST:event_clearUseTechEditorActionPerformed	private void setUseTechEditorActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_setUseTechEditorActionPerformed	{//GEN-HEADEREND:event_setUseTechEditorActionPerformed		String libName = (String)libraryPopup.getSelectedItem();		Library lib = Library.findLibrary(libName);		for(Iterator<Cell> it = lib.getCells(); it.hasNext(); )		{

⌨️ 快捷键说明

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