/* */ package NET.worlds.console; /* */ /* */ import java.awt.Component; /* */ import java.awt.Dimension; /* */ import java.awt.Graphics; /* */ import java.awt.Image; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ class Overlay /* */ { /* */ private String name; /* */ private int x; /* */ private int y; /* */ private Image image; /* */ private Dimension dim; /* */ /* */ public Overlay(String name, int x, int y) /* */ { /* 209 */ this.name = name; /* 210 */ this.x = x; /* 211 */ this.y = y; /* 212 */ this.image = null; /* */ } /* */ /* */ public void paint(Graphics g, Component c) { /* 216 */ if (this.image != null) /* 217 */ g.drawImage(this.image, this.x, this.y, c); /* */ } /* */ /* */ public Dimension imageSize(Component c) { /* 221 */ if (this.image == null) { /* 222 */ this.image = SplashCanvas.getEarlyImage(this.name, c); /* 223 */ if (this.image != null) { /* 224 */ int width = this.image.getWidth(c); /* 225 */ int height = this.image.getHeight(c); /* 226 */ if ((width != -1) && (height != -1)) /* 227 */ return this.dim = new Dimension(width, height); /* */ } /* 229 */ this.dim = new Dimension(0, 0); /* */ } /* 231 */ return this.dim; /* */ } /* */ /* */ public boolean matches(String name, int x, int y) { /* 235 */ return (x == this.x) && (y == this.y) && (name.equals(this.name)); /* */ } /* */ /* */ public void flush() { /* 239 */ this.image.flush(); /* 240 */ this.image = null; /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\Overlay.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */