home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 June / INTERNET92.ISO / pc / software / windows / building / visual_dhtml / visualdhtmlwin2000.exe / ACgldat.___ (.txt) < prev    next >
Encoding:
Java Class File  |  2001-10-19  |  1.5 KB  |  75 lines

  1. import java.awt.Color;
  2. import java.awt.Dimension;
  3. import java.awt.Point;
  4.  
  5. class ACgldat {
  6.    public static int infW;
  7.    public static int infH;
  8.    public static int infX;
  9.    public static int infY;
  10.    public static Dimension helpSize;
  11.    public static Dimension helpLocal;
  12.    public static Color appRunnBGColor;
  13.    public static int appBWidth;
  14.    public static int appBHeight;
  15.    public static String clipboard;
  16.    public static String workingDirectory;
  17.    public static Dimension tesize;
  18.    public static Dimension texy;
  19.    public static ACIntf iface;
  20.    public static Dimension screenSize;
  21.    public static Point ibLocal;
  22.    public static int ibwidth;
  23.  
  24.    public static int getCenterScreenX(int var0) {
  25.       return (screenSize.width - var0) / 2;
  26.    }
  27.  
  28.    static void setInterfaceDimensions(int var0, int var1) {
  29.       infW = var0;
  30.       infH = var1;
  31.    }
  32.  
  33.    public void initWinCoords() {
  34.       int var1 = 800;
  35.       int var2 = 600;
  36.       if (screenSize.width <= 800) {
  37.          var1 = screenSize.width - 100;
  38.       }
  39.  
  40.       if (screenSize.height <= 600) {
  41.          var2 = screenSize.height - 100;
  42.       }
  43.  
  44.       tesize = new Dimension(var1, var2);
  45.       texy = new Dimension((screenSize.width - tesize.width) / 2, (screenSize.height - tesize.height) / 2);
  46.       helpSize = new Dimension(200, 300);
  47.       helpLocal = new Dimension((screenSize.width - tesize.width) / 2, (screenSize.height - tesize.height) / 2);
  48.    }
  49.  
  50.    static {
  51.       appRunnBGColor = Color.gray;
  52.       appBWidth = 46;
  53.       appBHeight = 32;
  54.       clipboard = "test";
  55.       workingDirectory = "";
  56.    }
  57.  
  58.    public static int getCenterScreenY(int var0) {
  59.       return (screenSize.height - var0) / 2;
  60.    }
  61.  
  62.    static void setInterfaceLocation(int var0, int var1) {
  63.       infX = var0;
  64.       infY = var1;
  65.    }
  66.  
  67.    static void setHelpLocation(int var0, int var1) {
  68.       helpLocal = new Dimension(var0, var1);
  69.    }
  70.  
  71.    public void setScreenSize(Dimension var1) {
  72.       screenSize = var1;
  73.    }
  74. }
  75.