X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fplat%2FAWT.java;fp=src%2Forg%2Fxwt%2Fplat%2FAWT.java;h=c247a9782d2911544f3f55085701d0e9f0bd024a;hp=7c775bb8902549b0b409b574d9f0ecbd47013a15;hb=3591b88b94a6bb378af3d4abe6eb5233ce583104;hpb=de378041d5ca2aca1a2b5a31ef15ae90a86c977f diff --git a/src/org/xwt/plat/AWT.java b/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 --- a/src/org/xwt/plat/AWT.java +++ b/src/org/ibex/plat/AWT.java @@ -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));