// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL]
-package org.ibex;
+package org.ibex.plat;
import java.lang.reflect.*;
import java.net.*;
import java.io.*;
import org.ibex.js.*;
import org.ibex.util.*;
+import org.ibex.graphics.*;
+import org.ibex.core.*;
+import org.ibex.graphics.*;
+import org.ibex.core.*;
+import org.ibex.net.*;
/**
* Abstracts away the small irregularities in JVM implementations.
// Static Data /////////////////////////////////////////////////////////////////////////////////////
- static boolean clipboardReadEnabled = false; ///< true iff inside a C-v/A-v/Press3 trap handler
- static Platform platform = null; ///< The appropriate Platform object for this JVM
- static boolean alreadyDetectedProxy = false; ///< true if proxy autodetection has already been run
- static org.ibex.HTTP.Proxy cachedProxyInfo = null; ///< the result of proxy autodetection
+ public static boolean clipboardReadEnabled = false; ///< true iff inside a C-v/A-v/Press3 trap handler
+ public static Platform platform = null; ///< The appropriate Platform object for this JVM
+ public static boolean alreadyDetectedProxy = false; ///< true if proxy autodetection has already been run
+ public static org.ibex.net.HTTP.Proxy cachedProxyInfo = null; ///< the result of proxy autodetection
public static String build = "unknown"; ///< the current build
// VM Detection Logic /////////////////////////////////////////////////////////////////////
protected Surface _createSurface(Box b, boolean framed) { return null; }
protected Picture _createPicture(JS r) { return null; }
protected PixelBuffer _createPixelBuffer(int w, int h, Surface owner) { return null; }
- protected Font.Glyph _createGlyph(org.ibex.Font f, char c) { return new DefaultGlyph(f, c); }
+ protected Font.Glyph _createGlyph(org.ibex.graphics.Font f, char c) { return new DefaultGlyph(f, c); }
public static PixelBuffer createPixelBuffer(int w, int h, Surface s) { return platform._createPixelBuffer(w, h, s); }
public static Picture createPicture(JS r) { return platform._createPicture(r); }
- public static Font.Glyph createGlyph(org.ibex.Font f, char c) { return platform._createGlyph(f, c); }
+ public static Font.Glyph createGlyph(org.ibex.graphics.Font f, char c) { return platform._createGlyph(f, c); }
public static Surface createSurface(Box b, boolean framed, boolean refreshable) {
Surface ret = platform._createSurface(b, framed);
ret.setInvisible(false);
}
/** detects proxy settings */
- protected synchronized org.ibex.HTTP.Proxy _detectProxy() { return null; }
- public static synchronized org.ibex.HTTP.Proxy detectProxy() {
+ protected synchronized org.ibex.net.HTTP.Proxy _detectProxy() { return null; }
+ public static synchronized org.ibex.net.HTTP.Proxy detectProxy() {
if (cachedProxyInfo != null) return cachedProxyInfo;
if (alreadyDetectedProxy) return null;
alreadyDetectedProxy = true;
Log.info(Platform.class, "attempting environment-variable DNS proxy detection");
- cachedProxyInfo = org.ibex.HTTP.Proxy.detectProxyViaManual();
+ cachedProxyInfo = org.ibex.net.HTTP.Proxy.detectProxyViaManual();
if (cachedProxyInfo != null) return cachedProxyInfo;
Log.info(Platform.class, "attempting " + platform.getClass().getName() + " proxy detection");
// FEATURE: be more efficient for many of the subclasses
public static class DefaultGlyph extends Font.Glyph {
private Picture p = null;
- public DefaultGlyph(org.ibex.Font f, char c) { super(f, c); }
+ public DefaultGlyph(org.ibex.graphics.Font f, char c) { super(f, c); }
public Picture getPicture() {
if (p == null && isLoaded) {
Picture p = createPicture(null);