Produced by Araxis Merge on 12/5/2017 12:06:51 PM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\VixGuiImageDisplayApplet\main\src\java\gov\va\med\imaging\dicomviewer | ViewerApplet.java | Mon Dec 4 21:34:38 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\VixGuiImageDisplayApplet\main\src\java\gov\va\med\imaging\dicomviewer | ViewerApplet.java | Mon Dec 4 22:07:24 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 3 | 254 |
| Changed | 2 | 4 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /** | |
| 2 | * Package : MAG - Vi stA Imagin g | |
| 3 | * WARNING : Per VHA Directive 2004-038, this routi ne should not be mod ified. | |
| 4 | * Date Cr eated: Aug 18, 2008 | |
| 5 | * Site Na me: Washi ngton OI F ield Offic e, Silver Spring, MD | |
| 6 | * @author
|
|
| 7 | * @versio n 1.0 | |
| 8 | * | |
| 9 | * ------- ---------- ---------- ---------- ---------- ---------- ------- | |
| 10 | * Propert y of the U S Governme nt. | |
| 11 | * No perm ission to copy or re distribute this soft ware is gi ven. | |
| 12 | * Use of unreleased versions of this so ftware req uires the user | |
| 13 | * to exec ute a writ ten test a greement w ith the Vi stA Imagin g | |
| 14 | * Develop ment Offic e of the D epartment of Veteran s Affairs, | |
| 15 | * telepho ne (301) 7 34-0100. | |
| 16 | * | |
| 17 | * The Foo d and Drug Administr ation clas sifies thi s software as | |
| 18 | * a Class II medica l device. As such, it may not be change d | |
| 19 | * in any way. Modi fications to this so ftware may result in an | |
| 20 | * adulter ated medic al device under 21CF R820, the use of whi ch | |
| 21 | * is cons idered to be a viola tion of US Federal S tatutes. | |
| 22 | * ------- ---------- ---------- ---------- ---------- ---------- ------- | |
| 23 | */ | |
| 24 | package go v.va.med.i maging.dic omviewer; | |
| 25 | ||
| 26 | import jav a.applet.A pplet; | |
| 27 | import jav a.awt.Head lessExcept ion; | |
| 28 | import jav a.net.URL; | |
| 29 | import org .apache.lo gging.log4 j.LogManag er; | |
| 30 | import org .apache.lo gging.log4 j.Logger; | |
| 31 | ||
| 32 | /** | |
| 33 | * @author
|
|
| 34 | * | |
| 35 | */ | |
| 36 | public cla ss ViewerA pplet | |
| 37 | extends Ap plet | |
| 38 | { | |
| 39 | pr ivate stat ic final l ong serial VersionUID = 2L; | |
| 40 | pr ivate View erAppletPa rameter pa rameters; | |
| 41 | pr ivate View erFrame fr ame; | |
| 42 | pr ivate Logg er logger; | |
| 43 | ||
| 44 | /* * | |
| 45 | * @throws H eadlessExc eption | |
| 46 | * / | |
| 47 | pu blic Viewe rApplet() | |
| 48 | th rows Headl essExcepti on | |
| 49 | { | |
| 50 | logg er = LogMa nager.getL ogger(this .getClass( ).getName( )); | |
| 51 | ||
| 52 | fram e = new Vi ewerFrame( true); | |
| 53 | ||
| 54 | //ja va.awt.Eve ntQueue.in vokeLater( new Runnab le() { | |
| 55 | // public void run( ) | |
| 56 | // { | |
| 57 | // //defaul tDevice.se tFullScree nWindow(fr ame); | |
| 58 | // frame.se tVisible(t rue); | |
| 59 | // } | |
| 60 | //}) ; | |
| 61 | } | |
| 62 | ||
| 63 | @O verride | |
| 64 | public void init () | |
| 65 | { | |
| 66 | super.in it(); | |
| 67 | para meters = n ew ViewerA ppletParam eter(this) ; | |
| 68 | ||
| 69 | Stri ng userIde ntificatio n = parame ters.getPa rameter(Vi ewerApplet Parameter. IDENTITY, null); | |
| 70 | Stri ng userCre dentials = parameter s.getParam eter(Viewe rAppletPar ameter.CRE DENTIALS, null); | |
| 71 | ||
| 72 | if(u serIdentif ication != null) | |
| 73 | frame. setSecurit yContext(u serIdentif ication, u serCredent ials); | |
| 74 | ||
| 75 | Stri ng[] image Urls = par ameters.ge tParameter sAsStringA rray(Viewe rAppletPar ameter.IMA GE_URL_PAT TERN); | |
| 76 | ||
| 77 | for( String ima geUrlAsStr ing : imag eUrls) | |
| 78 | openIm age(imageU rlAsString ); | |
| 79 | } | |
| 80 | ||
| 81 | /* * | |
| 82 | * | |
| 83 | * @param us erIdentifi cation | |
| 84 | * @param us erCredenti als | |
| 85 | * / | |
| 86 | pu blic void setSecurit yContext(S tring user Identifica tion, Stri ng userCre dentials) | |
| 87 | { | |
| 88 | Secu rityContex t.initiali ze(userIde ntificatio n, userCre dentials); | |
| 89 | } | |
| 90 | ||
| 91 | @O verride | |
| 92 | public void star t() | |
| 93 | { | |
| 94 | super.st art(); | |
| 95 | if(frame .isDisplay ingImages( )) | |
| 96 | fram e.setVisib le(true); | |
| 97 | } | |
| 98 | ||
| 99 | /* * | |
| 100 | * | |
| 101 | * @param im ageUrlAsSt ring | |
| 102 | * / | |
| 103 | pu blic void openImage( String ima geUrlAsStr ing) | |
| 104 | { | |
| 105 | logg er.trace(" Opening '" + imageUr lAsString + "'."); | |
| 106 | fram e.showImag e(imageUrl AsString); | |
| 107 | frame.se tVisible(t rue); | |
| 108 | } | |
| 109 | ||
| 110 | pu blic void closeAllIm age() | |
| 111 | { | |
| 112 | fram e.closeAll (); | |
| 113 | } | |
| 114 | ||
| 115 | @O verride | |
| 116 | public void stop () | |
| 117 | { | |
| 118 | frame.se tVisible(f alse); | |
| 119 | super.st op(); | |
| 120 | } | |
| 121 | ||
| 122 | @O verride | |
| 123 | public void dest roy() | |
| 124 | { | |
| 125 | setS ecurityCon text(null, null); | |
| 126 | super.de stroy(); | |
| 127 | } | |
| 128 | ||
| 129 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.