Message 1/265 From Bob Lechner Mar 20, 05 04:20:30 PM -0500 Subject: bde2java testing and import to bdeunix. To: bswathi2@yahoo.co.in, Swathi_Boddireddy@student.uml.edu, sboddire@cs.uml.edu, sfrye@cs.uml.edu (Scot Frye), mmulaka@cs.uml.edu, Mallika.Mulakaluri@sun.com, normgross@yahoo.com (Norm Gross), smalladi@envoyww.com, lmalladi@cs.uml.edu, harshjha82@yahoo.com, hjha@cs.uml.edu, kevincy@netscape.net, kyang@cs.uml.edu, lechner@cs.uml.edu (Bob Lechner) Date: Sun, 20 Mar 2005 16:20:30 -0500 (EST) Cc: ralmonte@cs.uml.edu (Roberto Almonte), mlauzier@perlstar.com, mlauzier@cs.uml.edu Last fall Kevin Yang updated bde2java from his predecessors. Kevin inherited a version that over 2 semesters provided a Client and Server code partition (, and separated two links between same node pair that used to be superimposed. Kevin made the WC units in HN and CG compatible with bdeunix and fixed some other bugs, so it would work locally or remotely (but not both: you can't move a diagram to/from a remote host via bde2java04f). Below I inserted the file bde2java04fTesting050320.txt from $PH/COOL-BDE/bde2java/bde2java04f/bde2java04fTests050320/ That directory contains some test files from my tests. You can also run bde2java from 04f522 via an Internet browser, using the link bde2java -> /usr/proj3/case/04f522/kyang/bde2java in $PH/COOL-BDE/bde2java/bde2java04f/. (I moved all bde*jav* projec links under COOL-BDE/bde2java.) The window that appears has a Run command button. At the user/passwd prompt, the host's account and password and hostname must be entered. The port# can be skipped I believe. There are common problems with Text grabbing positioning and moving, Postscript Print2file and GIF saving; bde2java has some specific limitations such as .ps file naming and link segment restyling. GhostScript on saturn cannot view .gif files from bde. Postscrit files from bde2java04s are too small, in upper left quadrant of a Landscape page. 05s523 Java programmers might want to redesign bde2java to call on genjava library methods to do persistent I/O and navigate internal data structures (new classes). Current classes would have to change for compatibility with genjava- provided class definitions and navigational structures. First priority: verify that java interfaces can support bde2java classes from genjava. These might have problems inheriting from Java library ancestors. ===================================== :r bde2java04fTesting050320.txt >From lechner@cs.uml.edu Sun Mar 20 01:09:56 2005 Subject: More tests on bde2javao4f To: kevincy@netscape.net, kyang@cs.uml.edu Date: Sun, 20 Mar 2005 01:09:55 -0500 (EST) Tests of bde2java04f, 050319-20: RJLRef: $PH/COOL-BDE/bde2java/bde2java04f/bde2java04fTests050320/bde2java04fTesting050320.txt (This is a continuation of bde2java04fTest050319.txt) Update 050320:1530 at end adds results on loading bde2java04f output files into bdeunix.) ------------------------------------ HA and GX: Multiple text lines can be added to HN and CG. When Text Create is selected again, any text that wrapped around from the previous line comes up again . This might be added to or stay in the GX or HA lines. Text Move ONLY works for the first line of text, in Captions. It should drag ALL lines along with the first one not leave the lower lines behind when line 1 was moved. Added lines can also be selected, but only if inside the border. (They should be selectable even outside their parent node, regardless of whether he Node is selected first and remembered. Text lines can be moved outside but only while touching [?] the node border. These are not selectable again except possibly if overlapping the border. Rendering text to .gif or .ps files for printing is problematic. It may disapear or overlap or relocate to ulcorner. See last parag. below. HL and HP: After Bendpts are selected for Bendpt Restyle, they remain highlighted forever, on all links. This prevents display of future link selections. (e.g. for Link Delete). Link and Bendpt Delete work OK. Node Delete is a No-Op until connected links are removed first. All other deletes work immediately and delete their text content. Bendpt Restyle: each click cycles a bendpt (except the origin) arrowhead direction thru forward, reverse, and none. There are no link segment pattern or width options like bdeUnix. File I/O: File Saveas always displays local PC window. It's a pain to navigate from My Doc'ts (default) to public_html/... I don't know how to update a file on the remote host.??? Text printout: File Print has save-as-ps and save-as-gif optiona, both buggy.s The .ps files either lose all text or ovelap it at ulcorner. The .gif files doshow test in approx the right places. On WInXP PC< Adobe converst both .gif and .ps to .pdf before printing. Diagrams are small and grainy. These test files I managed to save to PC in My Doc'ts. Later I moved them to the test directory C:\Documents and Settings\Robert Lechner\ public_html\COOL-BDE\bde2java\bde2java04fTests050320 I copied these files to $PH/COOL-BDE/bde2java/bde2java04f/bde2java04fTests050320 RJL Update 050320:1530 I copied bde2javaTest050320b.bde to bde2javaTest050320b.dat so bdeunix would load it. That worked - I could see same 2 diagrams. Save/reopen also worked. bdeunix cannot select text; the parent node selection fails. Parent CG selection may work but text not selectable. bde2gif is not compiled into this version. The print as .ps does work - see .ps file. HG000002.ps was created in bde2java04fxa from bde2javaTest050320b.bde; bde2javaTest050320bHG000002.ps was created in bdeunix from bde2javaTest050320b.dat. TBFixed: bde2java04f needs filename prefix to HG#.ps Here is diff betwen java and unix ($RL/bde/rc/fprint) .ps output: TBD: Pass Text macro string argument (missing from both versions of HG2.ps) TBD: Filter to quote mismatched '('')' in Text string argument to PS. ------------------------------------------------ saturn.cs.uml.edu(138)> diff HG000002.ps bde2javaTest050320bHG000002.ps 5,6c5 < %%Title: C:\Documents and Settings\Robert Lechner\My Documents.ps < --- > %%Title: bde2javaTest050320bHG000002.ps 145,151c144,154 < 0 -560 ( Guest 20Mar2005/023 C:\Documents and Settings\Robert Lechner\Desktop) Text < 124 -104 100 50 Rectangle < 174 -79 () Text < 30 -219 100 50 Rectangle < 80 -194 () Text < 196 -213 100 50 Rectangle < 246 -188 () Text --- > 173.000000 -378.000000 (CG1 GX2: Can't select/move Text.) Text > 173.000000 -378.000000 () Text > 196.000000 -213.000000 100.000000 50.000000 Rectangle > 246.000000 -188.000000 () Text > 236.000000 -148.000000 (HN000003 text line 1) Text > 30.000000 -219.000000 100.000000 50.000000 Rectangle > 80.000000 -194.000000 () Text > 63.000000 -194.000000 (HN000002) Text > 124.000000 -104.000000 100.000000 50.000000 Rectangle > 174.000000 -79.000000 () Text > 164.000000 -39.000000 (HN000001 Text Line 1) Text saturn.cs.uml.edu(139)>