home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.text.html;
-
- import java.awt.Image;
- import java.awt.image.ImageObserver;
-
- class HTMLRootView$HTMLRootImageObserver implements ImageObserver {
- // $FF: synthetic field
- private final HTMLRootView this$0;
-
- public HTMLRootView$HTMLRootImageObserver(HTMLRootView var1) {
- this.this$0 = var1;
- this.this$0 = var1;
- }
-
- public boolean imageUpdate(Image var1, int var2, int var3, int var4, int var5, int var6) {
- if ((var2 & 64) > 0 || (var2 & 128) > 0) {
- this.this$0.bImageLoadFailed = true;
- }
-
- if ((var2 & 1) > 0) {
- this.this$0.imgWidth = var5;
- }
-
- if ((var2 & 2) > 0) {
- this.this$0.imgHeight = var6;
- }
-
- if ((var2 & 8) > 0 || (var2 & 32) > 0) {
- this.this$0.drawWidth = var5 > this.this$0.drawWidth ? var5 : this.this$0.drawWidth;
- this.this$0.drawHeight = var6 > this.this$0.drawHeight ? var6 : this.this$0.drawHeight;
- }
-
- if (this.this$0.imgWidth > 0 && this.this$0.imgHeight > 0 && this.this$0.imgWidth == this.this$0.drawWidth && this.this$0.imgHeight == this.this$0.drawHeight) {
- this.this$0.bImageLoaded = true;
- this.this$0.getContainer().repaint();
- }
-
- return !this.this$0.bImageLoaded;
- }
- }
-