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

📄 getinfonode.java

📁 The ElectricTM VLSI Design System is an open-source Electronic Design Automation (EDA) system that c
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
        textFieldLabel.setLabelFor(textField);        textFieldLabel.setText(" ");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        moreStuffTop.add(textFieldLabel, gridBagConstraints);        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.insets = new java.awt.Insets(4, 4, 4, 4);        moreStuffTop.add(textField, gridBagConstraints);        popupLabel.setLabelFor(popup);        popupLabel.setText(" ");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        moreStuffTop.add(popupLabel, gridBagConstraints);        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.insets = new java.awt.Insets(4, 4, 4, 4);        moreStuffTop.add(popup, gridBagConstraints);        selection.add(ports);        ports.setText("Ports:");        ports.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                portsActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 3;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 0, 4);        moreStuffTop.add(ports, gridBagConstraints);        selection.add(attributes);        attributes.setText("Parameters:");        attributes.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                attributesActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 3;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 0, 4);        moreStuffTop.add(attributes, gridBagConstraints);        selection.add(busMembers);        busMembers.setText("Bus Members on Port:");        busMembers.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));        busMembers.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                busMembersActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 3;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 0, 4);        moreStuffTop.add(busMembers, gridBagConstraints);        showAllButton.setText("Show All");        showAllButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                showAllButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 3;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 0, 4);        moreStuffTop.add(showAllButton, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 6;        gridBagConstraints.gridwidth = 4;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weightx = 1.0;        getContentPane().add(moreStuffTop, gridBagConstraints);        moreStuffBottom.setLayout(new java.awt.GridBagLayout());        locked.setText("Locked");        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);        moreStuffBottom.add(locked, gridBagConstraints);        see.setText("See");        see.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                seeActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        moreStuffBottom.add(see, gridBagConstraints);        colorAndPattern.setText("Color and Pattern...");        colorAndPattern.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                colorAndPatternActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 0;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        moreStuffBottom.add(colorAndPattern, gridBagConstraints);        editParameters.setText("Edit Parameters");        editParameters.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                editParametersActionPerformed(evt);            }        });        moreStuffBottom.add(editParameters, new java.awt.GridBagConstraints());        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 8;        gridBagConstraints.gridwidth = 4;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weightx = 1.0;        getContentPane().add(moreStuffBottom, gridBagConstraints);        listPane.setMinimumSize(new java.awt.Dimension(200, 100));        listPane.setPreferredSize(new java.awt.Dimension(200, 100));        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 7;        gridBagConstraints.gridwidth = 4;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        gridBagConstraints.insets = new java.awt.Insets(0, 4, 4, 4);        getContentPane().add(listPane, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4);        getContentPane().add(type, gridBagConstraints);        pack();    }// </editor-fold>//GEN-END:initComponents    private void showAllButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showAllButtonActionPerformed		showProperList(true);		showAllButton.setEnabled(false);    }//GEN-LAST:event_showAllButtonActionPerformed    private void busMembersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_busMembersActionPerformed		showProperList(false);    }//GEN-LAST:event_busMembersActionPerformed	private void colorAndPatternActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_colorAndPatternActionPerformed	{//GEN-HEADEREND:event_colorAndPatternActionPerformed		ArtworkLook.showArtworkLookDialog();	}//GEN-LAST:event_colorAndPatternActionPerformed	private void moreActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_moreActionPerformed	{//GEN-HEADEREND:event_moreActionPerformed		bigger = !bigger;		if (bigger)		{			GridBagConstraints gridBagConstraints;			gridBagConstraints = new GridBagConstraints();			gridBagConstraints.gridx = 0;			gridBagConstraints.gridy = 6;			gridBagConstraints.gridwidth = 4;			gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;			gridBagConstraints.weightx = 1.0;			getContentPane().add(moreStuffTop, gridBagConstraints);			gridBagConstraints = new GridBagConstraints();			gridBagConstraints.gridx = 0;			gridBagConstraints.gridy = 7;			gridBagConstraints.gridwidth = 4;			gridBagConstraints.fill = GridBagConstraints.BOTH;			gridBagConstraints.insets = new Insets(0, 4, 4, 4);			gridBagConstraints.weightx = 1.0;			gridBagConstraints.weighty = 1.0;			getContentPane().add(listPane, gridBagConstraints);			gridBagConstraints = new GridBagConstraints();			gridBagConstraints.gridx = 0;			gridBagConstraints.gridy = 8;			gridBagConstraints.gridwidth = 4;			gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;			gridBagConstraints.weightx = 1.0;			getContentPane().add(moreStuffBottom, gridBagConstraints);			more.setText("Less");		} else		{			getContentPane().remove(moreStuffTop);			getContentPane().remove(listPane);			getContentPane().remove(moreStuffBottom);			more.setText("More");		}		pack();	}//GEN-LAST:event_moreActionPerformed	private void seeActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_seeActionPerformed	{//GEN-HEADEREND:event_seeActionPerformed		if (!ports.isSelected()) return;		int currentIndex = list.getSelectedIndex();        if (currentIndex == -1) return; // nothing to select                ArcInst ai = portObjects.get(currentIndex);		if (ai == null) return;		NodeInst ni = shownNode;		if (wnd != null) {			Highlighter highlighter = wnd.getHighlighter();			highlighter.clear();			highlighter.addElectricObject(ni, ni.getParent());			highlighter.addElectricObject(ai, ai.getParent());			highlighter.finished();		}	}//GEN-LAST:event_seeActionPerformed	private void attributesActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_attributesActionPerformed	{//GEN-HEADEREND:event_attributesActionPerformed		showProperList(false);	}//GEN-LAST:event_attributesActionPerformed	private void portsActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_portsActionPerformed	{//GEN-HEADEREND:event_portsActionPerformed		showProperList(false);	}//GEN-LAST:event_portsActionPerformed	private void applyActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_applyActionPerformed	{//GEN-HEADEREND:event_applyActionPerformed		if (shownNode == null) return;		double currentXPos = TextUtils.atof(xPos.getText(), new Double(initialXPos));		double currentYPos = TextUtils.atof(yPos.getText(), new Double(initialYPos));		int currentRotation = (int)(TextUtils.atof(rotation.getText(), new Double(initialRotation)) * 10);		new ChangeNode(shownNode,			initialXPos, currentXPos, initialYPos, currentYPos,			initialXSize, xSize.getText(), initialYSize, ySize.getText(),			mirrorX.isSelected(), mirrorY.isSelected(),			currentRotation,			initialPopupIndex, popup.getSelectedIndex(),			initialEasyToSelect, easyToSelect.isSelected(),			initialInvisibleOutsideCell, invisibleOutsideCell.isSelected(),			initialLocked, locked.isSelected(),			initialExpansion, expanded.isSelected(),			initialName, name.getText().trim(),			initialTextField, textField.getText(),			initialPopupEntry, (String)popup.getSelectedItem(),			bigger,			scalableTrans,			swapXY);		attributesTable.applyChanges();		initialName = name.getText().trim();		initialExpansion = expanded.isSelected();		initialEasyToSelect = easyToSelect.isSelected();		initialInvisibleOutsideCell = invisibleOutsideCell.isSelected();		initialLocked = locked.isSelected();		initialTextField = textField.getText();		initialPopupEntry = (String)popup.getSelectedItem();		initialXPos = currentXPos;		initialYPos = currentYPos;		initialXSize = xSize.getText();		initialYSize = ySize.getText();		initialMirrorX = mirrorX.isSelected();		initialMirrorY = mirrorY.isSelected();		initialRotation = currentRotation;	}//GEN-LAST:event_applyActionPerformed	private void okActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_okActionPerformed	{//GEN-HEADEREND:event_okActionPerformed		applyActionPerformed(evt);		closeDialog(null);	}//GEN-LAST:event_okActionPerformed	private void cancelActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_cancelActionPerformed	{//GEN-HEADEREND:event_cancelActionPerformed		closeDialog(null);	}//GEN-LAST:event_cancelActionPerformed	private void closeDialog(java.awt.event.WindowEvent evt)//GEN-FIRST:event_closeDialog	{		prefs.putBoolean("GetInfoNode-bigger", bigger);		if (ports.isSelected()) prefs.putInt("GetInfoNode-buttonSelected", 0);		if (attributes.isSelected()) prefs.putInt("GetInfoNode-buttonSelected", 1);		if (busMembers.isSelected()) prefs.putInt("GetInfoNode-buttonSelected", 2);		super.closeDialog();	}//GEN-LAST:event_closeDialog    private void editParametersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editParametersActionPerformed		if (shownNode == null) return;		if (!shownNode.isCellInstance()) return;		Cell.CellGroup group = ((Cell)shownNode.getProto()).getCellGroup();		Cell paramOwner = group.getParameterOwner();		if (paramOwner != null) {			WindowFrame.createEditWindow(paramOwner);			Attributes.showDialog();		}    }//GEN-LAST:event_editParametersActionPerformed    // Variables declaration - do not modify//GEN-BEGIN:variables    private javax.swing.JButton apply;    private javax.swing.JRadioButton attributes;    private javax.swing.JRadioButton busMembers;    private javax.swing.JButton cancel;    private javax.swing.JButton colorAndPattern;    private javax.swing.JCheckBox easyToSelect;    private javax.swing.JButton editParameters;    private javax.swing.JRadioButton expanded;    private javax.swing.ButtonGroup expansion;    private javax.swing.JCheckBox invisibleOutsideCell;    private javax.swing.JLabel jLabel1;    private javax.swing.JLabel jLabel3

⌨️ 快捷键说明

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