~ubuntu-branches/ubuntu/vivid/electric/vivid

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/user/dialogs/options/RoutingTab.java

  • Committer: Package Import Robot
  • Author(s): Markus Koschany
  • Date: 2014-07-08 21:54:23 UTC
  • mfrom: (1.1.6) (3.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20140708215423-4zrgsca1e28tzcoc
Tags: 9.05+dfsg-1
* Imported Upstream version 9.05+dfsg.
* Add signing-key.pgp and check for valid upstream tarballs with uscan's
  pgpsigurlmangle feature.
* Move the package to Git.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
                // make all text fields select-all when entered
67
67
            EDialog.makeTextFieldSelectAllOnTab(sogMaxArcWidth);
68
68
            EDialog.makeTextFieldSelectAllOnTab(sogComplexityLimit);
 
69
            EDialog.makeTextFieldSelectAllOnTab(sogRerunComplexityLimit);
69
70
            EDialog.makeTextFieldSelectAllOnTab(sogForcedProcessorCount);
70
71
        }
71
72
 
98
99
                sogMaxArcWidth.setText(TextUtils.formatDistance(Routing.getSeaOfGatesMaxWidth()));
99
100
                sogComplexityLimit.setText(Integer.toString(Routing.getSeaOfGatesComplexityLimit()));
100
101
                sogGlobalRouting.setSelected(Routing.isSeaOfGatesUseGlobalRouting());
 
102
                sogSpineRouting.setSelected(Routing.isSeaOfGatesEnableSpineRouting());
101
103
                sogRerunFailedRoutes.setSelected(Routing.isSeaOfGatesRerunFailedRoutes());
 
104
                sogRerunComplexityLimit.setText(Integer.toString(Routing.getSeaOfGatesRerunComplexityLimit()));
102
105
                sogForcedProcessorCount.setText(Integer.toString(Routing.getSeaOfGatesForcedProcessorCount()));
103
106
                sogParallel.setSelected(Routing.isSeaOfGatesUseParallelRoutes());
104
107
                sogParallel.addActionListener(new ActionListener()
307
310
 
308
311
                boolean useGR = sogGlobalRouting.isSelected();
309
312
                if (useGR != Routing.isSeaOfGatesUseGlobalRouting())
310
 
                        Routing.setSeaOfGatesUseGlobalRouting(useGR);   
 
313
                        Routing.setSeaOfGatesUseGlobalRouting(useGR);
 
314
 
 
315
                boolean useSR = sogSpineRouting.isSelected();
 
316
                if (useSR != Routing.isSeaOfGatesEnableSpineRouting())
 
317
                        Routing.setSeaOfGatesEnableSpineRouting(useSR);
311
318
 
312
319
                boolean reRun = sogRerunFailedRoutes.isSelected();
313
320
                if (reRun != Routing.isSeaOfGatesRerunFailedRoutes())
314
 
                        Routing.setSeaOfGatesRerunFailedRoutes(reRun);                  
 
321
                        Routing.setSeaOfGatesRerunFailedRoutes(reRun);  
 
322
                curSOGComplexity = TextUtils.atoi(sogRerunComplexityLimit.getText());
 
323
                if (curSOGComplexity != Routing.getSeaOfGatesRerunComplexityLimit())
 
324
                        Routing.setSeaOfGatesRerunComplexityLimit(curSOGComplexity);            
315
325
 
316
326
                int curSOGForcedProcCount = TextUtils.atoi(sogForcedProcessorCount.getText());
317
327
                if (curSOGForcedProcCount != Routing.getSeaOfGatesForcedProcessorCount())
407
417
                        Routing.setSeaOfGatesComplexityLimit(Routing.getFactorySeaOfGatesComplexityLimit());
408
418
                if (Routing.isFactorySeaOfGatesUseGlobalRouting() != Routing.isSeaOfGatesUseGlobalRouting())
409
419
                        Routing.setSeaOfGatesUseGlobalRouting(Routing.isFactorySeaOfGatesUseGlobalRouting());
 
420
                if (Routing.isFactorySeaOfGatesEnableSpineRouting() != Routing.isSeaOfGatesEnableSpineRouting())
 
421
                        Routing.setSeaOfGatesEnableSpineRouting(Routing.isFactorySeaOfGatesEnableSpineRouting());
410
422
                if (Routing.isFactorySeaOfGatesRerunFailedRoutes() != Routing.isSeaOfGatesRerunFailedRoutes())
411
423
                        Routing.setSeaOfGatesRerunFailedRoutes(Routing.isFactorySeaOfGatesRerunFailedRoutes());
 
424
                if (Routing.getFactorySeaOfGatesRerunComplexityLimit() != Routing.getSeaOfGatesRerunComplexityLimit())
 
425
                        Routing.setSeaOfGatesRerunComplexityLimit(Routing.getFactorySeaOfGatesRerunComplexityLimit());
412
426
 
413
427
                if (Routing.isFactorySeaOfGatesUseParallelRoutes() != Routing.isSeaOfGatesUseParallelRoutes())
414
428
                        Routing.setSeaOfGatesUseParallelRoutes(Routing.isFactorySeaOfGatesUseParallelRoutes());
478
492
         * always regenerated by the Form Editor.
479
493
         */
480
494
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
481
 
    private void initComponents() {
 
495
    private void initComponents()
 
496
    {
482
497
        java.awt.GridBagConstraints gridBagConstraints;
483
498
 
484
499
        routStitcher = new javax.swing.ButtonGroup();
496
511
        jLabel6 = new javax.swing.JLabel();
497
512
        sogGlobalRouting = new javax.swing.JCheckBox();
498
513
        sogRerunFailedRoutes = new javax.swing.JCheckBox();
 
514
        jLabel7 = new javax.swing.JLabel();
 
515
        sogRerunComplexityLimit = new javax.swing.JTextField();
 
516
        sogSpineRouting = new javax.swing.JCheckBox();
499
517
        all = new javax.swing.JPanel();
500
518
        routTechLabel = new javax.swing.JLabel();
501
519
        routDefaultArc = new javax.swing.JComboBox();
525
543
 
526
544
        setTitle("Tool Options");
527
545
        setName(""); // NOI18N
528
 
        addWindowListener(new java.awt.event.WindowAdapter() {
529
 
            public void windowClosing(java.awt.event.WindowEvent evt) {
 
546
        addWindowListener(new java.awt.event.WindowAdapter()
 
547
        {
 
548
            public void windowClosing(java.awt.event.WindowEvent evt)
 
549
            {
530
550
                closeDialog(evt);
531
551
            }
532
552
        });
544
564
        gridBagConstraints.gridx = 0;
545
565
        gridBagConstraints.gridy = 0;
546
566
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
547
 
        gridBagConstraints.insets = new java.awt.Insets(4, 4, 1, 4);
 
567
        gridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 4);
548
568
        seaOfGates.add(jLabel2, gridBagConstraints);
549
569
 
550
570
        sogMaxArcWidth.setColumns(10);
552
572
        gridBagConstraints.gridx = 1;
553
573
        gridBagConstraints.gridy = 0;
554
574
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
555
 
        gridBagConstraints.insets = new java.awt.Insets(4, 4, 1, 4);
 
575
        gridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 4);
556
576
        seaOfGates.add(sogMaxArcWidth, gridBagConstraints);
557
577
 
558
578
        jLabel3.setText("Search complexity limit:");
575
595
        sogParallel.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
576
596
        gridBagConstraints = new java.awt.GridBagConstraints();
577
597
        gridBagConstraints.gridx = 0;
578
 
        gridBagConstraints.gridy = 6;
 
598
        gridBagConstraints.gridy = 8;
579
599
        gridBagConstraints.gridwidth = 2;
580
600
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
581
 
        gridBagConstraints.insets = new java.awt.Insets(1, 20, 4, 4);
 
601
        gridBagConstraints.insets = new java.awt.Insets(1, 20, 1, 4);
582
602
        seaOfGates.add(sogParallel, gridBagConstraints);
583
603
 
584
604
        sogParallelDij.setText("Use two processors per route");
585
605
        sogParallelDij.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
586
606
        gridBagConstraints = new java.awt.GridBagConstraints();
587
607
        gridBagConstraints.gridx = 0;
588
 
        gridBagConstraints.gridy = 5;
 
608
        gridBagConstraints.gridy = 7;
589
609
        gridBagConstraints.gridwidth = 2;
590
610
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
591
611
        gridBagConstraints.insets = new java.awt.Insets(1, 20, 1, 4);
594
614
        jLabel4.setText("If there are multiple processors available:");
595
615
        gridBagConstraints = new java.awt.GridBagConstraints();
596
616
        gridBagConstraints.gridx = 0;
597
 
        gridBagConstraints.gridy = 4;
 
617
        gridBagConstraints.gridy = 6;
598
618
        gridBagConstraints.gridwidth = 2;
599
619
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
600
 
        gridBagConstraints.insets = new java.awt.Insets(2, 4, 1, 4);
 
620
        gridBagConstraints.insets = new java.awt.Insets(4, 4, 1, 4);
601
621
        seaOfGates.add(jLabel4, gridBagConstraints);
602
622
 
603
623
        sogForcedProcessorCount.setColumns(10);
604
624
        gridBagConstraints = new java.awt.GridBagConstraints();
605
625
        gridBagConstraints.gridx = 1;
606
 
        gridBagConstraints.gridy = 7;
 
626
        gridBagConstraints.gridy = 9;
607
627
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
608
628
        gridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 4);
609
629
        seaOfGates.add(sogForcedProcessorCount, gridBagConstraints);
611
631
        jLabel6.setText("Forced processor count:");
612
632
        gridBagConstraints = new java.awt.GridBagConstraints();
613
633
        gridBagConstraints.gridx = 0;
614
 
        gridBagConstraints.gridy = 7;
 
634
        gridBagConstraints.gridy = 9;
615
635
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
616
636
        gridBagConstraints.insets = new java.awt.Insets(1, 4, 1, 4);
617
637
        seaOfGates.add(jLabel6, gridBagConstraints);
630
650
        sogRerunFailedRoutes.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
631
651
        gridBagConstraints = new java.awt.GridBagConstraints();
632
652
        gridBagConstraints.gridx = 0;
633
 
        gridBagConstraints.gridy = 3;
 
653
        gridBagConstraints.gridy = 4;
634
654
        gridBagConstraints.gridwidth = 2;
635
655
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
636
 
        gridBagConstraints.insets = new java.awt.Insets(2, 4, 2, 4);
 
656
        gridBagConstraints.insets = new java.awt.Insets(2, 4, 0, 4);
637
657
        seaOfGates.add(sogRerunFailedRoutes, gridBagConstraints);
638
658
 
 
659
        jLabel7.setText("Rerun complexity limit:");
 
660
        gridBagConstraints = new java.awt.GridBagConstraints();
 
661
        gridBagConstraints.gridx = 0;
 
662
        gridBagConstraints.gridy = 5;
 
663
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
 
664
        gridBagConstraints.insets = new java.awt.Insets(1, 20, 4, 4);
 
665
        seaOfGates.add(jLabel7, gridBagConstraints);
 
666
 
 
667
        sogRerunComplexityLimit.setColumns(10);
 
668
        gridBagConstraints = new java.awt.GridBagConstraints();
 
669
        gridBagConstraints.gridx = 1;
 
670
        gridBagConstraints.gridy = 5;
 
671
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
 
672
        gridBagConstraints.insets = new java.awt.Insets(1, 4, 4, 4);
 
673
        seaOfGates.add(sogRerunComplexityLimit, gridBagConstraints);
 
674
 
 
675
        sogSpineRouting.setText("Do Spine Routing");
 
676
        sogSpineRouting.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
 
677
        gridBagConstraints = new java.awt.GridBagConstraints();
 
678
        gridBagConstraints.gridx = 0;
 
679
        gridBagConstraints.gridy = 3;
 
680
        gridBagConstraints.gridwidth = 2;
 
681
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
 
682
        gridBagConstraints.insets = new java.awt.Insets(2, 4, 2, 4);
 
683
        seaOfGates.add(sogSpineRouting, gridBagConstraints);
 
684
 
639
685
        gridBagConstraints = new java.awt.GridBagConstraints();
640
686
        gridBagConstraints.gridx = 0;
641
687
        gridBagConstraints.gridy = 1;
902
948
    private javax.swing.JLabel jLabel4;
903
949
    private javax.swing.JLabel jLabel5;
904
950
    private javax.swing.JLabel jLabel6;
 
951
    private javax.swing.JLabel jLabel7;
905
952
    private javax.swing.JLabel jLabel70;
906
953
    private javax.swing.JPanel left;
907
954
    private javax.swing.JPanel mimic;
934
981
    private javax.swing.JTextField sogMaxArcWidth;
935
982
    private javax.swing.JCheckBox sogParallel;
936
983
    private javax.swing.JCheckBox sogParallelDij;
 
984
    private javax.swing.JTextField sogRerunComplexityLimit;
937
985
    private javax.swing.JCheckBox sogRerunFailedRoutes;
 
986
    private javax.swing.JCheckBox sogSpineRouting;
938
987
    // End of variables declaration//GEN-END:variables
939
988
 
940
989
}