コード例 #1
0
 /** Updates the coordinates displayed on the GUI */
 public void updateC() {
   if (!canEdit) {
     jTextField6.setText("" + model.CornOriCoord(cube.c));
     jTextField5.setText("" + model.EdgeOriCoord(cube.e));
     jTextField4.setText("" + model.UDSliceCoord(cube));
     int flipUD = flip.FlipUDSliceCoord(cube);
     jTextField3.setText("" + (int) (flipUD / 16) + " " + (int) (flipUD % 16));
     jTextField2.setText(
         ""
             + prune.Phase1PruningTable[(int) (flipUD / 16)][
                 table.CornOriSym[model.CornOriCoord(cube.c)][flipUD % 16]]);
     jTextField11.setText("" + model.CornPermCoord(cube.c));
     jTextField10.setText("" + model.EdgePermCoord(cube.e));
     jTextField9.setText("" + model.UDSliceSortedCoord(cube));
     if (model.CornOriCoord(cube.c) == 0
         && model.EdgeOriCoord(cube.e) == 0
         && (int) (flipUD / 16) == 0) { // phase2
       jTextField12.setText("" + model.Phase2EdgePermCoord(cube));
       int CornPerm = perm.CornPermCoord(cube);
       jTextField8.setText("" + (int) (perm.CornPermCoord(cube) / 16) + " " + CornPerm % 16);
       jTextField7.setText(
           ""
               + prune.Phase2PruningTable[(int) (CornPerm / 16)][
                   table.P2EdgePermSym[model.Phase2EdgePermCoord(cube)][CornPerm % 16]]);
     }
     updateView();
   }
 }