home *** CD-ROM | disk | FTP | other *** search
- import java.awt.Color;
- import java.awt.Dimension;
- import java.awt.Point;
-
- class ACgldat {
- public static int infW;
- public static int infH;
- public static int infX;
- public static int infY;
- public static Dimension helpSize;
- public static Dimension helpLocal;
- public static Color appRunnBGColor;
- public static int appBWidth;
- public static int appBHeight;
- public static String clipboard;
- public static String workingDirectory;
- public static Dimension tesize;
- public static Dimension texy;
- public static ACIntf iface;
- public static Dimension screenSize;
- public static Point ibLocal;
- public static int ibwidth;
-
- public static int getCenterScreenX(int var0) {
- return (screenSize.width - var0) / 2;
- }
-
- static void setInterfaceDimensions(int var0, int var1) {
- infW = var0;
- infH = var1;
- }
-
- public void initWinCoords() {
- int var1 = 800;
- int var2 = 600;
- if (screenSize.width <= 800) {
- var1 = screenSize.width - 100;
- }
-
- if (screenSize.height <= 600) {
- var2 = screenSize.height - 100;
- }
-
- tesize = new Dimension(var1, var2);
- texy = new Dimension((screenSize.width - tesize.width) / 2, (screenSize.height - tesize.height) / 2);
- helpSize = new Dimension(200, 300);
- helpLocal = new Dimension((screenSize.width - tesize.width) / 2, (screenSize.height - tesize.height) / 2);
- }
-
- static {
- appRunnBGColor = Color.gray;
- appBWidth = 46;
- appBHeight = 32;
- clipboard = "test";
- workingDirectory = "";
- }
-
- public static int getCenterScreenY(int var0) {
- return (screenSize.height - var0) / 2;
- }
-
- static void setInterfaceLocation(int var0, int var1) {
- infX = var0;
- infY = var1;
- }
-
- static void setHelpLocation(int var0, int var1) {
- helpLocal = new Dimension(var0, var1);
- }
-
- public void setScreenSize(Dimension var1) {
- screenSize = var1;
- }
- }
-