mass rename and rebranding from xwt to ibex - fixed to use ixt files
[org.ibex.core.git] / src / org / ibex / plat / AWT.java
similarity index 97%
rename from src/org/xwt/plat/AWT.java
rename to src/org/ibex/plat/AWT.java
index 7c775bb..c247a97 100644 (file)
@@ -1,12 +1,10 @@
 // Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL]
-package org.xwt.plat;
+package org.ibex.plat;
 
-import org.xwt.*;
-import org.xwt.util.*;
-import java.net.*;
+import org.ibex.*;
+import org.ibex.util.*;
 import java.io.*;
-import org.xwt.js.*;
-import java.util.*;
+import org.ibex.js.*;
 import java.awt.*;
 import java.awt.datatransfer.*;
 import java.awt.image.*;
@@ -29,9 +27,9 @@ public class AWT extends JVM {
 
     protected void _criticalAbort(String message) {
         if (Log.on) Log.info(this, message);
-        final Dialog d = new Dialog(new Frame(), "XWT Cannot Continue");
+        final Dialog d = new Dialog(new Frame(), "Ibex Cannot Continue");
         d.setLayout(new BorderLayout());
-        TextArea ta = new TextArea("XWT cannot continue because:\n\n" + message, 10, 80);
+        TextArea ta = new TextArea("Ibex cannot continue because:\n\n" + message, 10, 80);
         ta.setEditable(false);
         d.add(ta, "Center");
         Button b = new Button("OK");
@@ -115,8 +113,8 @@ public class AWT extends JVM {
 
     // Inner Classes /////////////////////////////////////////////////////////////////////////////////////
 
-    protected org.xwt.Font.Glyph _createGlyph(org.xwt.Font f, char c) { return new AWTGlyph(f, c); }
-    protected static class AWTGlyph extends org.xwt.Font.Glyph {
+    protected org.ibex.Font.Glyph _createGlyph(org.ibex.Font f, char c) { return new AWTGlyph(f, c); }
+    protected static class AWTGlyph extends org.ibex.Font.Glyph {
         private Image i = null;
         private static ColorModel cmodel = new DirectColorModel(32, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000);
 
@@ -130,7 +128,7 @@ public class AWT extends JVM {
         };
         */
 
-        public AWTGlyph(org.xwt.Font f, char c) { super(f, c); }
+        public AWTGlyph(org.ibex.Font f, char c) { super(f, c); }
         Image getImage() {
             if (i == null && isLoaded) {
 
@@ -215,7 +213,7 @@ public class AWT extends JVM {
         }
 
         /** implemented with java.awt 1.1's setXORMode() */
-        public void drawGlyph(org.xwt.Font.Glyph source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb) {
+        public void drawGlyph(org.ibex.Font.Glyph source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb) {
 
             // XOR the target region
             g.setXORMode(new Color((rgb & 0x00ff0000) >> 16, (rgb & 0x0000ff00) >> 8, rgb & 0x000000ff));