summaryrefslogtreecommitdiff
path: root/NET/worlds/console/Overlay.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/console/Overlay.java
downloadworlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz
worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/console/Overlay.java')
-rw-r--r--NET/worlds/console/Overlay.java248
1 files changed, 248 insertions, 0 deletions
diff --git a/NET/worlds/console/Overlay.java b/NET/worlds/console/Overlay.java
new file mode 100644
index 0000000..f56229a
--- /dev/null
+++ b/NET/worlds/console/Overlay.java
@@ -0,0 +1,248 @@
+/* */ 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
+ */ \ No newline at end of file