Changeset 11716 for branches/gsdl-2_70-distribution-branch/gsdl
- Timestamp:
- 2006-04-26T16:56:15+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gsdl-2_70-distribution-branch/gsdl/src/java/org/nzdl/gsdl/GsdlCollageApplet/GsdlCollageApplet.java
r11565 r11716 57 57 58 58 /** Time lapse between repainting of the applet */ 59 protected int refreshDelay_ = 1500;59 protected int refreshDelay_ = 2000; 60 60 61 61 /** Stores an image and url pair and provides associated methods */ … … 123 123 } 124 124 125 125 126 if (verbosity_ >= 4) { 126 127 System.err.println("Got parameters."); 127 128 } 128 verbosity_=0; 129 129 130 if (caption_param != null && !caption_param.startsWith("_")) { 130 131 caption_ = caption_param; … … 238 239 239 240 240 241 241 /** Goes to the url associated with the image that is clicked on screen<br> 242 242 * Displays the url containing the image in a new window */ … … 251 251 try { 252 252 // displays the associated url in a new window 253 URL from_url = new URL(cimage.from_url_ + "#" + cimage.name_); 253 URL from_url = null; 254 255 java.util.regex.Pattern p = java.util.regex.Pattern.compile("cl=CL\\d(\\.\\d)*\\s"); 256 java.util.regex.Matcher m = p.matcher(cimage.from_url_.trim()+" "); 257 258 if (m.find() ){ 259 from_url = cimage.url_; 260 } 261 else{ 262 from_url = new URL(cimage.from_url_ + "#" + cimage.name_); 263 } 254 264 getAppletContext().showDocument(from_url,"gsdlDoc"); 255 265 } 256 catch (MalformedURLException e) { 266 catch (MalformedURLException e) { 257 267 e.printStackTrace(); 258 268 } … … 266 276 { 267 277 278 download_thread_.start(); 279 280 display_thread_.start(); 281 268 282 paint = new Thread(new Runnable(){ 269 283 public void run() { … … 276 290 repaint(); 277 291 278 Thread.sleep( 1000);292 Thread.sleep(2000); 279 293 curr_thread = Thread.currentThread(); 280 294 } … … 282 296 283 297 } catch (Exception e) { 284 e.printStackTrace();298 285 299 } 286 300 } … … 290 304 291 305 paint.start(); 292 293 294 download_thread_.start(); 295 296 display_thread_.start(); 297 306 298 307 } 299 308
Note:
See TracChangeset
for help on using the changeset viewer.