// 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.*;
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");
// 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);
};
*/
- 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) {
}
/** 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));