📄 icontab.java
字号:
if (currInt != User.getIconGenOutputRot()) User.setIconGenOutputRot(currInt); currInt = iconBidirRot.getSelectedIndex(); if (currInt != User.getIconGenBidirRot()) User.setIconGenBidirRot(currInt); currInt = iconPowerRot.getSelectedIndex(); if (currInt != User.getIconGenPowerRot()) User.setIconGenPowerRot(currInt); currInt = iconGroundRot.getSelectedIndex(); if (currInt != User.getIconGenGroundRot()) User.setIconGenGroundRot(currInt); currInt = iconClockRot.getSelectedIndex(); if (currInt != User.getIconGenClockRot()) User.setIconGenClockRot(currInt); currInt = iconTopRot.getSelectedIndex(); if (currInt != User.getIconGenTopRot()) User.setIconGenTopRot(currInt); currInt = iconBottomRot.getSelectedIndex(); if (currInt != User.getIconGenBottomRot()) User.setIconGenBottomRot(currInt); currInt = iconLeftRot.getSelectedIndex(); if (currInt != User.getIconGenLeftRot()) User.setIconGenLeftRot(currInt); currInt = iconRightRot.getSelectedIndex(); if (currInt != User.getIconGenRightRot()) User.setIconGenRightRot(currInt); // save other factors currInt = iconExportPos.getSelectedIndex(); if (currInt != User.getIconGenExportLocation()) User.setIconGenExportLocation(currInt); currInt = iconExportStyle.getSelectedIndex(); if (currInt != User.getIconGenExportStyle()) User.setIconGenExportStyle(currInt); currInt = iconExportTechnology.getSelectedIndex(); if (currInt != User.getIconGenExportTech()) User.setIconGenExportTech(currInt); currInt = iconInstancePos.getSelectedIndex(); if (currInt != User.getIconGenInstanceLocation()) User.setIconGenInstanceLocation(currInt); boolean currBoolean = iconDrawLeads.isSelected(); if (currBoolean != User.isIconGenDrawLeads()) User.setIconGenDrawLeads(currBoolean); currBoolean = iconDrawBody.isSelected(); if (currBoolean != User.isIconGenDrawBody()) User.setIconGenDrawBody(currBoolean); double currDouble = TextUtils.atof(iconTextSize.getText()); if (currDouble != User.getIconGenBodyTextSize()) User.setIconGenBodyTextSize(currDouble); currBoolean = iconReverseOrder.isSelected(); if (currBoolean != User.isIconGenReverseExportOrder()) User.setIconGenReverseExportOrder(currBoolean); currBoolean = iconsAlwaysDrawn.isSelected(); if (currBoolean != User.isIconsAlwaysDrawn()) User.setIconsAlwaysDrawn(currBoolean); currDouble = TextUtils.atof(iconLeadLength.getText()); if (currDouble != User.getIconGenLeadLength()) User.setIconGenLeadLength(currDouble); currDouble = TextUtils.atof(iconLeadSpacing.getText()); if (currDouble != User.getIconGenLeadSpacing()) User.setIconGenLeadSpacing(currDouble); } /** * Method called when the factory reset is requested. */ public void reset() { if (User.getFactoryIconGenExportPlacement() != User.getIconGenExportPlacement()) User.setIconGenExportPlacement(User.getFactoryIconGenExportPlacement()); if (User.getFactoryIconGenExportPlacementExact() != User.getIconGenExportPlacementExact()) User.setIconGenExportPlacementExact(User.getFactoryIconGenExportPlacementExact()); if (User.getFactoryIconGenInputSide() != User.getIconGenInputSide()) User.setIconGenInputSide(User.getFactoryIconGenInputSide()); if (User.getFactoryIconGenOutputSide() != User.getIconGenOutputSide()) User.setIconGenOutputSide(User.getFactoryIconGenOutputSide()); if (User.getFactoryIconGenBidirSide() != User.getIconGenBidirSide()) User.setIconGenBidirSide(User.getFactoryIconGenBidirSide()); if (User.getFactoryIconGenPowerSide() != User.getIconGenPowerSide()) User.setIconGenPowerSide(User.getFactoryIconGenPowerSide()); if (User.getFactoryIconGenGroundSide() != User.getIconGenGroundSide()) User.setIconGenGroundSide(User.getFactoryIconGenGroundSide()); if (User.getFactoryIconGenClockSide() != User.getIconGenClockSide()) User.setIconGenClockSide(User.getFactoryIconGenClockSide()); if (User.getFactoryIconGenInputRot() != User.getIconGenInputRot()) User.setIconGenInputRot(User.getFactoryIconGenInputRot()); if (User.getFactoryIconGenOutputRot() != User.getIconGenOutputRot()) User.setIconGenOutputRot(User.getFactoryIconGenOutputRot()); if (User.getFactoryIconGenBidirRot() != User.getIconGenBidirRot()) User.setIconGenBidirRot(User.getFactoryIconGenBidirRot()); if (User.getFactoryIconGenGroundRot() != User.getIconGenGroundRot()) User.setIconGenGroundRot(User.getFactoryIconGenGroundRot()); if (User.getFactoryIconGenPowerRot() != User.getIconGenPowerRot()) User.setIconGenPowerRot(User.getFactoryIconGenPowerRot()); if (User.getFactoryIconGenClockRot() != User.getIconGenClockRot()) User.setIconGenClockRot(User.getFactoryIconGenClockRot()); if (User.isFactoryIconGenReverseExportOrder() != User.isIconGenReverseExportOrder()) User.setIconGenReverseExportOrder(User.isFactoryIconGenReverseExportOrder()); if (User.getFactoryIconGenTopRot() != User.getIconGenTopRot()) User.setIconGenTopRot(User.getFactoryIconGenTopRot()); if (User.getFactoryIconGenBottomRot() != User.getIconGenBottomRot()) User.setIconGenBottomRot(User.getFactoryIconGenBottomRot()); if (User.getFactoryIconGenLeftRot() != User.getIconGenLeftRot()) User.setIconGenLeftRot(User.getFactoryIconGenLeftRot()); if (User.getFactoryIconGenRightRot() != User.getIconGenRightRot()) User.setIconGenRightRot(User.getFactoryIconGenRightRot()); if (User.isFactoryIconGenDrawLeads() != User.isIconGenDrawLeads()) User.setIconGenDrawLeads(User.isFactoryIconGenDrawLeads()); if (User.getFactoryIconGenLeadLength() != User.getIconGenLeadLength()) User.setIconGenLeadLength(User.getFactoryIconGenLeadLength()); if (User.getFactoryIconGenLeadSpacing() != User.getIconGenLeadSpacing()) User.setIconGenLeadSpacing(User.getFactoryIconGenLeadSpacing()); if (User.isFactoryIconGenDrawBody() != User.isIconGenDrawBody()) User.setIconGenDrawBody(User.isFactoryIconGenDrawBody()); if (User.getFactoryIconGenBodyTextSize() != User.getIconGenBodyTextSize()) User.setIconGenBodyTextSize(User.getFactoryIconGenBodyTextSize()); if (User.isFactoryIconsAlwaysDrawn() != User.isIconsAlwaysDrawn()) User.setIconsAlwaysDrawn(User.isFactoryIconsAlwaysDrawn()); if (User.getFactoryIconGenExportLocation() != User.getIconGenExportLocation()) User.setIconGenExportLocation(User.getFactoryIconGenExportLocation()); if (User.getFactoryIconGenExportStyle() != User.getIconGenExportStyle()) User.setIconGenExportStyle(User.getFactoryIconGenExportStyle()); if (User.getFactoryIconGenExportTech() != User.getIconGenExportTech()) User.setIconGenExportTech(User.getFactoryIconGenExportTech()); if (User.getFactoryIconGenInstanceLocation() != User.getIconGenInstanceLocation()) User.setIconGenInstanceLocation(User.getFactoryIconGenInstanceLocation()); } /** 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; exportPlace = new javax.swing.ButtonGroup(); icon = new javax.swing.JPanel(); jLabel48 = new javax.swing.JLabel(); jLabel54 = new javax.swing.JLabel(); iconCurrentCell = new javax.swing.JLabel(); iconMakeIcon = new javax.swing.JButton(); jSeparator11 = new javax.swing.JSeparator(); iconInstancePos = new javax.swing.JComboBox(); jLabel30 = new javax.swing.JLabel(); jLabel31 = new javax.swing.JLabel(); iconExportTechnology = new javax.swing.JComboBox(); jPanel6 = new javax.swing.JPanel(); iconDrawLeads = new javax.swing.JCheckBox(); iconDrawBody = new javax.swing.JCheckBox(); jLabel26 = new javax.swing.JLabel(); iconLeadLength = new javax.swing.JTextField(); iconLeadSpacing = new javax.swing.JTextField(); jLabel27 = new javax.swing.JLabel(); jLabel28 = new javax.swing.JLabel(); iconExportPos = new javax.swing.JComboBox(); jLabel29 = new javax.swing.JLabel(); iconExportStyle = new javax.swing.JComboBox(); iconsAlwaysDrawn = new javax.swing.JCheckBox(); jLabel11 = new javax.swing.JLabel(); iconTextSize = new javax.swing.JTextField(); jPanel1 = new javax.swing.JPanel(); iconPlaceByChar = new javax.swing.JRadioButton(); iconPlaceByLoc = new javax.swing.JRadioButton(); iconCharLabel1 = new javax.swing.JLabel(); iconInputPos = new javax.swing.JComboBox(); iconCharLabel4 = new javax.swing.JLabel(); iconPowerPos = new javax.swing.JComboBox(); iconGroundPos = new javax.swing.JComboBox(); iconCharLabel5 = new javax.swing.JLabel(); iconOutputPos = new javax.swing.JComboBox(); iconCharLabel2 = new javax.swing.JLabel(); iconCharLabel3 = new javax.swing.JLabel(); iconBidirPos = new javax.swing.JComboBox(); iconCharLabel6 = new javax.swing.JLabel(); iconClockPos = new javax.swing.JComboBox(); iconCharLabel7 = new javax.swing.JLabel(); iconInputRot = new javax.swing.JComboBox(); iconCharLabel8 = new javax.swing.JLabel(); iconOutputRot = new javax.swing.JComboBox(); iconCharLabel9 = new javax.swing.JLabel(); iconBidirRot = new javax.swing.JComboBox(); iconCharLabel10 = new javax.swing.JLabel(); iconPowerRot = new javax.swing.JComboBox(); iconCharLabel11 = new javax.swing.JLabel(); iconGroundRot = new javax.swing.JComboBox(); iconCharLabel12 = new javax.swing.JLabel(); iconClockRot = new javax.swing.JComboBox(); jSeparator1 = new javax.swing.JSeparator(); iconLocLabel1 = new javax.swing.JLabel(); iconLocLabel2 = new javax.swing.JLabel(); iconLocLabel3 = new javax.swing.JLabel(); iconLocLabel4 = new javax.swing.JLabel(); iconTopRot = new javax.swing.JComboBox(); iconBottomRot = new javax.swing.JComboBox(); iconLeftRot = new javax.swing.JComboBox(); iconRightRot = new javax.swing.JComboBox(); iconReverseOrder = new javax.swing.JCheckBox(); useExactSchemLoc = 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); } }); icon.setLayout(new java.awt.GridBagLayout()); jLabel48.setText("Rules for automatic icon generation"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); icon.add(jLabel48, gridBagConstraints); jLabel54.setText("Current cell:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); icon.add(jLabel54, gridBagConstraints); iconCurrentCell.setText(" "); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); icon.add(iconCurrentCell, gridBagConstraints); iconMakeIcon.setText("Make Icon"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 6; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); icon.add(iconMakeIcon, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); icon.add(jSeparator11, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); icon.add(iconInstancePos, gridBagConstraints); jLabel30.setText("Export technology:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -