Examples of TileComputationListener


Examples of javax.media.jai.TileComputationListener

/*      */
/* 1338 */           if (req.listeners != null) {
/* 1339 */             TileRequest[] reqArray = { req };
/* 1340 */             Iterator iter = req.listeners.iterator();
/* 1341 */             while (iter.hasNext()) {
/* 1342 */               TileComputationListener listener = (TileComputationListener)iter.next();
/*      */
/* 1344 */               listener.tileCancelled(this, reqArray, req.image, p.x, p.y);
/*      */             }
/*      */           }
/*      */         }
/*      */       }
/*      */     }
View Full Code Here

Examples of javax.media.jai.TileComputationListener

/*      */           {
/*  748 */             tileStatus = new Integer(2);
/*      */
/*  750 */             request.tileStatus.put(p, tileStatus);
/*      */
/*  752 */             TileComputationListener listener = (TileComputationListener)iter.next();
/*      */
/*  754 */             listener.tileComputed(this, reqs, owner, p.x, p.y, tiles[j]);
/*      */           }
/*      */
/*      */         }
/*      */         catch (Exception e)
/*      */         {
/*  761 */           exception = e;
/*      */
/*  764 */           break;
/*      */         }
/*  735 */         i++;
/*      */       }
/*      */
/*      */     }
/*      */
/*  804 */     if ((exception != null) && (request != null) && (request.listeners != null)) {
/*  805 */       int lastOffset = j;
/*  806 */       int numFailed = numTiles - (lastOffset - offset);
/*      */
/*  810 */       int i = 0; for (int k = lastOffset; i < numFailed; i++) {
/*  811 */         Integer tileStatus = new Integer(4);
/*      */
/*  813 */         request.tileStatus.put(tileIndices[(k++)], tileStatus);
/*      */       }
/*      */
/*  817 */       Request[] reqs = { request };
/*  818 */       int i = 0; for (int k = lastOffset; i < numFailed; i++) {
/*  819 */         Point p = tileIndices[(k++)];
/*  820 */         Iterator iter = request.listeners.iterator();
/*  821 */         while (iter.hasNext()) {
/*  822 */           TileComputationListener listener = (TileComputationListener)iter.next();
/*      */
/*  824 */           listener.tileComputationFailure(this, reqs, owner, p.x, p.y, exception);
/*      */         }
/*      */
/*      */       }
/*      */
/*      */     }
View Full Code Here

Examples of javax.media.jai.TileComputationListener

/*      */
/* 1338 */           if (req.listeners != null) {
/* 1339 */             TileRequest[] reqArray = { req };
/* 1340 */             Iterator iter = req.listeners.iterator();
/* 1341 */             while (iter.hasNext()) {
/* 1342 */               TileComputationListener listener = (TileComputationListener)iter.next();
/*      */
/* 1344 */               listener.tileCancelled(this, reqArray, req.image, p.x, p.y);
/*      */             }
/*      */           }
/*      */         }
/*      */       }
/*      */     }
View Full Code Here

Examples of javax.media.jai.TileComputationListener

/* 278 */           Iterator iter = listeners.iterator();
/*     */
/* 281 */           if (this.exception == null)
/*     */           {
/* 283 */             while (iter.hasNext()) {
/* 284 */               TileComputationListener listener = (TileComputationListener)iter.next();
/*     */
/* 286 */               listener.tileComputed(this.scheduler, requests, this.owner, this.tileX, this.tileY, this.tiles[this.offset]);
/*     */             }
/*     */
/*     */           }
/*     */
/* 292 */           while (iter.hasNext()) {
/* 293 */             TileComputationListener listener = (TileComputationListener)iter.next();
/*     */
/* 295 */             listener.tileComputationFailure(this.scheduler, requests, this.owner, this.tileX, this.tileY, this.exception);
/*     */           }
/*     */
/*     */         }
/*     */
/*     */       }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.