Only in .: BitFile.class Only in .: BitUtils.class Only in .: DataFlowDiagram.dat Only in .: DataFlowDiagramHG000001.gif Only in .: DataFlowDiagramHG000001.ps Only in .: DataFlowHG000001.ps Only in .: DisplayFrame.class Only in .: EndsWithFilter.class Only in .: GIFEncoder.class Only in .: GIFEncoder.java Only in .: GraphBox.class diff -bitw ./GraphBox.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/GraphBox.java 3,11d2 < /* ************************************************************/ < /** < *
<  * Class       : GraphBox
<  * Description : Link class
<  * 
< */ < /* ************************************************************/ < 83,93d73 < < /* ****************************************************************/ < /** < *
<  * Method       : getStatus()
<  * Description  : Not implemented
<  * Class        : GraphBox
<  * 
< */ < /* ****************************************************************/ < 98,112d77 < < /* ***************************************************************/ < /** < *
<  * Method       : show()
<  * Description  : Bring the parent window to the front
<  * Class        : GraphBox
<  * 
< * @param none < * @return none < * @exception none < */ < /* ***************************************************************/ < < 118,136d82 < /* ***************************************************************/ < /** < *
<  * Method       : action()
<  * Description  : Excute actions on the selected object
<  * State info   : evt.targe = OKbutton { if Graph --> Create Graph
<  *                          if Text  --> Create Graph Caption Text
<  *                                 } --> set status flag to ACTION_OK.
<  * Class        : GraphBox
<  * 
< * @param evt evt.id < * @param arg selected object < * @return true or false < * < */ < /* ***************************************************************/ < < < 191,207d136 < /* **********************************************************/ < /** < *
<  * Method       : handleEvent() 
<  * Description  : Check e.id, execute it or passed it to the parent
<  * State info   : evt.id = WINDOW_DESTROY --> hide window & set status flag 
<  *                to ACTION_CANCEL
<  * Class        : GraphBox 
<  * 
< * @param e evt.id < * @return true or false < * @exception none < * < */ < /* **********************************************************/ < < Only in .: ImageDescriptor.class diff -bitw ./InfoDialog.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/InfoDialog.java 1a2 > 2a4 > 3a6 > 5a9,10 > > 7a13,14 > > 8a16 > 9a18 > 10a20 > 13a24,26 > > > 14a28 > 15a30 > 16a32 > 17a34 > 18a36 > 20c38,41 < setBackground(Color.white); --- > > //setBackground(Color.white); > setBackground(Color.lightGray); > 22a44 > 24a47,48 > > 26a51,52 > > 27a54 > 29a57,58 > > 30a60 > 31a62 > 33a65,66 > > 34a68 > 35a70 > 36a72 > 37a74 > 38a76 > 39a78 > 41a81,82 > > 42a84 > 44a87,88 > > 46a91,92 > > 47a94 > 49a97,98 > > 51a101,102 > > 52a104 > 53a106 > 54a108 > 55a110 > 57a113,114 > > 58a116 > 59a118 > 60a120 > 61a122 > 62a124 > 63a126 > 64a128 > 65a130 > 66a132 > 68a135,136 > > 69a138 > 70a140 > 71a142 > 72a144 > 73a146 > 75a149,150 > > 76a152 > 77a154 > 78a156 > 79a158 > 80a160 > 81a162 > 82a164 > 83a166 > 84a168 > 85a170 > 86a172 > Only in .: LZWCompressor.class Only in .: LZWStringTable.class Only in /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source: MessageBox.java Only in /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source: MsgBox.java Only in .: MultiLineLabel.class diff -bitw ./MultiLineLabel.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/MultiLineLabel.java 9,18d8 < /* *******************************************************************/ < /** < * < *
<  * Class       : MultiLineLabel
<  * Description : Initialize, set up and draw multiline label
<  * 
< */ < /* *******************************************************************/ < 33d22 < 36,49d24 < /* ***************************************************************/ < /** < *
<  * Method       : newLabel()
<  * Description  : Break a specified label up into an array of lines
<  * Class        : MultiLineLabel
<  * 
< * < * @param String label < * @return none < * @exception none < */ < /* ***************************************************************/ < 60,73d34 < < /* ***************************************************************/ < /** < *
<  * Method       : measure()
<  * Description  : Figure out the font and size of the line
<  * Class        : MultiLineLabel
<  * 
< * @param none < * @return none < * @exception none < */ < /* ***************************************************************/ < 90,107d50 < < /* ***************************************************************/ < /** < *
<  * Constructor  : MultiLineLabel()
<  * Description  : Break the label up into separate lines, and save 
<  *                the other info
<  * Class        : MultiLineLabel
<  * 
< * @param String label < * @param int margin_width < * @param int margin_height < * @param int alignment < * @return none < * @exception none < */ < /* ***************************************************************/ < 115,132d57 < < /* ***************************************************************/ < /** < *
<  * Constructor  : MultiLineLabel()
<  * Description  : Break the label up into separate lines, and save 
<  *                the other info
<  * Class        : MultiLineLabel
<  * 
< * @param String label < * @param int margin_width < * @param int margin_height < * @return none < * @exception none < */ < /* ***************************************************************/ < < 136,152d60 < < < /* ***************************************************************/ < /** < *
<  * Constructor  : MultiLineLabel()
<  * Description  : Break the label up into separate lines, and save 
<  *                the other info
<  * Class        : MultiLineLabel
<  * 
< * @param String label < * @param int alignment < * @return none < * @exception none < */ < /* ***************************************************************/ < 156,172d63 < < < /* ***************************************************************/ < /** < *
<  * Constructor  : MultiLineLabel()
<  * Description  : Break the label up into separate lines, and save 
<  *                the other info
<  * Class        : MultiLineLabel
<  * 
< * @param String label < * @return none < * @exception none < */ < /* ***************************************************************/ < < 178,191d68 < < /* ***************************************************************/ < /** < *
<  * Method       : setLabel()
<  * Description  : set the various attributes of the component
<  * Class        : MultiLineLabel
<  * 
< * @param String label < * @return none < * @exception none < */ < /* ***************************************************************/ < 197,211d73 < < < /* ***************************************************************/ < /** < *
<  * Method       : setFont()
<  * Description  : Call the superclass to set the font
<  * Class        : MultiLineLabel
<  * 
< * @param f font < * @return none < * @exception none < */ < /* ***************************************************************/ < 217,230d78 < < /* ***************************************************************/ < /** < *
<  * Method       : setForeground()
<  * Description  : Call the superclass to set the foreground color
<  * Class        : MultiLineLabel
<  * 
< * @param c color < * @return none < * @exception none < */ < /* ***************************************************************/ < 235,248d82 < < /* ***************************************************************/ < /** < *
<  * Method       : setAlignment()
<  * Description  : set the alignment 
<  * Class        : MultiLineLabel
<  * 
< * @param a alignment < * @return none < * @exception none < */ < /* ***************************************************************/ < 250,264d83 < < /* ***************************************************************/ < /** < *
<  * Method       : setMarginwidth()
<  * Description  : set the margin width
<  * Class        : MultiLineLabel
<  * 
< * @param mw margin_width < * @return none < * @exception none < */ < /* ***************************************************************/ < < 266,280d84 < < /* ***************************************************************/ < /** < *
<  * Method       : setMarginHeight()
<  * Description  : set the margin height
<  * Class        : MultiLineLabel
<  * 
< * @param mh margin_height < * @return none < * @exception none < */ < /* ***************************************************************/ < < 282,297d85 < < < /* ***************************************************************/ < /** < *
<  * Method       : getAlignment()
<  * Description  : get alignment
<  * Class        : MultiLineLabel
<  * 
< * @param none < * @return alignment < * @exception none < */ < /* ***************************************************************/ < < 299,313d86 < < /* ***************************************************************/ < /** < *
<  * Method       : getMarginWidth()
<  * Description  : get margin width
<  * Class        : MultiLineLabel
<  * 
< * @param none < * @return margin_width < * @exception none < */ < /* ***************************************************************/ < < 315,329d87 < < /* ***************************************************************/ < /** < *
<  * Method       : getMarginHeight()
<  * Description  : get margin height
<  * Class        : MultiLineLabel
<  * 
< * @param none < * @return margin_height < * @exception none < */ < /* ***************************************************************/ < < 337,351d94 < < /* ***************************************************************/ < /** < *
<  * Method       : addNotify()
<  * Description  : Invoked after our Canvas is first created but before it 
<  *                can actually be displayed
<  * Class        : MultiLineLabel
<  * 
< * @param none < * @return none < * @exception none < */ < /* ***************************************************************/ < 356,370d98 < < /* ***************************************************************/ < /** < *
<  * Method       : preferredSize()
<  * Description  : Called by a layout manager when it wants to know 
<  *                how big we'd like to be 
<  * Class        : MultiLineLabel
<  * 
< * @param none < * @return Dimention < * @exception none < */ < /* ***************************************************************/ < 378,393d105 < < < /* ***************************************************************/ < /** < *
<  * Method       : minimumSize()
<  * Description  : Called when the layout manager wants to know the 
<  *                bare minimum amount of space we need to get by
<  * Class        : MultiLineLabel
<  * 
< * @param none < * @return Dimention < * @exception none < */ < /* ***************************************************************/ < 402,416d113 < < < /* ***************************************************************/ < /** < *
<  * Method       : paint()
<  * Description  : Draw the label (handels margins and the alignment)
<  * Class        : MultiLineLabel
<  * 
< * @param g Graphics context set by the supperclass < * @return none < * @exception none < */ < /* ***************************************************************/ < 435,440d131 < < < < < < Only in .: ScreenDescriptor.class Only in .: bde2JavaApplet.class diff -bitw ./bde2JavaApplet.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bde2JavaApplet.java 1a2 > 2a4 > 3a6 > 4a8 > 5a10 > 6a12 > 7a14 > 8a16 > 9a18 > 10a20 > 11a22 > 12a24 > 15,16c27,30 < /* *********************************************************************/ < /** --- > > > /************************************************************************** > 17a32,34 > > * > 18a36 > 19a38 > 20a40 > 21a42 > 22a44 > 23a46 > 24a48 > 25a50 > 26a52 > 27a54 > 28a56 > 29a58 > 31a61,62 > > 33a65,66 > > 34a68 > 35a70 > 36a72 > 37a74 > 38a76 > 39a78 > 40a80 > 41a82 > 42a84 > 43a86 > 44a88 > 45a90 > 47a93,94 > > 48a96 > 50a99,100 > > 51a102 > 53a105,106 > > 54a108 > 55a110 > 56a112 > 58a115,116 > > 59a118 > 61a121,122 > > 62a124 > 63a126 > 65a129,132 > bdeGraph staticGraph = new bdeGraph(this,0,0); > > > 66a134 > 67a136 > 68a138 > 69a140 > 70a142 > 71a144 > 72a146 > 73a148 > 74a150 > 75a152 > 76a154 > 78a157,158 > > 79a160 > 80a162 > 81a164 > 82a166 > 84a169,170 > > 85a172 > 86a174 > 88a177,178 > > 89a180 > 90a182 > 91a184 > 92a186 > 93a188 > 94a190 > 95a192 > 96a194 > 97a196 > 99a199,200 > > 100a202 > 102a205,206 > > 103a208 > 104a210 > 105a212 > 106a214 > 107a216 > 108a218 > 109a220 > 111a223,224 > > 113a227,228 > > 114a230 > 115a232 > 116a234 > 117a236 > 120a240,242 > > > 122a245,246 > > 124a249,250 > > 125a252 > 126a254 > 127a256 > 128a258 > 129a260 > 130a262 > 131a264 > 132a266 > 133a268 > 134a270 > 135a272 > 136a274 > 137a276 > 138a278 > 139a280 > 140a282 > 142a285,286 > > 144a289,290 > > 145a292 > 146a294 > 147a296 > 148a298 > 149a300 > 150a302 > 151a304 > 152a306 > 154a309,310 > > 155a312 > 156a314 > 157a316 > 159a319,320 > > 160a322 > 162a325,326 > > 163a328 > 165a331,332 > > 166a334 > 167a336 > 168a338 > 169a340 > 171a343,344 > > 172a346 > 173a348 > 174a350 > 175a352 > 176a354 > 177a356 > 179a359,360 > > 180a362 > 182a365,366 > > 183a368 > 184a370 > 185a372 > 186a374 > 187a376 > 188a378 > 189a380 > 190a382 > 191a384 > 192a386 > 193a388 > 194a390 > 195a392 > 196a394 > 197a396 > 198a398 > 199a400 > 200a402 > 201a404 > 202a406 > 204a409,410 > > 205a412 > 207a415,416 > > 208a418 > 209a420 > 210a422 > 211a424 > 213a427,428 > > 214a430 > 215a432 > 216a434 > 217a436 > 218a438 > 219a440 > 221a443,444 > > 223a447,448 > > 225a451,452 > > 226a454 > 227a456 > 228a458 > 230a461,462 > > 232a465,466 > > 233a468 > 235a471,472 > > 237a475,478 > clearCanvas(); /* This call is made to redraw the graph drop down > box. No harm should be done by making this call > because it is the equivalent of calling new. */ > 239a481,555 > > /************************************************************* > > * Method: public void clearCanvas() > > * > > * Description: > > * > > * Class: bde2JavaApplet > > * > > * > > *************************************************************/ > > public void clearCanvas() > { > > // Remove all components from panel vector and set size to zero. > > panel.removeAllElements(); > > // Remove the Graphlist from the panel > > remove(GraphList); > > // Create a temporary Choice object to be assigned to Graphlist > // This is necessary due to a lack of pointers in the Java language > // so we can't simply delete the object and recreate it > > Choice Graph2 = new Choice(); > > // Add the object to the display > > add(Graph2); > > // Assign Graph2 to GraphList because the rest of this class refers > // to the global variable GraphList > > GraphList = Graph2; > > repaint(); > > // Reset the MaxGraphKey variable to 0 > > staticGraph.resetMaxGraphKey(); > > Date date = new Date(); > String szMonth = new String(" "); > szMonth = bdeReference.months[date.getMonth()]; > int year = date.getYear(); > int date2 = date.getDate(); > int hour = date.getHours(); > int minute = date.getMinutes(); > String Today = date.getDate() + szMonth + year + "/" + hour + minute; > addGraph(" HG000001 FS010000 HN010000 " + bdeUser + " " + Today + " " + Today + " UNTITLED"); > > bdeGraphCurrent = 0; > bdeDisplayFrame.GraphNameTitle.setText("Untitled"); > > ((CardLayout)bdeDisplay.getLayout()).show(bdeDisplay, ((bdeGraph)panel.elementAt(bdeGraphCurrent)).Name); > > ((bdeGraph)panel.elementAt(bdeGraphCurrent)).repaint(); > > GraphList.addItem("HG000001"); > > repaint(); > > > } > 240a557 > 241a559 > 242a561 > 243a563 > 244a565 > 245a567 > 246a569 > 247a571 > 248a573 > 249a575 > 250a577 > 251a579 > 252a581 > 254a584,585 > > 255a587 > 256a589 > 257a591 > 258a593 > 259a595 > 260a597 > 261a599 > 262a601 > 263a603 > 264a605 > 265a607 > 266a609 > 268a612,613 > > 269a615 > 271a618,619 > > 273a622,623 > > 274a625 > 276a628,629 > > 277a631 > 278a633 > 280a636,637 > > 281a639 > 282a641 > 283a643 > 285a646,647 > > 287a650,651 > > 288a653 > 289a655 > 290a657 > 291a659 > 292a661 > 293a663 > 294a665 > 296a668,669 > > 297a671 > 298a673 > 299a675 > 300a677 > 302a680,681 > > 303a683 > 304a685 > 305a687 > 306a689 > 307a691 > 309a694,695 > > 310a697 > 311a699 > 312a701 > 313a703 > 314a705 > 315a707 > 316a709 > 318a712,713 > > 319a715 > 320a717 > 321a719 > 322a721 > 323a723 > 324a725 > 326a728,729 > > 327a731 > 328a733 > 329a735 > 330a737 > 331a739 > 333a742,743 > > 334a745 > 335a747 > 336a749 > 337a751 > 338a753 > 340a756,757 > > 341a759 > 342a761 > 343a763 > 344a765 > 345a767 > 346a769 > 348a772,773 > > 349a775 > 350a777 > 351a779 > 352a781 > 353a783 > 355a786,787 > > 357a790,791 > > 359a794,795 > > 360a797 > 361a799 > 362a801 > 363a803 > 364a805 > 365a807 > 366a809 > 367a811 > 368a813 > 369a815 > 370a817 > 371a819 > 372a821 > 373a823 > 376a827 > 377a829 > 378a831 > 379a833 > 380a835 > 381a837 > 382a839 > 383a841 > 384a843 > 385a845 > 386a847 > 387a849 > 388a851 > 390a854,855 > > 391a857 > 392a859 > 393a861 > 394a863 > 395a865 > 396a867 > 397a869 > 398a871 > 399a873 > 400a875 > 401a877 > 402a879 > 404a882,883 > > 405a885 > 406a887 > 407a889 > 408a891 > 409a893 > 410a895 > 411a897 > 412a899 > 413a901 > 414a903 > 415a905 > 417a908,909 > > 418a911 > 419a913 > 420a915 > 421a917 > 422a919 > 423a921 > 424a923 > 425a925 > 426a927 > 427a929 > 428a931 > 429a933 > 431a936,937 > > 432a939 > 433a941 > 434a943 > 435a945 > 436a947 > 437a949 > 438a951 > 439a953 > 440a955 > 441a957 > 442a959 > 444a962,963 > > 445a965 > 446a967 > 447a969 > 448a971 > 449a973 > 451a976,977 > > 452a979 > 453a981 > 454a983 > 455a985 > 456a987 > 457a989 > 458a991 > 459a993 > 460a995 > 461a997 > 462a999 > 471a1009 > 475a1014 > 480d1018 < return true; 481a1020 > return true; 482a1022 > 483a1024 > 485a1027,1028 > > 486a1030 > 487a1032 > 488a1034 > 489a1036 > 490a1038 > 491a1040 > 492a1042 > 493a1044 > 494a1046 > 495a1048 > 496a1050 > 498a1053,1054 > > 500a1057,1058 > > 501a1060 > 502a1062 > 503a1064 > 504a1066 > 505a1068 > 506a1070 > 507a1072 > 509a1075,1076 > > 511a1079,1080 > > 512a1082 > 513a1084 > 514a1086 > 516a1089,1090 > > 517a1092 > 518a1094 > 519a1096 > 520a1098 > 522a1101,1102 > > 523a1104 > 524a1106 > 525a1108 > 526a1110 > 527a1112 > 528a1114 > 529a1116 > 531a1119,1120 > > 533a1123,1124 > > 534a1126 > 535a1128 > 537a1131,1132 > > 538a1134 > 539a1136 > 540a1138 > 541a1140 > 542a1142 > 543a1144 > 544a1146 > 545a1148 > 546a1150 > 547a1152 > 548a1154 > 549a1156 > 550a1158 > 551a1160 > 553a1163,1164 > > 554a1166 > 555a1168 > 556a1170 > 557a1172 > 558a1174 > 559a1176 > 560a1178 > 561a1180 > 562a1182 > 563a1184 > 565a1187,1188 > > 566a1190 > 567a1192 > 568a1194 > 569a1196 > 570a1198 > 571a1200 > 572a1202 > 573a1204 > 574a1206 > 575a1208 > 577a1211,1212 > > 578a1214 > 579a1216 > 580a1218 > 582a1221,1222 > > 583a1224 > 584a1226 > 585a1228 > 586a1230 > 587a1232 > 588a1234 > 589a1236 > 590a1238 > 591a1240 > 592a1242 > 593a1244 > 594a1246 > 595a1248 > 597a1251,1252 > > 598a1254 > 599a1256 > 600a1258 > 601a1260 > 602a1262 > 603a1264 > 604a1266 > 605a1268 > 606a1270 > 607a1272 > 608a1274 > 610a1277,1278 > > 611a1280 > 612a1282 > 613a1284 > 614a1286 > 615a1288 > 616a1290 > 617a1292 > 618a1294 > 619a1296 > 620a1298 > 621a1300 > 623a1303,1304 > > 624a1306 > 625a1308 > 626a1310 > 627a1312 > 628a1314 > 629a1316 > 630a1318 > 631a1320 > 632a1322 > 633a1324 > 634a1326 > 636a1329,1330 > > 637a1332 > 638a1334 > 639a1336 > 640a1338 > 641a1340 > 642a1342 > 643a1344 > 644a1346 > 645a1348 > 646a1350 > 647a1352 > 648a1354 > 650a1357,1358 > > 651a1360 > 652a1362 > 653a1364 > 654a1366 > 655a1368 > 656a1370 > 657a1372 > 658a1374 > 659a1376 > 660a1378 > 661a1380 > 663a1383,1384 > > 664a1386 > 665a1388 > 666a1390 > 667a1392 > 669a1395,1396 > > 670a1398 > 671a1400 > 672a1402 > 673a1404 > 674a1406 > 675a1408 > 676a1410 > 678a1413,1414 > > 679a1416 > 680a1418 > 681a1420 > 682a1422 > 683a1424 > 684a1426 > 685a1428 > 686a1430 > 687a1432 > 688a1434 > 690a1437,1438 > > 691a1440 > 692a1442 > 693a1444 > 694a1446 > 695a1448 > 696a1450 > 697a1452 > 699a1455,1456 > > 700a1458 > 701a1460 > 702a1462 > 703a1464 > 704a1466 > 705a1468 > 706a1470 > 707a1472 > 709a1475,1476 > > 710a1478 > 711a1480 > 712a1482 > 713a1484 > 714a1486 > 715a1488 > 716a1490 > 717a1492 > 718a1494 > 719a1496 > 721a1499,1500 > > 722a1502 > 723a1504 > 724a1506 > 725a1508 > 726a1510 > 727a1512 > 728a1514 > 730a1517,1518 > > 731a1520 > 732a1522 > 733a1524 > 734a1526 > 735a1528 > 736a1530 > 737a1532 > 738a1534 > 739a1536 > 740a1538 > 741a1540 > 742a1542 > 743a1544 > 745a1547,1548 > > 746a1550 > 747a1552 > 748a1554 > 749a1556 > 750a1558 > 751a1560 > 752a1562 > 753a1564 > 754a1566 > 755a1568 > 756a1570 > 757a1572 > 758a1574 > 759a1576 > 760a1578 > 761a1580 > 763a1583,1584 > > 764a1586 > 765a1588 > 766a1590 > 767a1592 > 768a1594 > 769a1596 > 770a1598 > 771a1600 > 772a1602 > 773a1604 > 774a1606 > 775a1608 > 776a1610 > 777a1612 > 778a1614 > 779a1616 > 781a1619,1620 > > 783a1623,1624 > > Only in .: bdeAboutBox.class diff -bitw ./bdeAboutBox.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeAboutBox.java 3,11d2 < /* *************************************************************************/ < /** < *
< * Class         : bdeAboutBox
< * Description   : Display a given message in a new window frame.
< *                 The window is closed when a mouse event is detected
< * 
< */ < /* *************************************************************************/ 17,51d7 < < < /* *************************************************************************/ < /** < *
 
< * Method       : bdeAboutBox()
< * Description  : It creates the Border; supplied message and title are add
< *                to the frame by means of MultiLineLabel; 
< * Class        : bdeAboutBox
< * 
< * @param < *
< * parent takes the size and location value for the frame to draw on
< * 
< * @param < *
< * title takes the title string to be displayed in the frame
< * 
< * @param < *
< * message takes the message content to be displayed in the frame
< * 
< * < * @return < *
< * none
< * 
< * < * @exception < *
< * none
< * 
< */ < /* *************************************************************************/ < 89,118d44 < /* *************************************************************************/ < /** < *
< * Method       : action()
< * Description  : It pop down the window when the button is clicked
< * Class        : bdeAboutBox
< *
< * < * @param < *
< * e gives the kind of event happened eg. mouse button
< * 
< * @param < *
< * arg not being used
< * 
< * < * @return < *
< * It returns true if the event (e.target) detected is a button event,
< * returns false otherwise.
< * 
< * < * @exception < *
< * none
< * 
< */ < /* *************************************************************************/ < 130,158d55 < /* *************************************************************************/ < /** < *
< * Method       : gotFocus()
< * Description  : It gets the keyboard focus, give it to the button
< * Class        : bdeAboutBox
< *
< * < * @param < *
< * e gives the kind of event happened
< * 
< * @param < *
< * arg not being used
< * 
< * < * @return < *
< * It returns true if a keyboard shortcut is detected.
< * 
< * < * @exception < *
< * none
< * 
< */ < /* *************************************************************************/ < Only in .: bdeAppletFrame.class diff -bitw ./bdeAppletFrame.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeAppletFrame.java 1a2 > 2a4 > 3a6 > 4a8 > 7c11,18 < import GIFEncoder; --- > import MsgBox; > import MessageBox; > > /************************************************************************** > > * Class: bdeAppletFrame > > * 9c20,21 < /********************************************************************** --- > * Description: Link class > 11,12c23 < *
<  * Class: bdeAppletFrame
--- > 14,15c25 < * Description: Provides a container Frame with a Menu bar < * to the bde2JavaApplet.
--- > 17,18c27 < * Modified by: Hua Ren, 97s523, 042797 < *
--- > 19a29 > 20a31 > 21a33 > 22a35 > 23a37 > 24a39 > 26a42,43 > > 28,29c45,47 < *

< * Method: public void bdeAppletFrame()
--- > > * Method: public void bdeAppletFrame() > 31,34c49,51 < * Description: The Constructor method for bdeAppletFrame
< * Creates the frame, menubar and starts the < * bde2JavaApplet.
< * Class: bdeAppletFrame --- > > * Description: > 36c53,55 < * Modified by: Hua Ren, 97s523, 042797 --- > > * Class: bdeAppletFrame > 38,43c57 < * @param String title, The title of the frame < * @param bde2JavaApplet applet, the bde applet < * @param int width, the width of the frame < * @param int height, the height of the frame < * @return None < * @exception None --- > 44a59 > 45a61 > 47,48c63 < /* bdeAppletFrame constructor takes 4 arguments.The title < string, the BDE applet, width and height */ --- > 49a65 > 51a68,69 > > 53c71 < /* the BDE applet supplied to the constructor */ --- > 54a73 > 55a75 > 56a77 > 57a79 > 58a81 > 59a83 > 60a85 > 61a87 > 62a89 > 63a91 > 64a93 > 66d94 < /* print out info. */ 67a96,97 > > 69a100,101 > > 71c103,105 < /* set BDE applet's color */ --- > > > 73c107 < /* create a new Menubar */ --- > 75c109 < /* create menus */ --- > 76a111 > 78c113 < /* Make this a tear-off menu */ --- > 80,81c115,117 < /* create a help menu */ < /* add menus to menubar */ --- > > > 82a119 > 83a121 > 84a123 > 85a125 > 88,91c128,129 < /* The following menus have been modified and rearranged < * by Hua Ren, 97s523, 042797 < */ < /* make File menu items */ --- > > 93c131,133 < Menu fileOpen = new Menu("Open..."); --- > > MenuItem fileOpen = new MenuItem("Open..."); > 94a135 > 95a137 > 97d138 < Menu filePrint = new Menu("Print..."); 99,110c140 < /* sub menu items of make File */ < fileOpen.add(new MenuItem("Open DATA File...")); < Menu printAsGif = new Menu("Print As GIF..."); < Menu printAsPS = new Menu("Print As PS..."); < filePrint.add(printAsGif); < filePrint.add(printAsPS); < < /* add items to Save As GIF */ < printAsGif.add(new MenuItem("Print Current Graph")); < printAsGif.add(new MenuItem("Print All Graphs")); < printAsPS.add(new MenuItem("Current Graph..")); < printAsPS.add(new MenuItem("All Graphs..")); --- > MenuItem filePrint = new MenuItem("Print..."); 112c142,143 < /* add items to File menu */ --- > > 113a145 > 114a147 > 115a149 > 116a151 > 117a153 > 118a155 > 119a157 > 120a159 > 121a161 > 124c164,165 < /* make edit menu items */ --- > > 125a167 > 126a169 > 127a171 > 128a173 > 129a175 > 130a177 > 131a179 > 134c182,183 < /* add items to Edit menu */ --- > > 135a185 > 136a187 > 137a189 > 138a191 > 139a193 > 140a195 > 141a197 > 142a199 > 143a201 > 146c204,205 < /* make options menu items */ --- > > 147a207 > 148a209 > 149a211 > 152c214,215 < /* add options menu items */ --- > > 153a217 > 154a219 > 155a221 > 158c224,225 < /* make help menu items */ --- > > 159a227 > 160a229 > 161a231 > 162a233 > 165c236,237 < /* add help menu items */ --- > > 166a239 > 167a241 > 168a243 > 169a245 > 170a247 > 173c250,251 < /* attach menubar to frame */ --- > > 176c254,263 < /* disable yet unimplemented menu items */ --- > > > // fileNew.disable(); > > // filePrint.disable(); > > // fileClose.disable(); > > > 177a265 > 178a267 > 179a269 > 180a271 > 181a273 > 182a275 > 183a277 > 185a280,281 > > 186a283 > 187a285 > 188a287 > 189a289 > 193c293 < /* add the bde2JavaApplet at the center of the frame */ --- > 195c295 < /* resize the frame */ --- > 198c298,299 < /* display the frame */ --- > > 201c302,303 < /* call the "init1" member function of bde2JavaApplet class */ --- > > 203,204c305 < /* start the applet by the applet's "start" member function < */ --- > 207c308,311 < applet.repaint(); /* redraw the applet */ --- > > > applet.repaint(); > 209a314,315 > > 211,216c317,319 < *

< * Method: public boolean handleEvent()
< * < * Description: event handler for bdeAppletFrame
< * Handles selection of menu items and < * WINDOW_DESTROY events.
--- > > * Method: public boolean handleEvent() > 218c321,323 < * Class: bdeAppletFrame

--- > > * Description: > 220c325,327 < * Modified by: Hua Ren, 97s523 042797 --- > > * Class: bdeAppletFrame > 222,224c329 < * @param Event evt, the event generated. < * @return boolean returns true. < * @exception None --- > 225a331 > 226a333 > 228c335 < /* the event handler function for the frame */ --- > 229a337 > 231c339 < /* If the menu was chosen */ --- > 232a341 > 234c343 < /* get the label on the item chosen */ --- > 235a345 > 236a347 > 237a349 > 239,240d350 < /* If exit is chosen */ < } 242,244d351 < if(label.equals("New...")) < { < /* if "New" was chosen.As yet unimplemented */ 247c354,357 < if(label.equals("Current Graph..")) --- > > > if ( (label.equals("New")) || (label.equals("Close")) ) > 249,251c359,361 < boolean PsCurrGraph = true; < outputPostScriptFile(bdeApplet.FileName.substring(0, (bdeApplet.FileName.length()-4)),PsCurrGraph); < /* If "Print As PS" was chosen, call the outputPostScriptFile() function */ --- > > bdeApplet.clearCanvas(); > 253c363,367 < if(label.equals("All Graphs..")) --- > > > > if(label.equals("Print...")) > 256,258c370,371 < boolean PsCurrGraph = false; < outputPostScriptFile(bdeApplet.FileName.substring(0, (bdeApplet.FileName.length()-4)),PsCurrGraph); < /* If "Print As PS" was chosen, call the outputPostScriptFile() function */ --- > outputPostScriptFile(bdeApplet.FileName.substring(0, (bdeApplet.FileName.length()-4))); > 261,266c374,377 < /* The follwoing sections were added or modified < * by Hua Ren, 97s523, 042797 < */ < /* if "Open" was chosen */ < if(label.equals("Open DATA File...")) < /* if "Open DATA File..." was chosen */ --- > > > if(label.equals("Open...")) > 267a379 > 269a382,383 > > 271c385 < /* create a file chooser dialog for choosing the file */ --- > 272a387 > 274c389 < /* set filter to "*.dat" */ --- > 275a391 > 276a393 > 278a396,397 > > 280d398 < /* show the file chooser */ 281a400,401 > > 283c403 < /* if a file was chosen , get the filename and path */ --- > 284a405 > 285a407 > 287a410,411 > > 288a413 > 289a415 > 291c417,418 < /* call the load() method of bde2JavaApplet */ --- > > 293a421 > 297,303d424 < if(label.equals("Save")) < /* If "Save" is chosen..*/ < { < outputFile(bdeApplet.FileName); < /* Call outputFile function */ < bSaveQuery = false; < } 305d425 < //Hua042697====== 307d426 < /* if "Save As..." was chosen..*/ 309a429 > 311c431,433 < /* create a new file chooser dialog */ --- > > > 312a435 > 313a437 > 315a440,441 > > 317a444,445 > > 319d446 < /* show filechooser dialog */ 320a448,449 > > 322c451 < /* get filename and path */ --- > 323a453 > 324a455 > 328,332d458 < /* Due to the fact that AWT behaviors differently in different platform, < * a filter for FileName is needed to give a correct < * name to the bdeApplet and associated output files. < * Hua Ren, 97s523 < */ 335d460 < /* If use cs PC lib, please close above sentance and open next one.*/ 337,338d461 < //bdeApplet.FileName = FileName.substring(0,(FileName.length()-4)); < 340c463 < /* call the "outputFile" function */ --- > 341a465 > 345,354c469,471 < // === Hua Ren 041297: < /* if "Print As GIF File" was chosen..*/ < if(label.equals("Print Current Graph")) < { < boolean gifCurrGraph = true; < System.out.println("Start saving to gif"); < outputGif(bdeApplet.FileName.substring(0, (bdeApplet.FileName.length()-4)),gifCurrGraph); < /* call the "outputGif" function */ < } < if(label.equals("Print All Graphs")) --- > > if(label.equals("Save")) > 356,359c473,476 < boolean gifCurrGraph = false; < System.out.println("Start saving to gif"); < outputGif(bdeApplet.FileName.substring(0, (bdeApplet.FileName.length()-4)),gifCurrGraph); < /* call the "outputGif" function */ --- > > outputFile(bdeApplet.FileName); > > bSaveQuery = false; 362a480,481 > > 364c483 < /* If "About BDE" was chosen ..*/ --- > 365a485 > 367c487 < /* display infabout BDE */ --- > 368a489 > 369a491 > 370a493 > 371a495 > 372a497 > 374,375c499,501 < bdeReference.AUTHOR_NAMES + "\n" + < bdeReference.MODIFY_HISTORY); --- > > bdeReference.AUTHOR_NAMES); > 376a503 > 378a506,507 > > 380d508 < } /* end of conditional for event target MenuItem */ 381a510,512 > } > > 384c515 < /* Else, if a WINDOW_DESTROY event was generated */ --- > 385a517 > 387a520,521 > > 388a523 > 389a525 > 390a527 > 391a529 > 392a531 > 393a533 > 394a535 > 395a537 > 396a539 > 397a541 > 398a543 > 402c547 < /* else call "Frame" super class's event handler */ --- > 404a550,551 > > 406,413c553,555 < * Method: public void outputGif(Graphics g, String file_name) < * < * Description: Save graph into a gif file < * < * Class: bdeAppletFrame < * < * Author: Hua Ren, 97s523, April 1997 < * --- > > * Method: public void outputPostScriptFile() > 415,420d556 < *************************************************************/ < public void outputGif(String file_name, boolean gifCurrGraph) < { < /** After Receiving Image generated by "double-buffering" < Call GIFEncoder to encode Image into GIF format and < save to a GIF file. 422,423c558 < GIFEncoder has two constructs: one use RGB byte arrays < and one use Image image. --- > * Description: 425,426c560 < Hua Ren 97s523 < */ --- > * 428,433c562 < if(gifCurrGraph) < { < String gifFileName = file_name < + ((bdeGraph)bdeApplet.panel.elementAt(bdeApplet.bdeGraphCurrent)).Name < + ".gif"; < Image gifImage = ((bdeGraph)bdeApplet.panel.elementAt(bdeApplet.bdeGraphCurrent)).offscreen; --- > * Class: bdeAppletFrame 435,452c564 < try < { < //GIFEncoder encode = new GIFEncoder(red, green, blue); < GIFEncoder encode = new GIFEncoder(gifImage); < //OutputStream output = new BufferedOutputStream(new FileOutputStream(file_name)); < OutputStream output = new BufferedOutputStream(new FileOutputStream(gifFileName)); < encode.Write(output); < } < catch (AWTException e) < { < String err = e.toString(); < System.out.println(err); < } < catch (IOException e) < { < String err = e.toString(); < System.out.println(err); < } --- > * 454,459c566 < System.out.println("GIF File Saving Accomplished"); < } < else < { < for(int nIndexGraph = 0; nIndexGraph < bdeApplet.panel.size(); nIndexGraph++) < { --- > * 461,464c568 < String gifFileName = file_name < + ((bdeGraph)bdeApplet.panel.elementAt(nIndexGraph)).Name < //String gifFileName = ((bdeGraph)bdeApplet.panel.elementAt(nIndexGraph)).Name < + ".gif"; --- > *************************************************************/ 466c570 < Image gifImage = ((bdeGraph)bdeApplet.panel.elementAt(nIndexGraph)).offscreen; --- > void outputPostScriptFile(String PathFileName) 468,480d571 < try < { < //GIFEncoder encode = new GIFEncoder(red, green, blue); < GIFEncoder encode = new GIFEncoder(gifImage); < OutputStream output = new BufferedOutputStream(new FileOutputStream(gifFileName)); < encode.Write(output); < } < catch (AWTException e) < { < String err = e.toString(); < System.out.println(err); < } < catch (IOException e) 482,489d572 < String err = e.toString(); < System.out.println(err); < } < < System.out.println("GIF File: " + gifFileName + " Saving Accomplished"); < } < System.out.println("All graphs have been saved."); < } 491c574 < } /* outputGif() - end */ --- > String header = "%!PS-Adobe \n %%Creator: bde \n %%DocumentFonts: Helvetica \n %%Pages: 1 \n %%Title: "; 492a576 > String pfile = PathFileName + ".ps \n"; 494,517d577 < /************************************************************* < *

<     * Method: public void outputPostScriptFile() 
<     *
<     * Description: Creates a postscript file for the current graph
<     *              uses the fprint() methods of the various classes.
<     *
<     * Class: bdeAppletFrame
<     * @param String  PathFileName, the path and filename for the
<     * Postscript file.
<     * @param boolean  PsCurrGraph, the flag to indicate whether to
<     * print current graph or all the graphs
<     * @returns None
<     * @exception IOException
<     * Modified by: Aditya Vedula 12/10/96
<     *
<     *************************************************************/
<     void outputPostScriptFile(String PathFileName, boolean PsCurrGraph)
<     /* Output postscript file function */
<     {
<     /* create header information */
<         String header = "%!PS-Adobe \n %%Creator: bde \n %%DocumentFonts: Helvetica \n %%Pages: 1 \n %%Title: "; /** Font information */
<         String pfile = PathFileName + ".ps \n";/** file extension */
<     /* Ps macro definitions to do ps conversion */
518a579
> 
519a581
> 
520a583
> 
521a585
> 
522a587
> 
523a589
> 
524a591
> 
525a593
> 
526a595
> 
527a597
> 
528a599
> 
529a601
> 
530a603
> 
531a605
> 
532a607
> 
533a609
> 
534a611
> 
535a613
> 
536a615
> 
537a617
> 
538a619
> 
539a621
> 
540a623
> 
541a625
> 
542a627
> 
543a629
> 
544a631
> 
545a633
> 
546a635
> 
547a637
> 
548a639
> 
549a641
> 
550a643
> 
551a645
> 
552a647
> 
553a649
> 
554a651
> 
555a653
> 
556a655
> 
557a657
> 
558a659
> 
559a661
> 
560a663
> 
561a665
> 
562a667
> 
563a669
> 
564a671
> 
565a673
> 
566a675
> 
567a677
> 
568a679
> 
569a681
> 
570a683
> 
571a685
> 
572a687
> 
573a689
> 
574a691
> 
575a693
> 
576a695
> 
577a697
> 
578a699
> 
579a701
> 
580a703
> 
581a705
> 
582a707
> 
583a709
> 
584a711
> 
585a713
> 
586a715
> 
587a717
> 
588a719
> 
589a721
> 
590a723
> 
591a725
> 
592a727
> 
593a729
> 
594a731
> 
595a733
> 
596a735
> 
597a737
> 
598a739
> 
599a741
> 
600a743
> 
601a745
> 
602a747
> 
603a749
> 
604a751
> 
605a753
> 
606a755
> 
607a757
> 
608a759
> 
609a761
> 
610a763
> 
611a765
> 
612a767
> 
613a769
> 
614a771
> 
615a773
> 
616a775
> 
617a777
> 
618a779
> 
619a781
> 
620a783
> 
621a785
> 
622a787
> 
623a789
> 
624a791
> 
625a793
> 
626a795
> 
627a797
> 
628a799
> 
629a801
> 
630a803
> 
631a805
> 
632a807
> 
635a811,813
> 
> 
> 
637,638c815,819
<         *   The string body defines some properties of the document, 
<         *   such as font, page orientation, and line width.
---
> 
>         *   The string body defines some properties of the document, such as
> 
>         *   font, page orientation, and line width.
> 
639a821
> 
640a823
> 
643a827,829
> 
> 
> 
644a831
> 
645a833
> 
646a835
> 
648,660c837,840
<         int nIndexGraph = 0;
<         String PsFileName;
< while(nIndexGraph < bdeApplet.panel.size())
< {
< if(PsCurrGraph)
<         {
<         PsFileName = PathFileName+((bdeGraph)bdeApplet.panel.elementAt(bdeApplet.bdeGraphCurrent)).Name;/* Filename for the file */
<         nIndexGraph = bdeApplet.bdeGraphCurrent;
<         }
< else 
<         { 
<         PsFileName = PathFileName+((bdeGraph)bdeApplet.panel.elementAt(nIndexGraph)).Name;
<         }
---
> 
> 
> 
>         PathFileName = PathFileName +((bdeGraph)bdeApplet.panel.elementAt(bdeApplet.bdeGraphCurrent)).Name;
661a842,843
> 
> 
663,664c845,847
<             FileOutputStream fileOut = new FileOutputStream(PsFileName + ".ps");
<    /* open stream for output file */
---
> 
>             FileOutputStream fileOut = new FileOutputStream(PathFileName + ".ps");
> 
666c849
<    /* File handle for the output file */
---
> 
667a851
> 
669,672c853,859
<     *   The string header contains the header comments of the 
<     *   postscript file. It specifies some attributes, such as the
<     *   program which created the file and the document's
<     *   number of pages.
---
> 
>             *   The string header contains the header comments of the postscript file.
> 
>             *   It specifies some attributes, such as the program which created the 
> 
>             *   file and the document's number of pages.
> 
673a861
> 
675c863
<             /* write the ps header */
---
> 
676a865
> 
677a867
> 
678a869
> 
680,681d870
<             aDO.writeBytes("/Helvetica 12 SetFont" + "\n" + "\n"); 
<             /* set default font */
682a872
>             aDO.writeBytes("/Helvetica 12 SetFont" + "\n" + "\n");
684d873
<         //   int nIndexGraph = bdeApplet.bdeGraphCurrent;
686,687d874
<         /* Dump out the HG information */
<         aDO.writeBytes(((bdeGraph)bdeApplet.panel.elementAt(nIndexGraph)).fprint());
689a877,881
> 
>             for(int nIndexGraph = 0; nIndexGraph < 1; nIndexGraph++)
> 
>             {
> 
691c883
<     /* for each node */
---
> 
692a885
> 
694c887,889
<     /* use the fprint() method of the bdeNode class */
---
> 
>                 }
> 
696a892,893
> 
> 
697a895,899
> 
>             for(int nIndexGraph = 0; nIndexGraph < 1; nIndexGraph++)
> 
>             {
> 
699c901
<         /* for each link */
---
> 
700a903
> 
702c905,909
<         /* Use the fprint() method of bdeLink class */
---
> 
>                   //aDO.writeBytes(((bdeNode)((bdeGraph)bdeApplet.panel.elementAt(nIndexGraph)).nodes.elementAt(nIndexNode)).fprint());
> 
>                 }
> 
704a912,913
>   
> 
706,708c915,917
<         /* for each graph */
<                 for(int nIndexCaption = 0; nIndexCaption < ((bdeGraph)bdeApplet.panel.elementAt(nIndexGraph)).captions.size(); nIndexCaption++) 
<         /* For each caption */
---
> 
>             for(int nIndexGraph = 0; nIndexGraph < 1; nIndexGraph++)
> 
710,712d918
<                     aDO.writeBytes( ((bdeGraphCaption)((bdeGraph)bdeApplet.panel.elementAt(nIndexGraph) ).captions.elementAt(nIndexCaption)).fprint());
<         /* Use the fprint() method of bdeGRaphCaption */
<                 }
714d919
<         /* Dump out the GX Class. */
716,717c921
<         {
< for(int nIndexText = 0; nIndexText < ((bdeGraphCaption)((bdeGraph)bdeApplet.panel.elementAt(nIndexGraph)).captions.elementAt(nIndexCaption)).captionText.size(); nIndexText++)
---
> 
719c923,925
<         aDO.writeBytes(((bdeCaptionText)((bdeGraphCaption)((bdeGraph)bdeApplet.panel.elementAt(nIndexGraph)).captions.elementAt(nIndexCaption)).captionText.elementAt(nIndexText)).fprint());
---
> 
>                     aDO.writeBytes( ((bdeGraphCaption)((bdeGraph)bdeApplet.panel.elementAt(nIndexGraph) ).captions.elementAt(nIndexCaption)).fprint());
> 
720a927
> 
722a930,931
> 
> 
724d932
<         /* write the trailer */
725a934,935
> 
> 
727c937,940
<         /* close the file */
---
> 
> 
> 
>             System.out.println(" Printing to postscript file: " + PathFileName + ".ps" + " is complete.");
729d941
<             System.out.println(" Printing to postscript file: " + PsFileName +".ps"+ " is complete.");
731c943
<         /* Catch if any exceptions are generated */
---
> 
732a945
> 
733a947
> 
734a949
> 
735a951
> 
736a953
> 
737a955
> 
738a957
> 
740,742c959
<         if(PsCurrGraph) break;
<         else nIndexGraph++;
<         } /* While */
---
> 
743a961
> 
745a964,965
> 
> 
747,748c967,973
<     * 

< * Method: public void outputFile()
--- > > * Method: public void outputFile() > > * > > * Description: > 750c975,977 < * Description: Creates a new bde ".dat" data file
--- > > * Class: bdeAppletFrame > 752,755c979 < * Class: bdeAppletFrame
< * @param String PathFileName, the filename of the file < * @returns None < * @exception IOException --- > 756a981 > 757a983 > 759,760c985 < /* This function is called when the save option is chosen from < the menu */ --- > 761a987 > 764,766c990,993 < /* open the output file stream */ < //FileOutputStream fileOut = new FileOutputStream(bdeApplet.FileName); < FileOutputStream fileOut = new FileOutputStream(PathFileName); --- > > > FileOutputStream fileOut = new FileOutputStream(bdeApplet.FileName); > 768a996,997 > > 770c999,1000 < /* Get date */ --- > > 772a1003 > 773a1005 > 775a1008,1009 > > 776a1011 > 777a1013 > 778a1015 > 780a1018,1019 > > 782a1022,1023 > > 784c1025 < /* for each graph */ --- > 785a1027 > 786a1029 > 787a1031 > 788a1033 > 790c1035 < /* use the getRow() method of bdeGraph*/ --- > 791a1037 > 793a1040,1041 > > 794a1043 > 796c1045 < /* for each graph */ --- > 797a1047 > 799c1049 < /* for each of the nodes */ --- > 800a1051 > 801a1053 > 803c1055 < /* use the getRow() method of bdeNode */ --- > 805c1057 < /* add line seperator */ --- > 806a1059 > 808a1062,1063 > > 809a1065 > 810a1067 > 811a1069 > 813c1071 < /* for each node */ --- > 814a1073 > 816c1075 < /* for each node attribute */ --- > 817a1077 > 821c1081 < /* Use the getRow() of bdeNodeAttribute */ --- > 822a1083 > 823a1085 > 824a1087 > 826a1090,1091 > > 827a1093 > 829c1095 < /* For each graph */ --- > 830a1097 > 832c1099 < /* for each link */ --- > 833a1101 > 834a1103 > 836c1105 < /* use the getRow() method */ --- > 837a1107 > 838a1109 > 840a1112,1113 > > 841a1115 > 843c1117 < /* for each graph */ --- > 844a1119 > 846c1121 < /* for each link */ --- > 847a1123 > 849c1125 < /* for each HP */ --- > 850a1127 > 851a1129 > 853c1131 < /* use the getRow() method of bdeBendPoint */ --- > 854a1133 > 855a1135 > 856a1137 > 858a1140,1141 > > 859a1143 > 861c1145 < /* for each graph */ --- > 862a1147 > 864c1149 < /* for each link */ --- > 865a1151 > 867c1153 < /* for each HI */ --- > 868a1155 > 869a1157 > 871c1159 < /* use the getRow() method of bdeLinkCaption */ --- > 872a1161 > 873a1163 > 874a1165 > 876a1168,1169 > > 877a1171 > 879c1173 < /* for each graphs */ --- > 880a1175 > 881a1177 > 883c1179 < /* for each caption */ --- > 884a1181 > 885a1183 > 887c1185 < /* use the getRow() method of bdeGraphCaption */ --- > 889a1188,1189 > > 890a1191 > 892a1194,1195 > > 893a1197 > 895c1199 < /* for each graph */ --- > 896a1201 > 897a1203 > 898a1205 > 900c1207 < /* for each caption */ --- > 901a1209 > 902a1211 > 904c1213 < /* use getRow() method of bdeCaptionText */ --- > 905a1215 > 906a1217 > 907a1219 > 909a1222,1223 > > 911c1225 < /* close the file */ --- > 912a1227 > 913a1229 > 914a1231 > 915a1233 > 916a1235 > 917a1237 > 918a1239 > 919a1241 > 920a1243 > 921a1245 > 923a1248,1249 > > 926,931c1252,1253 < /****************************************************************** < *

< * Class: EndsWithFilter
< * Description: handles filename extensions
< * < ****************************************************************/ --- > > 933c1255 < /* class to handle filename extension */ --- > 934a1257 > 936c1259 < /* filename extension string */ --- > 938,948c1261,1263 < /********************************************************************* < * Method: EndsWithFilter
< * Description: Constructor method for the class.
< * Class: EndsWithFilter < * @param String extension, the filename extension < * @returns None < * @exception None < * < ******************************************************************/ < public EndsWithFilter(String extension) /* constructor < method , takes the extension string as parameter */ --- > > public EndsWithFilter(String extension) > 949a1265 > 950a1267 > 951a1269 > 954,963c1272,1273 < /***************************************************************** < *

< * Method: public boolean accept()
< * Description: returns true if extension is ".dat"
< * @param File dir, not used. < * @param String name, name of the file. < * @returns boolean true if filename ends with "dat" and false < * otherwise. < * @exception None < *****************************************************************/ --- > > 965c1275 < /* return true or false based on filename extension */ --- > 966a1277 > 967a1279 > 968a1281 > 970c1283 < /* if filename ends with a "dat", retuern true */ --- > 971a1285 > 972a1287 > 973a1289 > 974a1291 > Only in .: bdeBendPoint.class diff -bitw ./bdeBendPoint.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeBendPoint.java 4,18d3 < < /* ********************************************************************/ < /** < *

<  * Class       : bdeBendPoint
<  * Description : This class is a child of the bdeLink class. It contains 
<  *               a reference to its HL parent as well as a relative location
<  *               of the bendpoint. It also contains the arrow attribute.
<  * @version      December 16, 1996
<  * @author       Zhigang Wang
<  * 
< */ < /* ********************************************************************/ < < 31,49c16,24 < < /* ***********************************************************************/ < /** < *
<  * Method       : move()
<  * Description  : Select and drag the bendpoint to the desired location
<  * State info   : evt.id = MOUSE_DRAG --> move bendpoint specified by mouse
<  *                evt.id = MOUSE_DOWN --> find bendpoint specified by mouse 
<  * Class        : bdeBendPointbde
<  * 
< * @param x window coordinate < * @param y window coordinate < * @param evt evt.id < * @param parent graph < * @return none < * @exception none < */ < /* **********************************************************************/ < --- > /************************************************************* > > * Method: public int Move() > > * > > * Description: > > * > > * Class: bdeBendPoint > > * > > * > > *************************************************************/ > 93,111c68,76 < < /* ***********************************************************************/ < /** < *
<  * Method       : Delete()
<  * Description  : Delete the bendpoint's HP record and the link will reappear
<  *                as if the desired location for the bendpoint
<  * State info   : evt.id = MOUSE_DOWN --> delete bendpoint specified by mouse
<  * Class        : bdeBendPointbde
<  * 
< * @param x window coordinate < * @param y window coordinate < * @param evt evt.id < * @param parent graph < * @return none < * @exception none < */ < /* **********************************************************************/ < --- > /************************************************************* > > * Method: public void Delete() > > * > > * Description: > > * > > * Class: bdeBendPoint > > * > > * > > *************************************************************/ > 141,147c106,110 < < < /* ************************************************************/ < /** < *
<     * Method       : Select()
<     * Description  : Not implemented
---
>     /*************************************************************
> 
>     * Method: public void Select()
> 
>     *
> 
>     * Description: 
> 
>     *
> 
149,151c112,114
<     * 
< */ < /* ************************************************************/ --- > * > > * > > *************************************************************/ > 157,161c120,124 < /* ************************************************************/ < /** < *
<     * Method       : Resize()
<     * Description  : Not implemented
---
>     /*************************************************************
> 
>     * Method: public void Resize()
> 
>     *
> 
>     * Description: 
> 
>     *
> 
163,166c126,128
<     * 
< */ < /* ************************************************************/ < --- > * > > * > > *************************************************************/ > 172,191c134,142 < < < /* ***********************************************************************/ < /** < *
<  * Method       : Restyle()
<  * Description  : Change bendpoint line style
<  * State info   : evt.id = MOUSE_DOWN --> change bendpoint line style.
<  *                Three different styles available
<  * Class        : bdeBendPointbde
<  * 
< * @param x window coordinate < * @param y window coordinate < * @param evt evt.id < * @param parent graph < * @return none < * @exception none < */ < /* **********************************************************************/ < --- > /************************************************************* > > * Method: public void Restyle() > > * > > * Description: > > * > > * Class: bdeBendPoint > > * > > * > > *************************************************************/ > 233,251c184,192 < < /* ***********************************************************************/ < /** < *
<  * Method       : Create()
<  * Description  : Create a new bendpoint halfway between the one you 
<  *                selected and the next one toward the link destination
<  * State info   : evt.id = MOUSE_UP --> insert a bendpoint into specified link
<  * Class        : bdeBendPointbde
<  * 
< * @param x window coordinate < * @param y window coordinate < * @param evt evt.id < * @param parent graph < * @return none < * @exception none < */ < /* **********************************************************************/ < --- > /************************************************************* > > * Method: public void Create() > > * > > * Description: > > * > > * Class: bdeBendPoint > > * > > * > > *************************************************************/ > 288,306c229,237 < /* ***********************************************************************/ < /** < *
<  * Method       : Create4()
<  * Description  : Increment the object primary key and update HP record
<  * Class        : bdeBendPointbde
<  * 
< * @param parent graph < * @param x window coordinate < * @param y window coordinate < * @param nPosition location of the bendpoint < * @param Pname parent name < * @param LinePattern line pattern < * @return none < * @exception none < */ < /* **********************************************************************/ < < --- > /************************************************************* > > * Method: Create() > > * > > * Description: > > * > > * Class: bdeBendPoint > > * > > * > > *************************************************************/ > 325,329c256,260 < /* ************************************************************/ < /** < *
< * Method       : addToParent() 
< * Description  : Add strRow and location of the bendpoint to the parent 
---
>     /*************************************************************
> 
>     * Method: public void addToParent(String strRow, int nPosition)
> 
>     *
> 
>     * Description: 
> 
>     *
> 
331,338c262,264
< * 
< * @param       strRow returned by getRow
< * @param       parent graph
< * @param       nPosition location of the bendpoint
< * @return      none
< */
< /* ************************************************************/
< 
---
>     *
> 
>     *
> 
>     *************************************************************/
> 
384,386c310
< /* ************************************************************/
< /**
< * 
---
>     /*************************************************************
> 
388c312,314
< * Description  : Retrive data from .dat file
---
>     *
> 
>     * Description: 
> 
>     *
> 
390,395c316,318
< * 
< * @param none < * @return strRow - name, coordinates and line pattern < */ < /* ************************************************************/ < --- > * > > * > > *************************************************************/ > Only in .: bdeCaptionText.class diff -bitw ./bdeCaptionText.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeCaptionText.java 3,5c3,4 < /* *************************************************************************/ < /** < *
---
> 
> 
> /**************************************************************************
> 
7,12c6,12
< * Description   : It is a text object that contains the information
< *                 needed to display the Caption for the Graph.
< *                 Some of the methods are not being implemented.
< * 
< */ < /* *************************************************************************/ --- > * > > * Description: Link class > > * > > * > > * > > * > > *************************************************************************/ > 25,55d24 < /* *************************************************************************/ < /** < *
 
< * Method       : draw()
< * Description  : Draw out the Caption according to the parent graph position
< * Class        : bdeCaptionText
< * 
< * @param < *
< * g is the object of class Graphics to draw the Caption in a rectangle.
< * 
< * @param < *
< * nParentX gives the middle-x-position of the parent graph.
< * 
< * @param < *
< * nParentY gives the middle-y-position of the parent graph.
< * 
< * < * @return < *
< * none
< * 
< * < * @exception < *
< * none
< * 
< */ < /* *************************************************************************/ 56a26,34 > /************************************************************* > > * Method: public void draw(Graphics g, int nParentX, int nParentY) > > * > > * Description: > > * > > * Class: bdeCaptionText > > * > > * > > *************************************************************/ > 75,77c53,54 < /* *************************************************************************/ < /** < *
 
---
> 
> 
>     /*************************************************************
> 
79c56,58
< * Description  : Not currently implemented
---
>     *
> 
>     * Description: 
> 
>     *
> 
81,84c60,62
< * 
< */ < /* *************************************************************************/ < --- > * > > * > > *************************************************************/ > 90,93c68 < < /* *************************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
95c70,72
< * Description  : Not currently implemented
---
>     *
> 
>     * Description: 
> 
>     *
> 
97,100c74,76
< * 
< */ < /* *************************************************************************/ < --- > * > > * > > *************************************************************/ > 106,109c82 < < /* *************************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
111c84,86
< * Description  : Not currently implemented
---
>     *
> 
>     * Description: 
> 
>     *
> 
113,116c88,90
< * 
< */ < /* *************************************************************************/ < --- > * > > * > > *************************************************************/ > 122,124c96 < /* *************************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
126c98,100
< * Description  : Not currently implemented
---
>     *
> 
>     * Description: 
> 
>     *
> 
128,131c102,104
< * 
< */ < /* *************************************************************************/ < --- > * > > * > > *************************************************************/ > 137,140c110 < < /* *************************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
142c112,114
< * Description  : Not currently implemented
---
>     *
> 
>     * Description: 
> 
>     *
> 
144,147c116,118
< * 
< */ < /* *************************************************************************/ < --- > * > > * > > *************************************************************/ > 153,178c124,132 < /* *************************************************************************/ < /** < *
 
< * Method       : GetRow()
< * Description  : It is being called in bde2JavaApplet class to display
< *                a string which contains information of the bdeCaptionText
< *                object.
< * Class        : bdeCaptionText
< * 
< * @param < *
< * none
< * 
< * < * @return < *
< * returns a string of text with information like Name , ParentName,
< * x-position, y-position, width and height of the graph.
< *
< * @exception
< * 
< * none
< * 
< */ < /* *************************************************************************/ < --- > /************************************************************* > > * Method: public String getRow() > > * > > * Description: Returns a single data record for a node object. > > * > > * Class: bdeNode > > * > > * > > *************************************************************/ > 197,244c151,159 < /********************************************************************** < *
<  * Method: fprint()
<  * Description: Returns the postscript string for bdeCaptionText
<  * Class: bdeCaptionText
<  * @param None
<  * @return String PostScriptString which contains the Graph Caption
<  * @exception None
<  * 
< *********************************************************************/ < public String fprint() < { < int widthHalf = width/2; /* Get half of the width */ < int heightHalf = height/2; /* Get half of the height */ < < String PostScriptString = new String(" "); /* create postscript string */ < PostScriptString = PostScriptString+" "+(x+widthHalf) + " " +(-(y+heightHalf))+" ("+Caption.trim()+") Text" + "\n"; < /* Add the Caption to the Postscriptstring */ < < return PostScriptString; /* return it */ < }/* end of fprint() */ < < /* *************************************************************************/ < /** < *
 
< * Method       : addToParent()
< * Description  : add the caption text to the parent graph
< * Class        : bdeCaptionText
< * 
< * @param < *
< * strRow gives the caption text characteristic including Name, ParentName,
< * x-position, y-position, width and height.
< * 
< * parentGraph gives the graph the caption text going to add to. < *
< *
< * @return
< * 
< * returns a string of text with information like Name , ParentName,
< * x-position, y-position, width and height of the graph.
< *
< * @exception
< * 
< * none
< * 
< */ < /* *************************************************************************/ --- > /************************************************************* > > * Method: public void addToParent(String strRow) > > * > > * Description: > > * > > * Class: bdeGraph > > * > > * > > *************************************************************/ > 285,289c200,204 < /* *************************************************************************/ < /** < *
 
< * Method       : Create()
< * Description  : Not currently implemented
---
>     /*************************************************************
> 
>     * Method:  Create(bdeGraph parentGraph, int x, int y)
> 
>     *
> 
>     * Description: 
> 
>     *
> 
291,293c206,208
< * 
< */ < /* *************************************************************************/ --- > * > > * > > *************************************************************/ > 348,349d262 < < Only in .: bdeGraph.class diff -bitw ./bdeGraph.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeGraph.java 1,3d0 < import java.io.*; < import java.awt.*; < import java.awt.image.*; 4a2,4 > > import java.awt.*; > 7a8 > 8a10 > 9a12 > 10a14 > 13a18 > 14a20 > 15a22 > 16a24 > 17a26,28 > > * > 18a30 > 20c32 < * Modified by: Hua Ren, 97s523, 050297 --- > 21a34 > 22a36 > 23a38 > 24a40 > 25a42 > 26a44 > 27a46 > 28a48 > 29a50 > 30a52 > 31a54 > 32a56 > 34a59,60 > > 35a62 > 37a65,66 > > 38a68 > 39a70 > 40a72 > 41a74 > 42a76 > 43a78 > 45a81,82 > > 46a84 > 47a86 > 48a88 > 49a90 > 50a92 > 52a95,96 > > 53a98 > 55a101,102 > > 56a104 > 57a106 > 58a108 > 60a111,112 > > 61a114 > 62a116 > 63a118 > 64a120 > 65a122 > 66a124 > 67a126 > 68a128 > 69a130 > 70a132 > 71a134 > 72a136 > 73a138 > 75a141,142 > > 77a145,146 > > 78a148 > 80a151,152 > > 81a154 > 82a156 > 83a158 > 85a161,162 > > 87a165,166 > > 88a168 > 89a170 > 90a172 > 91a174 > 92a176 > 93a178 > 94a180 > 95a182 > 96a184 > 97a186 > 98a188 > 99a190 > 101a193,194 > > 102a196 > 103a198 > 104a200 > 105a202 > 106a204 > 107a206 > 108a208 > 109a210 > 110a212 > 111a214 > 112a216 > 114a219,220 > > 115a222 > 116a224 > 117a226 > 118a228 > 119a230 > 120a232 > 122a235,236 > > 123a238 > 125a241,242 > > 126a244 > 127a246 > 128a248 > 129a250 > 130a252 > 131a254 > 132a256 > 133a258 > 134a260 > 135a262 > 136a264 > 137a266 > 138a268 > 139a270 > 140a272 > 141a274 > 143a277,278 > > 144a280 > 146a283,284 > > 147a286 > 148a288 > 149a290 > 150a292 > 151a294 > 152a296 > 153a298 > 154a300 > 155a302 > 156a304 > 157a306 > 158a308 > 159a310 > 161a313,314 > > 162a316 > 163a318 > 164a320 > 165a322 > 166a324 > 167a326 > 168a328 > 169a330 > 170a332 > 171a334 > 172a336 > 173a338 > 175a341,342 > > 176a344 > 177a346 > 178a348 > 179a350 > 180a352 > 181a354 > 182a356 > 183a358 > 184a360 > 185a362 > 186a364 > 187a366 > 188a368 > 189a370 > 190a372 > 191a374 > 192a376 > 194a379,380 > > 195a382 > 197a385,386 > > 198a388 > 199a390 > 200a392 > 201a394 > 202a396 > 203a398 > 204a400 > 205a402 > 206a404 > 207a406 > 208a408 > 209a410 > 210a412 > 211a414 > 212a416 > 213a418 > 214a420 > 216a423,424 > > 217a426 > 219a429,430 > > 220a432 > 221a434 > 222a436 > 223a438 > 224a440 > 225a442 > 226a444 > 227a446 > 228a448 > 229a450 > 230a452 > 231a454 > 232a456 > 233a458 > 234a460 > 235a462 > 236a464 > 237a466 > 238a468 > 239a470 > 240a472 > 242a475,476 > > 243a478 > 245a481,482 > > 246a484 > 247a486 > 248a488 > 249a490 > 250a492 > 251a494 > 252a496 > 253a498 > 254a500 > 255a502 > 256a504 > 257a506 > 258a508 > 259a510 > 260a512 > 261a514 > 262a516 > 264a519,520 > > 265a522 > 267a525,526 > > 268a528 > 269a530 > 270a532 > 271a534 > 272a536 > 273a538 > 274a540 > 275a542 > 276a544 > 277a546 > 278a548 > 279a550 > 281a553,554 > > 282a556 > 283a558 > 284a560 > 285a562 > 286a564 > 287a566 > 288a568 > 289a570 > 290a572 > 292a575,576 > > 293a578 > 294a580 > 296a583,584 > > 298a587,588 > > 300a591,592 > > 301a594 > 302a596 > 303a598 > 305a601,602 > > 307a605,606 > > 308a608 > 310a611,612 > > 311a614 > 312a616 > 313a618 > 314a620 > 315a622 > 316a624 > 317a626 > 318a628 > 319a630 > 320a632 > 321a634 > 322a636 > 323a638 > 325a641,642 > > 326a644 > 327a646 > 328a648 > 329a650 > 330a652 > 331a654 > 333a657,658 > > 334a660 > 336a663,664 > > 337a666 > 338a668 > 339a670 > 341a673,674 > > 343a677,678 > > 345a681,682 > > 346a684 > 348a687,688 > > 349a690 > 350a692 > 351a694 > 352a696 > 353a698 > 354a700 > 355a702 > 356a704 > 357a706 > 358a708 > 359a710 > 360a712 > 361a714 > 363a717,718 > > 364a720 > 365a722 > 366a724 > 367a726 > 368a728 > 369a730 > 370a732 > 371a734 > 372a736 > 373a738 > 375a741,742 > > 377a745,746 > > 378a748 > 379a750 > 381a753,754 > > 382a756 > 384a759,760 > > 385a762 > 386a764 > 387a766 > 388a768 > 389a770 > 390a772 > 391a774 > 392a776 > 393a778 > 394a780 > 395a782 > 397a785,786 > > 399a789,790 > > 400a792 > 401a794 > 402a796 > 403a798 > 404a800 > 405a802 > 407a805,806 > > 408a808 > 410a811,812 > > 411a814 > 412a816 > 413a818 > 414a820 > 415a822 > 416a824 > 417a826 > 419a829,830 > > 420a832 > 421a834 > 422a836 > 423a838 > 424a840 > 425a842 > 426a844 > 428a847,848 > > 429a850 > 431a853,854 > > 432a856 > 433a858 > 434a860 > 435a862 > 437a865,866 > > 439a869,870 > > 441a873,874 > > 442a876,878 > > > 443a880 > 444a882 > 445a884 > 446a886 > 447a888 > 448a890 > 449a892 > 450a894 > 451a896 > 452a898 > 453a900 > 454a902 > 455a904 > 456a906 > 457a908 > 459a911,912 > > 460a914 > 461a916 > 463a919,920 > > 464a922 > 465a924 > 467a927,928 > > 468a930 > 469a932 > 471a935,936 > > 472a938 > 473a940 > 475a943,944 > > 476a946 > 477a948 > 478a950 > 480a953,954 > > 481a956 > 483a959,960 > > 484a962 > 485a964 > 486a966 > 487a968 > 488a970 > 489a972 > 490a974 > 491a976 > 492a978 > 493a980 > 495a983,984 > > 496a986 > 497a988 > 498a990 > 499a992 > 501a995,996 > > 502a998 > 503a1000 > 505a1003,1004 > > 506a1006 > 507a1008 > 509a1011,1012 > > 510a1014 > 511a1016 > 513a1019,1020 > > 514a1022 > 515a1024 > 517a1027,1028 > > 518a1030 > 519a1032 > 520a1034 > 522a1037,1038 > > 523a1040 > 525a1043,1044 > > 526a1046 > 527a1048 > 528a1050 > 529a1052 > 530a1054 > 531a1056 > 532a1058 > 533a1060 > 534a1062 > 535a1064 > 536a1066 > 537a1068 > 538a1070 > 539a1072 > 540a1074 > 542a1077,1078 > > 543a1080 > 544a1082 > 546a1085,1086 > > 547a1088 > 548a1090 > 550a1093,1094 > > 551a1096 > 552a1098 > 554a1101,1102 > > 555a1104 > 556a1106 > 558a1109,1110 > > 559a1112 > 560a1114 > 561a1116 > 563a1119,1120 > > 564a1122 > 565a1124 > 566a1126 > 567a1128 > 568a1130 > 569a1132 > 570a1134 > 571a1136 > 572a1138 > 573a1140 > 574a1142 > 575a1144 > 576a1146 > 577a1148 > 578a1150 > 579a1152 > 580a1154 > 581a1156 > 582a1158 > 584a1161,1162 > > 585a1164 > 587a1167,1168 > > 588a1170 > 589a1172 > 590a1174 > 591a1176 > 592a1178 > 593a1180 > 594a1182 > 595a1184 > 596a1186 > 597a1188 > 598a1190 > 599a1192 > 600a1194 > 601a1196 > 602a1198 > 604a1201,1202 > > 605a1204 > 606a1206 > 608a1209,1210 > > 609a1212 > 610a1214 > 612a1217,1218 > > 613a1220 > 614a1222 > 616a1225,1226 > > 617a1228 > 618a1230 > 620a1233,1234 > > 621a1236 > 622a1238 > 623a1240 > 625a1243,1244 > > 626a1246 > 629a1250,1252 > > > 630a1254 > 631a1256 > 632a1258 > 633a1260 > 634a1262 > 635a1264 > 636a1266 > 637a1268 > 638a1270 > 639a1272 > 640a1274 > 641a1276 > 642a1278 > 643a1280 > 644a1282 > 646a1285,1286 > > 647a1288 > 648a1290 > 650a1293,1294 > > 651a1296 > 652a1298 > 654a1301,1302 > > 655a1304 > 656a1306 > 658a1309,1310 > > 659a1312 > 660a1314 > 662a1317,1318 > > 663a1320 > 664a1322 > 665a1324 > 667a1327,1328 > > 668a1330 > 670a1333,1334 > > 671a1336 > 672a1338 > 673a1340 > 674a1342 > 675a1344 > 676a1346 > 677a1348 > 678a1350 > 679a1352 > 680a1354 > 681a1356 > 682a1358 > 684a1361,1362 > > 685a1364 > 687a1367,1368 > > 688a1370 > 689a1372 > 690a1374 > 691a1376 > 693a1379,1380 > > 694a1382 > 695a1384 > 697a1387,1388 > > 698a1390 > 699a1392 > 701a1395,1396 > > 702a1398 > 703a1400 > 705a1403,1404 > > 706a1406 > 707a1408 > 709a1411,1412 > > 710a1414 > 711a1416 > 712a1418 > 714a1421,1422 > > 715a1424 > 716a1426 > 718a1429,1430 > > 719a1432 > 720a1434 > 722a1437,1438 > > 723a1440 > 724a1442 > 725a1444 > 726a1446 > 727a1448 > 728a1450 > 729a1452 > 730a1454 > 731a1456 > 732a1458 > 733a1460 > 734a1462 > 735a1464 > 736a1466 > 737a1468 > 739a1471,1472 > > 740a1474 > 742a1477,1478 > > 743a1480 > 744a1482 > 745a1484 > 746a1486 > 747a1488 > 748a1490 > 749a1492 > 750a1494 > 751a1496 > 752a1498 > 753a1500 > 754a1502 > 755a1504 > 756a1506 > 757a1508 > 759a1511,1512 > > 760a1514 > 761a1516 > 763a1519,1520 > > 764a1522 > 765a1524 > 767a1527,1528 > > 768a1530 > 769a1532 > 771a1535,1536 > > 772a1538 > 773a1540 > 775a1543,1544 > > 776a1546 > 777a1548 > 779a1551,1552 > > 780a1554 > 781a1556 > 782a1558 > 783a1560 > 785a1563,1564 > > 787a1567,1568 > > 788a1570 > 789a1572 > 790a1574 > 791a1576 > 792a1578 > 793a1580 > 794a1582 > 795a1584 > 796a1586 > 797a1588 > 798a1590 > 800a1593,1594 > > 801a1596 > 802a1598 > 803a1600 > 805a1603,1604 > > 807a1607,1608 > > 809a1611,1612 > > 811a1615,1616 > > 812a1618 > 813a1620 > 814a1622 > 815a1624 > 816a1626 > 817a1628 > 818a1630 > 819a1632 > 820a1634 > 821a1636 > 822a1638 > 824a1641,1642 > > 825a1644 > 826a1646 > 827a1648 > 829a1651,1652 > > 831a1655,1656 > > 833a1659,1660 > > 835a1663,1664 > > 836a1666 > 837a1668 > 838a1670 > 839a1672 > 840a1674 > 841a1676 > 842a1678 > 843a1680 > 844a1682 > 845a1684 > 846a1686 > 848a1689,1690 > > 849a1692 > 850a1694 > 851a1696 > 853a1699,1700 > > 854a1702 > 856a1705,1706 > > 858a1709,1710 > > 860a1713,1714 > > 861a1716 > 862a1718 > 863a1720 > 864a1722 > 865a1724 > 866a1726 > 867a1728 > 868a1730 > 869a1732 > 870a1734 > 871a1736 > 872a1738 > 873a1740 > 874a1742 > 876a1745,1746 > > 878a1749,1750 > > 879a1752 > 880a1754 > 881a1756 > 882a1758 > 883a1760 > 884a1762 > 886a1765,1766 > > 887a1768 > 888a1770 > 889a1772 > 890a1774 > 891a1776 > 892a1778 > 894a1781,1782 > > 895a1784 > 896a1786 > 897a1788 > 898a1790 > 899a1792 > 901a1795,1796 > > 903a1799,1800 > > 904a1802 > 905a1804 > 906a1806 > 908a1809,1810 > > 909a1812 > 910a1814 > 911a1816 > 912a1818 > 914a1821,1822 > > 915a1824 > 917a1827,1828 > > 918a1830 > 919a1832 > 920a1834 > 921a1836 > 922a1838 > 924a1841,1842 > > 925a1844 > 926a1846 > 927a1848 > 928a1850 > 929a1852 > 930a1854 > 932a1857,1858 > > 933a1860 > 935a1863,1864 > > 936a1866 > 937a1868 > 938a1870 > 939a1872 > 940a1874 > 941a1876 > 942a1878 > 943a1880 > 944a1882 > 945a1884 > 946a1886 > 948a1889,1890 > > 949a1892 > 950a1894 > 951a1896 > 952a1898 > 953a1900 > 954a1902 > 956a1905,1906 > > 958d1907 < } /* getRow() - end */ 960,974c1909 < /************************************************************************* < * Method: public String fprint() < * Description: Creates a postscript string to return the Author's name, < * date of modification and current working directory. < * Class: bdeGraph < * < * Modified by: Hua Ren, 97s523, 050397 < * < * @param None < * @return String PostScriptString, the postscript string to be printed out < * @exception None < *************************************************************************/ < public String fprint() < { < String PostScriptString = new String();/* create a new string */ --- > } /* getRow() - end */ 976,978d1910 < /* Position of Graph Label */ < int x_pos = 0; < int y_pos = -560; 980,983d1911 < PostScriptString = " " + x_pos + " " + y_pos + " " < +"( "+ Author +" "+ ModificationDate +" " < + System.getProperty("user.dir") + ") Text "+"\n"; < /* fill in the information about Author, current directory and date of modification */ 985,986d1912 < return PostScriptString;/* return the string */ < } 989a1916 > 990a1918 > 991a1920 > 992a1922 > 993a1924 > 994a1926 > 995a1928 > 996a1930 > 997a1932 > 998a1934 > 999a1936 > 1001a1939,1940 > > 1002a1942 > 1003a1944 > 1004a1946 > 1005a1948 > 1007a1951,1952 > > 1008a1954 > 1010a1957,1958 > > 1011a1960 > 1012a1962 > 1013a1964 > 1014a1966 > 1015a1968 > 1017a1971,1972 > > 1019a1975,1976 > > 1020a1978 > 1022a1981,1982 > > 1023a1984 > 1024a1986 > 1025a1988 > 1026a1990 > 1027a1992 > 1028a1994 > 1029a1996 > 1030a1998 > 1031a2000 > 1032a2002 > 1033a2004 > 1035a2007,2008 > > 1036a2010 > 1037a2012 > 1039a2015,2016 > > 1040a2018 > 1042a2021,2022 > > 1043a2024 > 1045a2027,2028 > > 1046a2030 > 1047a2032 > 1048a2034 > 1049a2036 > 1051a2039,2040 > > 1052a2042 > 1054a2045,2046 > > 1056a2049,2050 > > 1057a2052 > 1058a2054 > 1059a2056 > 1060a2058 > 1061a2060 > 1062a2062 > 1063a2064 > 1064a2066 > 1065a2068 > 1066a2070 > 1067a2072 > 1069a2075,2076 > > 1070a2078 > 1072a2081,2082 > > 1073a2084 > 1074a2086 > 1076a2089,2090 > > 1077a2092 > 1078a2094 > 1079a2096 > 1081a2099,2100 > > 1082a2102 > 1083a2104 > 1084a2106 > 1085a2108 > 1086a2110 > 1087a2112 > 1089a2115,2116 > > 1090a2118 > 1091a2120 > 1092a2122 > 1093a2124 > 1094a2126 > 1096a2129,2130 > > 1097a2132 > 1098a2134 > 1099a2136 > 1100a2138 > 1101a2140 > 1103a2143,2144 > > 1104a2146 > 1105a2148 > 1106a2150 > 1108a2153,2154 > > 1110a2157,2158 > > 1111a2160 > 1112a2162 > 1113a2164 > 1114a2166 > 1115a2168 > 1117a2171,2172 > > 1118a2174 > 1120a2177,2178 > > 1122a2181,2182 > > 1123a2184 > 1124a2186 > 1125a2188 > 1126a2190 > 1127a2192 > 1128a2194 > 1129a2196 > 1130a2198 > 1131a2200 > 1132a2202 > 1133a2204 > 1134a2206 > 1135a2208 > 1137a2211,2212 > > 1138a2214 > 1140a2217,2218 > > 1142a2221,2222 > > 1144a2225,2226 > > 1146a2229,2230 > > 1148a2233,2234 > > 1150a2237,2238 > > 1151a2240 > 1152a2242 > 1153a2244 > 1155a2247,2248 > > 1157a2251,2252 > > 1158a2254 > 1159a2256 > 1160a2258 > 1161a2260 > 1163a2263,2264 > > 1164a2266 > 1166a2269,2270 > > 1169c2273,2277 < } /* bdeGraph - end of class */ --- > > > > > /************************************************************* 1170a2279,2295 > * Method: public void resetMaxGraphKey > * > > * Description: Resets MaxGraphKey to 0. > > * > > * Class: bdeGraph > > * > > * > > *************************************************************/ > > public void resetMaxGraphKey() > { 1171a2297,2301 > MaxGraphKey = 0; > > } > > } /* bdeGraph - end of class */ \ No newline at end of file Only in .: bdeGraphBox.class diff -bitw ./bdeGraphBox.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeGraphBox.java 2,12c2 < /* *******************************************************************/ < /** < * < *
<  * Class       : bdeGraphBox
<  * Description : This class is used to display the individual components 
<  *               of the bde graph. 
<  * 
<  * 
< */ < /* *******************************************************************/ --- > > 15d4 < 33,34d21 < < 78,86d64 < /* ****************************************************************/ < /** < *
<  * Method       : getStatus()
<  * Description  : Not implemented
<  * Class        : bdeGraphBox
<  * 
< */ < /* ****************************************************************/ 91,102d68 < /* ***************************************************************/ < /** < *
<  * Method       : show()
<  * Description  : Bring the parent window to the front
<  * Class        : bdeGraphBox
<  * 
< * @param none < * @return none < * @exception none < */ < /* ***************************************************************/ 108,123d73 < /* ***************************************************************/ < /** < *
<  * Method       : action()
<  * Description  : Excute actions on the selected object
<  * State info   : evt.targe = OKbutton { if Graph --> Create Graph
<  *                          if Text  --> Create Graph Caption Text
<  *                                 } --> set status flag to ACTION_OK
<  * Class        : bdeGraphBox
<  * 
< * @param evt evt.id < * @param arg selected object < * @return true or false < * < */ < /* ***************************************************************/ 173,187d122 < /* **********************************************************/ < /** < *
<  * Method       : handleEvent() 
<  * Description  : Check e.id, execute it or passed it to the parent
<  * State info   : evt.id = WINDOW_DESTROY --> hide window & set status 
<  *                flag to ACTION_CANCEL
<  * Class        : bdeGraphBox 
<  * 
< * @param e evt.id < * @return true or false < * @exception none < * < */ < /* **********************************************************/ 199,207d133 < /* ************************************************************/ < /** < *
< * Method        : gotFocus ()
< * Description   : Not implemented 
< * Class         : bdeGraphBox
< * 
< */ < /* *************************************************************/ 221,222d146 < < Only in .: bdeGraphCaption.class diff -bitw ./bdeGraphCaption.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeGraphCaption.java 5,17c5,13 < /* *************************************************************************/ < /** < *
<  * Class        : bdeGraphCaption
<  * Description  : This class is used to contain the position and a reference
<  *                XB child class which display its text
<  * 
< * < * @version December 15, 1996 < * @author Zhigang Wang < */ < /* ************************************************************************/ < --- > /************************************************************************** > > * Class: bdeGraphCaption > > * > > * Description: Link class > > * > > * > > * > > * > > *************************************************************************/ > 30,31c26,27 < protected Vector captionText = new Vector(); /* create a new vector */ < int FirstTextLineIndex = 0; /* set the initial value to 0 */ --- > protected Vector captionText = new Vector(); > > int FirstTextLineIndex = 0; > 34,43c30,36 < /* **************************************************************/ < /** < *
<  * Method        : draw()
<  * Description   : It draws graph caption and display the text
<  * Class         : bdeGraphCaption
<  * 
< * @param Graphics g < * @return none < * @exception none --- > /************************************************************* > > * Method: public void draw(Graphics g) > > * > > * Description: > > * > > * Class: bdeGraphCaption > > * > 45,46c38 < */ < /* **************************************************************/ --- > *************************************************************/ > 52,54c44,46 < g.setColor(Color.lightGray); /* select background color */ < g.drawRect(x, y, width, height); /* display size */ < g.setColor(Color.black); /* select graph color */ --- > g.setColor(Color.lightGray); > > g.drawRect(x, y, width, height); > > g.setColor(Color.black); > 57d48 < /*if selected */ 61d51 < /*draw the frame */ 72,82c62,70 < /* ************************************************************/ < /** < *
< * Method       : fprint()
< * Description  : Print out caption text
< * Class        : bdeGraphCaption
< *
< * @param none < * @return PostScriptString - caption text < */ < /* ************************************************************/ --- > /************************************************************* > > * Method: public void fprint() > > * > > * Description: > > * > > * Class: bdeGraphCaption > > * > > * > > *************************************************************/ > 102,119c90,98 < < /* ************************************************************/ < /** < *
< * Method         : Create()
< * Description    : Create caption and display it on the parent graph
< * State info     : evt.id = MOUSE_UP --> create a graph caption
< *                  update data base
< * Class          : bdeGraphCaption
< * 
< * < * @param x window coordinate < * @param y window coordinate < * @param evt takes the evt.id as input < * @param parent parent graph < * @return none < */ < /* ************************************************************/ --- > /************************************************************* > > * Method: Create(bdeGraph parentGraph, int x, int y) > > * > > * Description: > > * > > * Class: bdeGraphCaption > > * > > * > > *************************************************************/ > 146,165c125,131 < /* ************************************************************/ < /** < *
< * Method       : Move()
< * Description  : Update the window's content and redraw the image
< * State info   : evt.id = MOUSE_DOWN --> select the caption in terms of 
< *                mouse (x,y), set selectGraphCaption.selected = true
< *                evt.id = MOUSE_DRAG --> move the caption in terms of 
< *                mouse (x,y), repaint the Graph
< *                evt.id = MOUSE_UP   --> set the place of caption in terms 
< *                of mouse (x,y), repaint the Graph
< *                set selectGraphCaption.selected = false
< * Class        : bdeGraphCaption
< * 
< * < * @param x window coordinate < * @param y window coordinate < * @param evt takes the evt.id as input < * @param parent parent graph < * @return none --- > /************************************************************* > > * Method: public void Move() > > * > > * Description: > > * > > * Class: bdeGraphCaption > > * > 167,168c133 < */ < /* ************************************************************/ --- > *************************************************************/ > 204,217c169,177 < /* ************************************************************/ < /** < *
< * Method       : Move()
< * Description  : This method gets the new x and y window coordinates
< * Class        : bdeGraphCaption
< * 
< * @param NewX new x window coodinate < * @param NewY new y window coodinate < * @return none < */ < /* ************************************************************/ < < --- > /************************************************************* > > * Method: public void Move() > > * > > * Description: > > * > > * Class: bdeGraphCaption > > * > > * > > *************************************************************/ > 225,245c185,193 < < /* ************************************************************/ < /** < *
< * Method       : Delete()
< * Description  : Remove and update and display the window's contents
< * State info   : evt.id = MOUSE_DOWN --> select the caption in terms of 
< *                mouse (x,y), set selectGraphCaption.selected = true
< *                evt.id = MOUSE_UP   --> delete the caption, update the 
< *                database, set selectGraphCaption.selected = false 
< * Class        : bdeGraphCaption
< * 
< * < * @param x window coordinate < * @param y window coordinate < * @param evt takes the evt.id as input < * @param parent parent graph < * @return none < */ < /* ************************************************************/ < --- > /************************************************************* > > * Method: public void Delete() > > * > > * Description: > > * > > * Class: bdeGraphCaption > > * > > * > > *************************************************************/ > 280,288c228,236 < /* ************************************************************/ < /** < *
< * Method       : Select()
< * Description  : Not implemented
< * Class        : bdeGraphCaption
< * 
< */ < /* ************************************************************/ --- > /************************************************************* > > * Method: public void Select() > > * > > * Description: > > * > > * Class: bdeGraphCaption > > * > > * > > *************************************************************/ > 294,304c242,246 < /* ************************************************************/ < /** < *
< * Method       : Resize()
< * Description  : Select graph caption and repaint it 
< * State info   : evt.id = MOUSE_DOWN --> select the caption in terms of 
< *                mouse (x,y), set selectGraphCaption.selected = true
< *                evt.id = MOUSE_DRAG --> resize the caption in terms of 
< *                mouse (x,y), repaint the Graph
< *                evt.id = MOUSE_UP   --> set the caption to the size specified
< *                repaint the Graph, set selectGraphCaption.selected = false
---
>     /*************************************************************
> 
>     * Method: public void Resize()
> 
>     *
> 
>     * Description: 
> 
>     *
> 
306,313c248,250
< * 
< * @param x window coordinate < * @param y window coordinate < * @param evt takes the evt.id as input < * @param parent parent graph < * @return none < */ < /* ************************************************************/ --- > * > > * > > *************************************************************/ > 423,431c360,368 < /* ************************************************************/ < /** < *
< * Method       : Restyle()
< * Description  : Not implemented
< * Class        : bdeGraphCaption
< * 
< */ < /* ************************************************************/ --- > /************************************************************* > > * Method: public void Restyle() > > * > > * Description: > > * > > * Class: bdeGraphCaption > > * > > * > > *************************************************************/ > 437,447c374,382 < /* ************************************************************/ < /** < *
< * Method       : getRow()
< * Description  : Retrive data from .dat file
< * Class        : bdeGraphCaption
< * 
< * @param none < * @return strRow - DataToken, name and coordinates < */ < /* ************************************************************/ --- > /************************************************************* > > * Method: public String getRow() > > * > > * Description: > > * > > * Class: bdeGraphCaption > > * > > * > > *************************************************************/ > 464,475c399,407 < /* ************************************************************/ < /** < *
< * Method       : addToParent() 
< * Description  : Add strRow to the parent and get a new key
< * Class        : bdeGraphCaption
< * 
< * @param       strRow returned by getRow
< * @param       parent parent graph
< * @return      none
< */
< /* ************************************************************/
---
>      /*************************************************************
> 
>     * Method: int addToParent(String strRow, bdeGraph parent) 
> 
>     *
> 
>     * Description: 
> 
>     *
> 
>     * Class: bdeGraphCaption
> 
>     *
> 
>     *
> 
>     *************************************************************/
> 
506,507d437
< 
< 
Only in .: bdeGraphSelectionBox.class
diff -bitw ./bdeGraphSelectionBox.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeGraphSelectionBox.java
3,12d2
< /* ************************************************************/
< /**
<  * 
<  * Class       : bdeGraphSelectionBox
<  * Description : Display a graph selection box and the default is 
<  *               HG000001
<  * 
< */ < /* ************************************************************/ < 60,69d49 < /* ****************************************************************/ < /** < *
<  * Method       : getStatus()
<  * Description  : Not implemented
<  * Class        : bdeGraphSelectionBox
<  * 
< */ < /* ****************************************************************/ < 74,86d53 < /* ***************************************************************/ < /** < *
<  * Method       : show()
<  * Description  : Bring the parent window to the front
<  * Class        : bdeGraphSelectionBox
<  * 
< * @param none < * @return none < * @exception none < */ < /* ***************************************************************/ < 92,108d58 < /* ***************************************************************/ < /** < *
<  * Method       : action()
<  * Description  : Excute actions on the selected object
<  * State info   : evt.target = OKbutton --> set flag from ACTION_PENDING 
<  *                to ACTION_OK
<  * Class        : bdeGraphSelectionBox
<  * 
< * @param evt evt.id < * @param arg selected object < * @return true or false < * < */ < /* ***************************************************************/ < < 136,152d85 < /* **********************************************************/ < /** < *
<  * Method       : handleEvent() 
<  * Description  : Check e.id, execute it or passed it to the parent
<  * State info   : evt.id = Event.WINDOW_DESTROY --> hide window and 
<  *                set flag to ACTION_CANCEL
<  * Class        : bdeGraphSelectionBox 
<  * 
< * @param e evt.id < * @return true or false < * @exception none < * < */ < /* **********************************************************/ < < 164,165d96 < < Only in .: bdeJava.class diff -bitw ./bdeJava.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeJava.java 4,15c4,12 < import GIFEncoder; < < /* *************************************************************************/ < /** < *
< * Class         : bdeJava
< * Description   : It starts up bde2JavaApplet and call bdeAppletFrame
< *                 to draw out the frame
< * 
< */ < /* *************************************************************************/ < --- > /************************************************************************** > > * Class: bdeBendPoint > > * > > * Description: Link class > > * > > * > > * > > * > > *************************************************************************/ > 22,48d18 < /* *************************************************************************/ < /** < *
< * Method       : main()
< * Description  : It is an empty method and them primary function
< *                is to tell bdeJava where to start
< * Class        : bdeJava
< * 
< * < * @param < *
< * arg not currently implemented
< * 
< * < * @return < *
< * none
< * 
< * < * @exception < *
< * none
< * 
< * < */ < /* *************************************************************************/ < 54,91d23 < /* *************************************************************************/ < /** < *
< * Method       : reshape()
< * Description  : It will call reshape of its superclass and display the frame
< *                if it has one
< * Class        : bdeJava
< * 
< * < * @param < *
< * x gives the x position
< * 
< * @param < *
< * y gives the y position
< * 
< * @param < *
< * width gives the width of the frame
< * 
< * @param < *
< * height gives the height of the frame
< * 
< * < * @return < *
< * none
< * 
< * < * @exception < *
< * none
< * 
< */ < /* *************************************************************************/ < Only in .: bdeLink.class diff -bitw ./bdeLink.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeLink.java 5,14c5,13 < /* *************************************************************************/ < /** < *
< * Class       : bdeLink
< * Description : bde Link. Handle all of link operations,
< *               Each link is represented by 2 or more 
< *               bendpoints
< *
< */ < /* *************************************************************************/ --- > /************************************************************************** > > * Class: bdeLink > > * > > * Description: Link class > > * > > * > > * > > * > > *************************************************************************/ > 35,39c34 < < < /* ******************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
41c36,38
<     * Description : Get a parent graph
---
>     *
> 
>     * Description:
> 
>     *
> 
43,49d39
<     * 
< * @param < *
<     * parentGraph bdeGraph
<     * 
< * @return None < * @exeception None 51,52c41,42 < */ < /* ******************************************************************/ --- > * > > *************************************************************/ > 58,63c48 < < < < /* ******************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
65c50,52
<     * Description: Draw a caption (text) for a link
---
>     *
> 
>     * Description:
> 
>     *
> 
67,76c54,56
<     * 
< * @param None < * @return < *
<     * Return PostScriptString, a post string and arrow 
<     *            atring (x,y) and (x1,y1) to be shown
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 135,139c115 < < < /* ******************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
141c117,119
<     * Description: Draw a caption (text) for a link
---
>     *
> 
>     * Description:
> 
>     *
> 
143,166c121,123
<     * 
< * @param < *
<     * (x1,y1) start point (x,y) of a line
<     * 
< * @param < *
<     * (x2,y2) end point (x,y) of a line
<     * 
< * @param < *
<     * z arrow direction, 
<     *     z = 0 line           from src to dest, ---
<     *         1 forward  arrow from src to dest, -->
<     *         2 backward arrow drom src to dest <--
<     * 
< * @return < *
<     * Return an ArrowString, an arrow's start point 
<     *        (x, y) and its angle
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 234,255c191,199 < < < < /* ******************************************************************/ < /** < *
 
<     * Method: draw()
<     * Description: Draw a link between two nodes
<     * Class: bdeLink
<     * 
< * @param < *
<     * g Grapgics
<     * 
< * @param < *
<     * parentGraph bdeGraph
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public void draw() > > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 334,338c278 < < < /* ******************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
340,357c280,286
<     * Description : Create a link, only used by another 
<     *               method: create, get point1 for source 
<     *               node, point2 for destination node and 
<     *               add it to parent list
<     * Class       : bdeLink
<     * 
< * @param < *
<     * g Grapgics
<     * 
< * @param < *
<     * parentGraph bdeGraph
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 369a299 > > 452,456c382 < < < /* ******************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
458c384,386
<     *   Description : Not implemented
---
>     *
> 
>     * Description:
> 
>     *
> 
460,462c388,390
<     * 
< */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 469,473c397 < < < /* ******************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
475,497c399,405
<     * Description : Delete a link and modify the link 
<     *               queue, if finds the link
<     * State       : evt.id = MOUSE_ACTION 
<     *                 --> select link for given (x,y) mouse point
<     *                     delete the link
<     * Class       : bdeLink
<     * 
< * @param < *
<     * (x,y) selected point
<     * 
< * @param < *
<     * evt Event: MOUSE_UP
<     * 
< * @param < *
<     * parent bdeGraph 
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 511,515c419 < < < /* ******************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
517,521c421,423
<     * Description : Select a link function, 
<     *               not implemented yet
<     * State       : evt.id = MOUSE_ACTION 
<     *                --> select link for given (x,y) mouse point
<     *                    highlite the link
---
>     *
> 
>     * Description:
> 
>     *
> 
523,525c425,427
<     * 
< */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 541,546c443 < < < < /* ******************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
548c445,447
<     * Description : Not implemented
---
>     *
> 
>     * Description:
> 
>     *
> 
550,552c449,451
<     * 
< */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 558,563c457 < < < < /* ******************************************************************/ < /** < *
 
---
>    /*************************************************************
> 
565,609c459,465
<     * Description : Create a link, 
<     *               depends on a MOUSE event
<     * State       : evt.id = MOUSE_DOWN 
<     *                 --> select the first node
<     *                     set FirstSelectedNode to the node
<     *               evt.id = MOUSE_DRAG 
<     *                 --> select second node
<     *                     if second node = FirstSelectedNode 
<     *                                 or = NULL
<     *                        return 
<     *                     else 
<     *                        set SecondSelectedNode.selected = true
<     *                        repaint the Graph
<     *               evt.id = MOUSE_UP   
<     *                 --> select second node
<     *                     if the second node != the first node
<     *                        create link
<     *                        update the data structure of 
<     *                               graph (addToParent)
<     *                        repaint the Graph
<     *                     else 
<     *                        return
<     * Class       : bdeLink
<     * 
< * @param < *
<     * (x,y) selected mouse point
<     * 
< * @param < *
<     * eve Event: 
<     *      MOUSE_DOWN: get the first selected node,
<     *      MOUSE_UP  : get the second selected node,
<     *      MOUSE_DRAG: get test node (can't be the first node)
<     *                  and repaint the graph
<     *
<     * 
< * @param < *
<     * parent bdeGraph 
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 691,695c547 < < < /* ******************************************************************/ < /** < *
 
---
>     /*************************************************************
> 
697c549,551
<     * Description : Not implemented
---
>     *
> 
>     * Description:
> 
>     *
> 
699,701c553,555
<     * 
< */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 708,715c562,566 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : WCtoLC
<     * Description : TBD
---
>     /*************************************************************
> 
>     * Method:  WCtoLC()
> 
>     *
> 
>     * Description:
> 
>     *
> 
717,719c568,570
<     * 
< */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 738,744c589,593 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : LCtoWC
<     * Description : TBD
---
>     /*************************************************************
> 
>     * Method: public void LCtoWC()
> 
>     *
> 
>     * Description:
> 
>     *
> 
746,748c595,597
<     * 
< */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 765,798c614,615 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : drawOutline()
<     * Description : Draw a outline surrounded a selected 
<     *               link, It has two kinds of outlines 
<     *               depending on the slope ((y2-y1)/x2-x1)
<     *               If slope > 1 or slope < 0, 
<     *                   draw a polygon with 5 points 
<     *                   surrounded (x1,y1) and (x2,y2)
<     *               Otherwise, 
<     *                   also draw a polygon with another 
<     *                   5 points
<     * Class       : bdeLink
<     * 
< * @param < *
<     * (x1,y1) start point of a line
<     * 
< * @param < *
<     * (x2,y2) end point of a line
<     * 
< * @param < *
<     * g Graphics 
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > /*************************************************************/ > > /*************************************************************/ > 848,883c665,678 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : drawArrow()
<     * Description : draw an arrow
<     * Class       : bdeLink
<     * 
< * @param < *
<     * (x1,y1) start point of a line
<     * 
< * @param < *
<     * (x2,y2) end point of a line
<     * 
< * @param < *
<     * z The parameter int z in this function is used to 
<     *   distinguish, if the BPT is the last one or first 
<     *   one, Because we have to add an offset to the 
<     *   coordinate of XFillArc to draw the arrow at the BPT 
<     *   (History)
<     *       z = 0, the first BPT
<     *       z = 2, the last  BPT
<     *       z = 1, the rest  BPT
<     * 
< * @param < *
<     * g Graphics
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > /*************************************************************************** > > * Description: This function draws an arrow, which shows you the direction > > * in which the person is standing or moving in the map > > * Error handling: > > * NONE. > > * Side effects: > > * NONE. > > * History: The parameter int z in this function is used to distinguish if the > > * BPT is the last one or first one. Because we have to add an offset > > * to the coordinate of XFillArc to draw the arrow at the BPT > > * z = 0 ..... the first BPT > > * z = 2 ..... the last BPT > > * z = 1 ..... the rest BPT > > ***************************************************************************/ > 947,973c742,750 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : findLink()
<     * Description : find if there is a link existing in
<     *               a selected node
<     * Class       : bdeLink
<     * 
< * @param < *
<     * (x1,y1) selected node
<     * 
< * @param < *
<     * parent bdeGraph
<     * 
< * @return < *
<     * Return number of links (linknumber), if found
<     *        status (NOT_FOUND), otherwise
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public int findLink() > > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 1039,1069c816,824 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : testInside()
<     * Description : Test if the mouse point (x,y) is belonging 
<     *               to any link or not
<     * Class       : bdeLink
<     * 
< * @param < *
<     * (xp,yp) selected point
<     * 
< * @param < *
<     * (dx1,dx2) start point of a link 
<     * 
< * @param < *
<     * (dy1,dy2) end point of a link
<     * 
< * @return < *
<     * Return a distance, if the mouse click point points 
<     *                    a link status 
<     *          (bdeReference.NOT_FOUND), otherwise
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public double testInside() > > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 1119,1148c874,882 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : getDistance()
<     * Description : Compute a closest distance from a point
<     *               (xp,yp) to a line (dx1,dy1),(dx2,dy2)
<     * Class       : bdeLink
<     * 
< * @param < *
<     * (xp,yp) selected point
<     * 
< * @param < *
<     * (dx1,dx2) start point of a line 
<     * 
< * @param < *
<     * (dy1,dy2) end point of a line
<     * 
< * @return < *
<     * Return the closest distance from a point to a line
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public double getDistance() > > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 1183,1219c917,925 < < /* ******************************************************************/ < /** < *
 
<     *   Method      : getIntersection()
<     *   Description : Get a center point
<     *   Class       : bdeLink
<     * 
< * @param < *
<     * (NodeCenterX,NodeCenterY) (selectedNode.x + selectedNode.width/2,
<     *                            selectedNode.y + selectedNode.height/2)
<     * 
< * @param < *
<     * NodeHalfWidth selectedNode.width/2
<     * 
< * @param < *
<     * NodeHalfHeight selectedNode.height/2
<     * 
< * @param < *
<     * (PointCenterX,PointCenterY) (slectedNode.x , selectedNode.y)
<     * 
< * @param < *
<     * shapetype N,R,F,I,O,C,E... etc
<     * 
< * @return < *
<     * Return newpoint (PointX, PointY) depending on 
<     *        shape and slope
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public int getIntersection() > > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 1315,1323c1021,1025 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : findBendPoint11()
<     * Description : TBD, It looks duplicate with method
<     *               findBendPoint()
---
>    /*************************************************************
> 
>     * Method: public int findBendPoint()
> 
>     *
> 
>     * Description:
> 
>     *
> 
1325,1327c1027,1029
<     * 
< */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 1397,1424c1099,1107 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : findBendPoint()
<     * Description : Find if the mouse point (x,y) is a 
<     *               bendpoint, If yes, return n-th point index,
<     *               Or NOT_FOUND
<     * Class       : bdeLink
<     * 
< * @param < *
<     * mouse mouse point (x,y)
<     * 
< * @param < *
<     * parentGraph bdeGraph
<     * 
< * @return < *
<     * Return nIndexPoint (n-th bendpoint), if found
<     *        bdeReference.NOT_FOUND, otherwise
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public int findBendPoint() > > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 1448,1475c1131,1139 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : moveBendPoint()
<     * Description : Move a bendpoint, Whenever mouse_drag, 
<     *               it gets a new points to souce bendpoint 
<     *               and destination (last) bendpoint
<     * Class       : bdeLink
<     * 
< * @param < *
<     * nIndex n-th bendpoint
<     * 
< * @param < *
<     * mouse mouse point (x,y)
<     * 
< * @param < *
<     * parentGraph bdeGraph
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public int moveBendPoint() > > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 1526,1555c1190,1198 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : insertBendPoint()
<     * Description : Insert (add) a bendpoint between two 
<     *               bendpoints, The n-th bendpoint is the 
<     *               source point, and n+1 bendpoint is the 
<     *               destination, It gets a new one between 
<     *               them and modifies the bendpoint list
<     * Class       : bdeLink
<     * 
< * @param < *
<     * nIndex n-th bendpoint
<     * 
< * @param < *
<     * parentGraph bdeGraph
<     * 
< * @param < *
<     * Pattern string
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public int insertBendPoint() > > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 1665,1672c1308,1312 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : updateEnds()
<     * Description : Not implemented
---
>     /*************************************************************
> 
>     * Method: public void updateEnds()
> 
>     *
> 
>     * Description:
> 
>     *
> 
1674,1676c1314,1316
<     * 
< */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 1684,1691c1324,1328 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : updateUV()
<     * Description : TBD
---
>     /*************************************************************
> 
>     * Method: public void updateUV()
> 
>     *
> 
>     * Description:
> 
>     *
> 
1693,1694c1330,1332
<     */
<     /* ******************************************************************/
---
>     *
> 
>     *
> 
>     *************************************************************/
> 
1759,1782c1397,1405
< 
< 
< 
<     /* ******************************************************************/
<     /** 
<     * 
 
<     * Method      : deleteBendPoint()
<     * Description : Delete/Remove a bendpoint from the list
<     *               The First (parent) bendpoint cannot be 
<     *               removed
<     * Class       : bdeLink
<     * 
< * @param < *
<     * nIndex n-th bendpoint
<     * 
< * @param < *
<     * parentGraph bdeGraph
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public int deleteBendPoint() > > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 1795,1815c1418,1426 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : getRow()
<     * Description : Get a string including link and bendpoint 
<     *               list information
<     * Class       : bdeLink
<     * 
< * @param None < * @return < *
<     * Return a strRow, including bendpoint list name, 
<     *                  size and the source and destination 
<     *                  bendpoints
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public String getRow() > > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 1829,1849c1440,1448 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : addToParent()
<     * Description : Add a new link into the parent list
<     * Class       : bdeLink
<     * 
< * @param < *
<     * strRow a string includes bendpoint information
<     * 
< * @param < *
<     * parentGraph bdeGraph
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: static public void addToParent() > > * > > * Description: > > * > > * Class: bdeLink > > * > > * > > *************************************************************/ > 1880d1478 < Only in .: bdeLinkCaption.class diff -bitw ./bdeLinkCaption.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeLinkCaption.java 4,13c4,12 < /* *************************************************************************/ < /** < *
< * Class       : bdeLinkCaption
< * Description : Link caption. It has 9 methods, 8 of them 
< *               are not implemented yet, The class does not 
< *               work currently
< *
< */ < /* *************************************************************************/ --- > /************************************************************************** > > * Class: bdeLinkCaption > > * > > * Description: Link Caption class > > * > > * > > * > > * > > *************************************************************************/ > 35,45c34,42 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Draw()
<     * Description : Not implemented
<     * Class       : bdeLinkCaption
<     * 
< */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public void draw(Graphics g) > > * > > * Description: > > * > > * Class: bdeLinkCaption > > * > > * > > *************************************************************/ > 51,61c48,56 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Create()
<     * Description : Not implemented
<     * Class       : bdeLinkCaption
<     * 
< */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public void Create() > > * > > * Description: > > * > > * Class: bdeLinkCaption > > * > > * > > *************************************************************/ > 67,77c62,70 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Move()
<     * Description : Not implemented
<     * Class       : bdeLinkCaption
<     * 
< */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public void Move() > > * > > * Description: > > * > > * Class: bdeLinkCaption > > * > > * > > *************************************************************/ > 83,93c76,84 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Delete()
<     * Description : Not implemented
<     * Class       : bdeLinkCaption
<     * 
< */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public void Delete() > > * > > * Description: > > * > > * Class: bdeLinkCaption > > * > > * > > *************************************************************/ > 99,109c90,98 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Select()
<     * Description : Not implemented
<     * Class       : bdeLinkCaption
<     * 
< */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public void Select() > > * > > * Description: > > * > > * Class: bdeLinkCaption > > * > > * > > *************************************************************/ > 115,125c104,112 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Resize()
<     * Description : Not implemented
<     * Class       : bdeLinkCaption
<     * 
< */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public void Resize() > > * > > * Description: > > * > > * Class: bdeLinkCaption > > * > > * > > *************************************************************/ > 131,133c118,126 < < < --- > /************************************************************* > > * Method: public void Resize() > > * > > * Description: > > * > > * Class: bdeLinkCaption > > * > > * > > *************************************************************/ > 139,155c132,138 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : getRow()
<     * Description : Get a string row information (name, 
<     *               Id, x, y, withth, length, font ...)
<     * Class       : bdeReference
<     * 
< * @param None < * @return < *
<     * return a string, including name, Id, x, y, 
<     *                  withth, length, font etc
<     * 
< * @exeception None --- > /************************************************************* > > * Method: public void getRow() > > * > > * Description: > > * > > * Class: bdeLinkCaption > > * > 157,158c140 < */ < /* ******************************************************************/ --- > *************************************************************/ > Only in .: bdeMenuItem.class diff -bitw ./bdeMenuItem.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeMenuItem.java 5,6c5 < /********************************************************************** < *
---
> /**************************************************************************
> 
8,11c7,13
< * Description   : It has the information for the different types of
< *                 menu items File, Edit, Options, Help
< * 
< **********************************************************************/ --- > * > > * Description: > > * > > * > > * > > * > > *************************************************************************/ > 20,27d21 < /******************************************************************** < *
 
< * Method       : bdeMenuItem()
< * Description  : It creates the Border supplied message and title are
< *                to the frame by means of MultiLineLabel;
< * Class        : bdeMenuItem
< * 
< ***********************************************************************/ 28a23,31 > /************************************************************* > > * Method: bdeMenuItem(String Name1, int nLayoutPosition) > > * > > * Description: > > * > > * Class: bdeMenuItem > > * > > * > > *************************************************************/ > Only in .: bdeNode.class diff -bitw ./bdeNode.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeNode.java 5,15c5,13 < < /* *************************************************************************/ < /** < *
< * Class       : bdeNode
< * Description : bde Node, All of node operations, 
< *               create, delete, select, resize, 
< *               and restyle
< * 
< */ < /* *************************************************************************/ --- > /************************************************************* > > * Class: bde2JavaApplet > > * > > * Description: Applet shell for bde2Java Project. > > * > > * > > * > > * > > *************************************************************/ > 46,66c44,51 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : draw()
<     * Description : Draw a node on the canvas
<     *               Couple of node types are defined,
<     *               Circle, Rectangle (default), Ellipse, 
<     *               Input, Output, File, Round Rectangle, 
<     *               and Buffer
<     * Class       : bdeNode
<     * 
< * @param < *
<     * g Graphics
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public void draw(Graphics g) > > * > > * Description: Draws the nodes on the canvas. > > * > > * Class: bde2JavaApplet > > * > > *************************************************************/ > 309,325c294,302 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : drawAttributes()
<     * Description : draw a node attribute 
<     * Class       : bdeNode
<     * 
< * @param < *
<     * g Graphics
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public void drawAttributes(Graphics g) > > * > > * Description: > > * > > * Class: bde2JavaApplet > > * > > * > > *************************************************************/ > 345,353c322,326 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : hasLinks()
<     * Description : Find if a node has a link and number
<     *               of links it has
---
>     /*************************************************************
> 
>     * Method: public int hasLinks()
> 
>     *
> 
>     * Description: 
> 
>     *
> 
355,367c328,330
<     * 
< * @param < *
<     * parent bdeGraph
<     * 
< * @return < *
<     * Return nIndex (number of links a node has), if found
<     *        bdeReference.NOT_FOUND, otherwise
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 392,399c355,359 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : updateLinks()
<     * Description : Update all links a node has, if number
<     *               of links > 0, whenever moving a node
---
>     /*************************************************************
> 
>     * Method: public int updateLinks()
> 
>     *
> 
>     * Description: 
> 
>     *
> 
401,409c361,363
<     * 
< * @param < *
<     * parent bdeGraph
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 436,449c390,394 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Create()
<     * Description : Create a node
<     * State       : evt.modifiers = Event.META_MASK 
<     *                             --> print a message
<     *               evt.id = MOUSE_UP 
<     *                      --> create a node
<     *                          update the data structure of 
<     *                          graph (addToParent) repaint 
<     *                          the Graph
---
>     /*************************************************************
> 
>     * Method:  Create(bdeGraph parentGraph, int x, int y, String ShapeType)
> 
>     *
> 
>     * Description: 
> 
>     *
> 
451,467c396,398
<     * 
<     * @param
<     * 
<     * (x,y) point where to paint
<     * 
< * @param < *
<     * evt event (MOUSE_UP)
<     * 
< * @param < *
<     * parent bdeGraph
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 519,536c450,454 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Move()
<     * Description : Move a node depending on mouse event
<     * State       : evt.id = MOUSE_DOWN 
<     *                      --> select node 
<     *                          set FirstSelectedNode to 
<     *                          the node
<     *               evt.id = MOUSE_DRAG 
<     *                      --> move selected node to new 
<     *                          place, update links, repaint 
<     *                          the Graph
<     *               evt.id = MOUSE_UP   
<     *                      --> repaint the Graph
<     *                          set FirstSelectedNode to NULL
---
>     /*************************************************************
> 
>     * Method: public void move(int x, int y)
> 
>     *
> 
>     * Description: 
> 
>     *
> 
538,553c456,458
<     * 
<     * @param
<     * 
<     * (x,y) point where to paint a node
<     * 
< * @param < *
<     * evt event, in case of 
<     *     MOUSE_DOWN, get selected node or NOT_FOUND
<     *     MOUSE_DRAG, update links and repaint it
<     *     MOUSE_UP  , repaint it if not NOT_FOUND
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 606,626c511,515 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Delete()
<     * Description : Delete a node, depending on mouse event, 
<     *               if it has not a link
<     * State       : evt.modifiers = Event.META_MASK 
<     *                             --> print a message
<     *               evt.id = MOUSE_DOWN 
<     *                      --> select node for given (x,y)
<     *                          set FirstSelectedNode.selected = true
<     *               evt.id = MOUSE_UP   
<     *                      --> check if current node is the same 
<     *                          node as FirstSelectedNode
<     *                          if yes --> delect the node, 
<     *                                     update links
<     *                          if no  --> set 
<     *                             FirstSelectedNode.selected = false, 
<     *                             return
---
>     /*************************************************************
> 
>     * Method: public void Delete()
> 
>     *
> 
>     * Description: 
> 
>     *
> 
628,644c517,519
<     * 
<     * @param
<     * 
<     * (x,y) node point
<     * 
< * @param < *
<     * evt event in case of,
<     *     MOUSE_DOWN, get selected node or NOT_FOUND
<     *     MOUSE_UP,   if not NOT_FOUND, get number of links 
<     *                 of the selected node, delete it, update
<     *                 parent list, and repaint it
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 717,727c592,600 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Select()
<     * Description : Not implemented
<     * Class       : bdeLink
<     * 
< */ < /* ******************************************************************/ --- > /************************************************************* > > * Method: public void Select() > > * > > * Description: The select function for Nodes. > > * > > * Class: bdeNode > > * > > * > > *************************************************************/ > 733,751c606,610 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Resize()
<     * Description : Change a size of a node (Go north, 
<     *               south, east or west)
<     * State       : evt.id = MOUSE_DOWN  
<     *                      --> select node 
<     *                          set FirstSelectedNode to the node
<     *               evt.id = MOUSE_DRAG 
<     *                      --> move selected node 
<     *                          to right size, update links, 
<     *                          repaint the Graph
<     *               evt.id = MOUSE_UP   
<     *                      --> repaint the Graph
<     *                          set FirstSelectedNode to NULL
---
>     /*************************************************************
> 
>     * Method: public void Resize()
> 
>     *
> 
>     * Description: Changes the size of the node.
> 
>     *
> 
753,775c612,614
<     * 
<     * @param
<     * 
<     * (x,y) node point
<     * 
< * @param < *
<     * evt event in case of
<     *     MOUSE_DOWN, get selected node, set the node's
<     *                 border, and repaint it
<     *     MOUSE_DRAG, if not NOT_FOUND, drag toward North, 
<     *                 South, East, or West, repaint it and
<     *                 update links
<     *     MOUSE_UP,   repaint it
<     * 
< * @param < *
<     * parent bdeGraph
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 891,907c730,734 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Restyle()
<     * Description : Change the shape of node
<     * State       : evt.id = MOUSE_UP   
<     *                      --> 
<     *                if FirstSelectedNode = NULL, 
<     *                    set FirstSelectedNode.selected = true
<     *                 else
<     *                   set SecondSelectedNode.selected = true
<     *                    select node shape from ShapeList in 
<     *                           toolbox (a java Choice)
<     *                    update links
<     *                    repaint the Graph
---
>     /*************************************************************
> 
>     * Method: public void Restyle()
> 
>     *
> 
>     * Description: Changes the shape of the Node.
> 
>     *
> 
909,927c736,738
<     * 
<     * @param
<     * 
<     * (x,y) node point
<     * 
< * @param < *
<     * evt event in case of
<     *     MOUSE_UP, get selected node, selected type, 
<     *               update links, and repaint it
<     * 
< * @param < *
<     * parent bdeGraph
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 986,992c797,801 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : inside()
<     * Description : Check if a point is in a node
---
>     /*************************************************************
> 
>     * Method: public boolean inside(int x, int y)
> 
>     *
> 
>     * Description: Check to see if a point is in a Node.
> 
>     *
> 
994,1002c803,805
<     * 
<     * @param
<     * 
<     * (x,y) point
<     * 
< * @return inside(x,y) < * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 1010,1017c813,817 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : fprint()
<     * Description : Create a string in Postscript format 
<     *               for a node
---
>     /*************************************************************
> 
>     * Method: public void fprint()
> 
>     *
> 
>     * Description: Creates a string in Postscript format for the Node.
> 
>     *
> 
1019,1028c819,821
<     * 
<     * @param None
<     * @return       
<     * 
<     * Return PostScriptString, a string includes type, 
<     *                  (x,y), width, height of a node
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 1080,1086c873,877 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : getRow()
<     * Description : Get a string including a node information
---
>     /*************************************************************
> 
>     * Method: public String getRow()
> 
>     *
> 
>     * Description: Returns a single data record for a node object.
> 
>     *
> 
1088,1098c879,881
<     * 
<     * @param None
<     * @return       
<     * 
<     * Return strRow, a string includes parent name, next 
<     *                graph name, type, (x,y), width, height, 
<     *                caption (x,y), caption font of a node
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 1124,1130c907,911 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : addToParent()
<     * Description : Add a node object to the parent list
---
>     /*************************************************************
> 
>     * Method: int addToParent(String strRow, bdeGraph parent) 
> 
>     *
> 
>     * Description: Adds Node to parent.
> 
>     *
> 
1132,1144c913,915
<     * 
<     * @param
<     * 
<     * strRow a string including a node information
<     * 
< * @param < *
<     * parent bdeGraph
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 1187,1193c958,962 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : getInsersection()
<     * Description : Get a center point of a node
---
>  /*************************************************************
> 
>     * Method: public int getIntersection()
> 
>     *
> 
>     * Description: 
> 
>     *
> 
1195,1218c964,966
<     * 
<     * @param 
<     * 
<     * (x,y) (NodeCenterX, NodeCenterY)
<     * 
< * @param < *
<     * (w,h) (NodeHalfWidth, NodeHalfHeight)
<     * 
< * @param < *
<     * (x,y) (PointCenterX, PointCenterY)
<     * 
< * @param < *
<     * shapetype a string, node shape type
<     * 
< * @return < *
<     * Return Newpoint (x,y)
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > Only in .: bdeNodeAttribute.class diff -bitw ./bdeNodeAttribute.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeNodeAttribute.java 4,6c4 < /* *************************************************************************/ < /** < *
---
> /**************************************************************************
> 
8,9d5
< * Description : Get a node attribute and add it to the 
< *               parent list
11,13c7,12
< * 
< */ < /* *************************************************************************/ --- > * Description: Link class > > * > > * > > * > > * > > *************************************************************************/ > 37,48d35 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Create()
<     * Description : Not implemented
<     * Class       : bdeNodeAttribute
<     * 
< */ < /* ******************************************************************/ 54,64d40 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Move()
<     * Description : Not implemented
<     * Class       : bdeNodeAttribute
<     * 
< */ < /* ******************************************************************/ 70,80d45 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Delete()
<     * Description : Not implemented
<     * Class       : bdeNodeAttribute
<     * 
< */ < /* ******************************************************************/ 86,96d50 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : select()
<     * Description : Not implemented
<     * Class       : bdeNodeAttribute
<     * 
< */ < /* ******************************************************************/ 102,112d55 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Resize()
<     * Description : Not implemented
<     * Class       : bdeNodeAttribute
<     * 
< */ < /* ******************************************************************/ 118,128d60 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : Restyle()
<     * Description : Not implemented
<     * Class       : bdeNodeAttribute
<     * 
< */ < /* ******************************************************************/ 134,152c66,75 < /* ******************************************************************/ < /** < *
 
<     * Method      : InitList()
<     * Description : Add a string row to the parent list
<     * Class       : bdeNodeAttribute
<     * 
< * @param < *
<     * strRow string with node attribute
<     * 
< * @param < *
<     * parent parent list
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > > > /************************************************************* > > * Method: int addToParent(String strRow, bdeGraph parent) > > * > > * Description: > > * > > * Class: bdeNode > > * > > * > > *************************************************************/ > 174,182c97,101 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : GetRow()
<     * Description : Get a string row information (parent 
<     *               name, Id, x, y, withth, length, font...)
---
>     /*************************************************************
> 
>     * Method: public String getRow()
> 
>     *
> 
>     * Description: 
> 
>     *
> 
184,193c103,105
<     * 
< * @param None < * @return < *
<     * Return a string, including parent name, Id, x, y, 
<     *                  withth, length, font etc
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > Only in .: bdeNodeAttributesBox.class diff -bitw ./bdeNodeAttributesBox.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeNodeAttributesBox.java 3,11d2 < /* *************************************************************************/ < /** < *
< * Class       : bdeNodeAttributesBox
< * Description : Get the Infomation box attribute
< * 
< */ < /* *************************************************************************/ < 68,81d58 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : getStatus()
<     * Description : Get the current status
<     * Class       : bdeNodeAttributesBox
<     * 
< * @param None < * @return Status < * @exeception None < */ < /* ******************************************************************/ 86,102d62 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : getStatus()
<     * Description : Suspend current job, setting a 
<     *               ACTION_PENDING status, and interrupt 
<     *               a super job, showing a information 
<     *               dialog box
<     * Class       : bdeNodeAttributesBox
<     * 
< * @param None < * @return None < * @exeception None < */ < /* ******************************************************************/ 108,135d67 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : action()
<     * Description : Get an event and clear it (OK button)
<     * State       : evt.target = OKbutton 
<     *                 --> hide the OK_button
<     *                     set status = ACTION_OK
<     * Class       : bdeNodeAttributesBox
<     * 
< * @param < *
<     * evt an event from information bo
<     * 
< * @param < *
<     * arg an argument only for display and trace
<     * 
< * @return < *
<     * Return ture, if event is ACTION_OK (OK button), 
<     *        false, otherwise
<     * 
< * @exeception None < */ < /* ******************************************************************/ 163,186d94 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : handleEvent()
<     * Description : handle and set ACTION_CANCEL status, 
<     *               if the WINDOW_DESTORY event occurs
<     * State       : evt.id = WINDOW_DESTORY --> hide window
<     * Class       : bdeNodeAttributesBox
<     * 
< * @param < *
<     * evt an event. 
<     * 
< * @return < *
<     * Return set status=ACTION_CANCEL and return ture, 
<     *            if the event is WINDOW_DESTROY
<     *        original event, otherwise
<     * 
< * @exeception None < */ < /* ******************************************************************/ Only in .: bdeReference.class diff -bitw ./bdeReference.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeReference.java 3,6c3 < < /* *************************************************************************/ < /** < *
---
> /**************************************************************************
> 
8,21c5,11
< * Description : Define, 
< *               application message 
< *                  (instructor, date, version,...) 
< *               checkbox lower message 
< *                  (Node, Link, Text, ...)
< *               checkbox upper message 
< *                  (Create, Move, Delete, ...)
< *               default value 
< *                  (NOT_FOUND, NOT_IMPLEMENTED, ...)
< *               Object strings
< *               and etc
< * 
< */ < /* *************************************************************************/ --- > * > > * Description: > > * > > * > > * > > * > > *************************************************************************/ > 30d19 < static final String MODIFY_HISTORY = "Modified by: Hua Ren, 97s523"; 109,116c98,102 < < < < /* ******************************************************************/ < /** < *
 
<     * Method      : InitList()
<     * Description : Initialize and set the Item list
---
>     /*************************************************************
> 
>     * Method: public static void InitList(Choice ShapeList, Label ShapeListLabel)
> 
>     *
> 
>     * Description: 
> 
>     *
> 
118,130c104,106
<     * 
< * @param < *
<     * DropDownList list 
<     * 
< * @param < *
<     * ListType type of added item list 
<     * 
< * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 167,173c143,147 < < < /* ******************************************************************/ < /** < *
 
<     * Method      : getListItemValue
<     * Description : check and get an item from the Item list
---
>     /*************************************************************
> 
>     * Method: public Font bdeFont(String FontName)
> 
>     *
> 
>     * Description: 
> 
>     *
> 
175,191c149,151
<     * 
< * @param < *
<     * ListItem list item
<     * 
< * @param < *
<     * List list 
<     * 
< * @return < *
<     * Return Item, If found in item list, 
<     *        null, otherwise
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 212,216c172,176 < /* ******************************************************************/ < /** < *
 
<     * Method      : bdeFont()
<     * Description : change a font
---
>     /*************************************************************
> 
>     * Method: public Font bdeFont(String FontName)
> 
>     *
> 
>     * Description: 
> 
>     *
> 
218,229c178,180
<     * 
< * @param < *
<     * FontName selected font name
<     * 
< * @return < *
<     * CaptionFont New font
<     * 
< * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 343,347c294,299 < /* ******************************************************************/ < /** < *
 
<     * Method      : VersionMessage()
<     * Description : print out the application message
---
> 
> 
>     /*************************************************************
> 
>     * Method: public static void VersionMessage()
> 
>     *
> 
>     * Description: 
> 
>     *
> 
349,354c301,303
<     * 
< * @param None < * @return None < * @exeception None < */ < /* ******************************************************************/ --- > * > > * > > *************************************************************/ > 364d312 < System.out.println(" " + MODIFY_HISTORY); Only in .: bdeText.class diff -bitw ./bdeText.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeText.java 3,5c3 < /* *************************************************************************/ < /** < *
---
> /**************************************************************************
> 
7,14c5,11
< * Description   : It is a text object that contains the information
< *                 needed to display the Text on a  Graph.
< *                 Some of the methods in this claseeare not being 
< *                 implemented.
< * 
< */ < /* *************************************************************************/ < --- > * > > * Description: Link class > > * > > * > > * > > * > > *************************************************************************/ > 30,39c27,35 < /* *************************************************************************/ < /** < *
< * Method       : draw()
< * Description  : Not Currenly Implemented
< * Class        : bdeText
< * 
< */ < /* *************************************************************************/ < --- > /************************************************************* > > * Method: public void draw(Graphics g, int nParentX, int nParentY) > > * > > * Description: > > * > > * Class: bdeCaptionText > > * > > * > > *************************************************************/ > 58,60c54 < /* *************************************************************************/ < /** < *
---
>     /*************************************************************
> 
62,67d55
< * Description  : selet and move the text according to the state (mouse event)
< * State        : MOUSE_DOWN --> select the text
< *                MOUSE_UP   --> deselect the text
< *                MOUSE_DRAG --> move the text                  
< * Class        : bdeText
< * 
69,96c57,62 < * @param < *
< * x gives the x-position of the mouse
< * 
< * @param < *
< * y gives the y-position of the mouse
< * 
< * @param < *
< * evt gives the mouse event happened
< * 
< * @param < *
< * bdeGraph gives the graph to which the text belongs
< * 
< * < * @return < *
< * none
< * 
< * < * @exception < *
< * none
< * 
< */ < /* *************************************************************************/ --- > * Description: > > * > > * Class: bdeCaptionText > > * > > * > > *************************************************************/ > 238,247c204,212 < < /* *************************************************************************/ < /** < *
< * Method       : Delete3()
< * Description  : Not Currenly Implemented
< * Class        : bdeText
< * 
< */ < /* *************************************************************************/ --- > /************************************************************* > > * Method: Delete() > > * > > * Description: > > * > > * Class: bdeCaptionText > > * > > * > > *************************************************************/ > 276,278c241,242 < /* *************************************************************************/ < /** < *
---
> 
> 
>     /*************************************************************
> 
280,284d243
< * Description  : selet and delete the text according to the state (mouse event)
< * State        : MOUSE_DOWN --> select the text
< *                MOUSE_UP --> deselect the text                 
< * Class        : bdeText
< * 
286,314c245,250 < * @param < *
< * x gives the x-position of the mouse
< * 
< * @param < *
< * y gives the y-position of the mouse
< * 
< * @param < *
< * evt gives the mouse event happened
< * 
< * @param < *
< * bdeGraph gives the graph to which the text belongs
< * 
< * < * @return < *
< * none
< * 
< * < * exception < *
< * none
< * 
< */ < /* *************************************************************************/ < --- > * Description: > > * > > * Class: bdeCaptionText > > * > > * > > *************************************************************/ > 421,423c357 < /* *************************************************************************/ < /** < *
---
>     /*************************************************************
> 
425,429c359,365
< * Description  : Not Currenly Implemented
< * Class        : bdeText
< * 
< */ < /* *************************************************************************/ --- > * > > * Description: > > * > > * Class: bdeCaptionText > > * > > * > > *************************************************************/ > 435,437c371 < /* *************************************************************************/ < /** < *
---
>     /*************************************************************
> 
439,443c373,379
< * Description  : Not Currenly Implemented
< * Class        : bdeText
< * 
< */ < /* *************************************************************************/ --- > * > > * Description: > > * > > * Class: bdeCaptionText > > * > > * > > *************************************************************/ > 450,452c386 < /* *************************************************************************/ < /** < *
---
>     /*************************************************************
> 
454,458c388,394
< * Description  : Not Currenly Implemented
< * Class        : bdeText
< * 
< */ < /* *************************************************************************/ --- > * > > * Description: > > * > > * Class: bdeCaptionText > > * > > * > > *************************************************************/ > 464,467c400 < < /* *************************************************************************/ < /** < *
---
>     /*************************************************************
> 
469,472c402,406
< * Description  : create a text for the parent graph
< * State        : MOUSE_DOWN --> select the text                 
< * Class        : bdeText
< * 
--- > * > > * Description: > > * > > * Class: bdeCaptionText > > * > 474,501c408 < * @param < *
< * x gives the x-position of the mouse
< * 
< * @param < *
< * y gives the y-position of the mouse
< * 
< * @param < *
< * evt gives the mouse event happened
< * 
< * @param < *
< * bdeGraph gives the graph to which the text belongs
< * 
< * < * @return < *
< * none
< * 
< * < * @exception < *
< * none
< * 
< */ < /* *************************************************************************/ --- > *************************************************************/ > 624,628c531,535 < /* *************************************************************************/ < /** < *
< * Method       : getSelectedGraphCaptionText()
< * Description  : Not Currenly Implemented
---
>     /*************************************************************
> 
>     * Method: public bdeCaptionText getSelectedGraphCaptionText
> 
>     *
> 
>     * Description: Creates a database record for this object. 
> 
>     *
> 
630,633c537,539
< * 
< */ < /* *************************************************************************/ < --- > * > > * > > *************************************************************/ > 669,677c575,583 < /* *************************************************************************/ < /** < *
< * Method       : getRow()
< * Description  : Not Currenly Implemented
< * Class        : bdeText
< * 
< */ < /* *************************************************************************/ --- > /************************************************************* > > * Method: public String getRow() > > * > > * Description: Returns a single data record for a node object. > > * > > * Class: bdeNode > > * > > * > > *************************************************************/ > 696,704c602,610 < /* *************************************************************************/ < /** < *
< * Method       : Create2()
< * Description  : Not Currenly Implemented
< * Class        : bdeText
< * 
< */ < /* *************************************************************************/ --- > /************************************************************* > > * Method: Create2(bdeGraph parentGraph, int x, int y) > > * > > * Description: > > * > > * Class: bdeCaptionText > > * > > * > > *************************************************************/ > 730a637 > > Only in .: bdeToolBox.class diff -bitw ./bdeToolBox.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/bdeToolBox.java 6,8c6 < /* ************************************************************/ < /** < *
---
> /*************************************************************
> 
10,15c8,14
<  * Description   : This class is a sub-class of the Java Panel
<  *                 class and is the container for the tool box menu 
<  *                 functions
<  * 
< */ < /* ************************************************************/ --- > * > > * Description: ToolBox class for bde2Java Project. > > * > > * > > * > > * > > *************************************************************/ > 58,62c57,61 < /* ************************************************************/ < /** < *
< * Method       : bdeToolBox()
< * Description  : Init, set up and show check box list
---
>     /*************************************************************
> 
>     * Method: bdeToolBox(bde2JavaApplet Parent)
> 
>     *
> 
>     * Description: 
> 
>     *
> 
64,72c63,65
< * 
< * @param Parent graphic context < * @param x window coordinate < * @param y window coordinate < * @param width check box < * @param height check box < * @return none < */ < /* ************************************************************/ --- > * > > * > > *************************************************************/ > 199,203c192,196 < /* ************************************************************/ < /** < *
<     * Method       : paint() 
<     * Description  : Update and display the output to the window
---
>     /*************************************************************
> 
>     * Method: public void paint(Graphics g) 
> 
>     *
> 
>     * Description: 
> 
>     *
> 
205,209c198,200
<     * 
< * @param g graph object that provide the graphic context < * @return none < */ < /* ************************************************************/ --- > * > > * > > *************************************************************/ > 272,283c263,267 < < /* ************************************************************/ < /** < *
<  * Method       : handleEvent()
<  * Description  : Enable/disable upper or lower check box items
<  * State info   : evt.target = NODE      --> show node related attributes
<  *                evt.target = LINK      --> show link related attributes
<  *                evt.target = TEXT      --> show text related attributes
<  *                evt.target = BENDPOINT --> show bendpoint related attributes
<  *                evt.target = GRAPH     --> show graph related attributes
<  *                evt.target = CAPTION   --> show caption related attributes
---
>     /*************************************************************
> 
>     * Method: public boolean handleEvent(Event evt)
> 
>     *
> 
>     * Description: 
> 
>     *
> 
285,290c269,271
<  * 
< * @param evt evt.id < * @return true or false < */ < /* ************************************************************/ < --- > * > > * > > *************************************************************/ > 460a442 > > Only in .: hren_jvinarub.dif Only in .: menuList.class diff -bitw ./menuList.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/menuList.java 5,13c5,13 < /* *************************************************************************/ < /** < *
< * Class         : menulist
< * Description   : It is used to display a list of attributes or messages
< *                 in a box
< * 
< */ < /* *************************************************************************/ --- > /************************************************************************** > > * Class: bdeBendPoint > > * > > * Description: Link class > > * > > * > > * > > * > > *************************************************************************/ > 62,85d61 < /* *************************************************************************/ < /** < *
< * Method       : setList()
< * Description  : It get the node ready to display its attributes
< * Class        : menuList
< * 
< * @param < *
< * NewnodeList gives the node whose attrbites are to be displayed
< * 
< * < * @return < *
 
< * none 
< * 
< * < * @exception < *
< * none
< * 
< */ < /* *************************************************************************/ < 91,99d66 < /* *************************************************************************/ < /** < *
< * Method       : setParent()
< * Description  : Not currently implemented
< * Class        : menuList
< * 
< */ < /* *************************************************************************/ 106,129d72 < /* *************************************************************************/ < /** < *
< * Method       : paint()
< * Description  : It paint the box and display the attributes of the node
< * Class        : menuList
< * 
< * @param < *
< * g gives the graph object for display
< * 
< * < * @return < *
 
< * none 
< * 
< * < * @exception < *
< * none
< * 
< */ < /* *************************************************************************/ < 185,208d127 < /* *************************************************************************/ < /** < *
< * Method       : handleEvent()
< * Description  : hide the current box and redisplay the original graph
< * Class        : menuList
< * 
< * @param < *
< * evt gives the mouse event happened
< * 
< * < * @return < *
 
< * always returns false
< * 
< * < * @exception < *
< * none
< * 
< */ < /* *************************************************************************/ < Only in .: menubox.class diff -bitw ./menubox.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/menubox.java 6,15c6,14 < < /* *************************************************************************/ < /** < *
< * Class         : menubox
< * Description   : Put the bde diagram in a box which is a Panel object
< * 
< */ < /* *************************************************************************/ < --- > /************************************************************************** > > * Class: bdeBendPoint > > * > > * Description: Link class > > * > > * > > * > > * > > *************************************************************************/ > 29,38d27 < < /* *************************************************************************/ < /** < *
< * Method       : init()
< * Description  : Not currently implemented
< * Class        : menubox
< * 
< */ < /* *************************************************************************/ 61,87d49 < < < /* *************************************************************************/ < /** < *
< * Method       : paint()
< * Description  : Draw out the box
< * Class        : menubox
< * 
< * < * @param < *
< * g gives the graph object
< * 
< * < * @return < *
< * none
< * 
< * < * @exception < *
< * none
< * 
< */ < /* < /* *************************************************************************/ Only in .: menutest.class diff -bitw ./menutest.java /usr/proj3/case/96f523/bde2vjpp/jvinarub/code/source/menutest.java 7,15c7,15 < < /* *************************************************************************/ < /** < *
< * Class         : menutest
< * Description   : Display the menu bar
< * 
< */ < /* *************************************************************************/ --- > /************************************************************************** > > * Class: bdeBendPoint > > * > > * Description: Link class > > * > > * > > * > > * > > *************************************************************************/ > 48,73d47 < /* *************************************************************************/ < /** < *
< * Method       : paint()
< * Description  : Display the menu bar
< * Class        : menutest
< * 
< * @param < *
< * g gives the Graphics object
< * 
< * < * @return < *
 
< * none 
< * 
< * < * @exception < *
< * none
< * 
< */ < /* *************************************************************************/ < < < Only in .: test.dat Only in .: test2.dat Only in .: test2HG000001.gif Only in .: test2HG000002.gif Only in .: test2HG000002.ps Only in .: typescript