/* Class204 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.PixelGrabber;

public class Class204 {
	int anInt2450;
	static int anInt2451 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"\u00a3$%^&*()-_=+[{]};:'@#~,<.>/?\\| \u00c4\u00cb\u00cf\u00d6\u00dc\u00e4\u00eb\u00ef\u00f6\u00fc\u00ff\u00df\u00c1\u00c0\u00c9\u00c8\u00cd\u00cc\u00d3\u00d2\u00da\u00d9\u00e1\u00e0\u00e9\u00e8\u00ed\u00ec\u00f3\u00f2\u00fa\u00f9\u00c2\u00ca\u00ce\u00d4\u00db\u00e2\u00ea\u00ee\u00f4\u00fb\u00c6\u00e6\u00e3\u00c3\u00f5\u00d5\u00e7\u00c7\u00d1\u00f1".length();
	static int[] anIntArray2452 = new int[256];
	boolean aBool2453 = false;
	static final String aString2454 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"\u00a3$%^&*()-_=+[{]};:'@#~,<.>/?\\| \u00c4\u00cb\u00cf\u00d6\u00dc\u00e4\u00eb\u00ef\u00f6\u00fc\u00ff\u00df\u00c1\u00c0\u00c9\u00c8\u00cd\u00cc\u00d3\u00d2\u00da\u00d9\u00e1\u00e0\u00e9\u00e8\u00ed\u00ec\u00f3\u00f2\u00fa\u00f9\u00c2\u00ca\u00ce\u00d4\u00db\u00e2\u00ea\u00ee\u00f4\u00fb\u00c6\u00e6\u00e3\u00c3\u00f5\u00d5\u00e7\u00c7\u00d1\u00f1";
	int[] anIntArray2455;
	int[] anIntArray2456 = new int[4];
	int anInt2457;
	Class135[] aClass135Array2458;

	int method4140() {
		return ((Class204) this).anInt2450;
	}

	void method4141(Class84 class84, Font font, FontMetrics fontmetrics, char c, int i, boolean bool) {
		int i_0_ = fontmetrics.charWidth(c);
		int i_1_ = i_0_;
		if (bool) {
			try {
				if (c == '/')
					bool = false;
				if (c == 'f' || c == 't' || c == 'w' || c == 'v' || c == 'k' || c == 'x' || c == 'y' || c == 'A' || c == 'V' || c == 'W')
					i_0_++;
			} catch (Exception exception) {
				/* empty */
			}
		}
		int i_2_ = fontmetrics.getMaxAscent();
		int i_3_ = fontmetrics.getMaxAscent() + fontmetrics.getMaxDescent();
		int i_4_ = fontmetrics.getHeight();
		Image image = Class180.aCanvas2174.createImage(i_0_, i_3_);
		Graphics graphics = image.getGraphics();
		graphics.setColor(Color.black);
		graphics.fillRect(0, 0, i_0_, i_3_);
		graphics.setColor(Color.white);
		graphics.setFont(font);
		graphics.drawString(new StringBuilder().append(c).append("").toString(), 0, i_2_);
		if (bool)
			graphics.drawString(new StringBuilder().append(c).append("").toString(), 1, i_2_);
		int[] is = new int[i_0_ * i_3_];
		PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, i_0_, i_3_, is, 0, i_0_);
		try {
			pixelgrabber.grabPixels();
		} catch (Exception exception) {
			/* empty */
		}
		image.flush();
		Object object = null;
		int i_5_ = 0;
		while_66_: for (int i_6_ = 0; i_6_ < i_3_; i_6_++) {
			for (int i_7_ = 0; i_7_ < i_0_; i_7_++) {
				int i_8_ = is[i_7_ + i_6_ * i_0_];
				if ((i_8_ & 0xffffff) != 0) {
					i_5_ = i_6_;
					break while_66_;
				}
			}
		}
		for (int i_9_ = 0; i_9_ < is.length; i_9_++) {
			if ((is[i_9_] & 0xffffff) == 0)
				is[i_9_] = 0;
		}
		((Class204) this).anInt2450 = i_2_ - i_5_;
		((Class204) this).anInt2457 = i_4_;
		((Class204) this).anIntArray2455[i] = i_1_;
		((Class204) this).aClass135Array2458[i] = class84.method1937(is, 0, i_0_, i_0_, i_3_, -2106240099);
	}

	void method4142(Class84 class84, String string, int i, int i_10_, int i_11_, boolean bool) {
		int i_12_ = method4147(string) / 2;
		class84.method1911(((Class204) this).anIntArray2456);
		if (i - i_12_ <= ((Class204) this).anIntArray2456[2] && i + i_12_ >= ((Class204) this).anIntArray2456[0] && (i_10_ - ((Class204) this).anInt2450 <= ((Class204) this).anIntArray2456[3]) && (i_10_ + ((Class204) this).anInt2457 >= ((Class204) this).anIntArray2456[1]))
			method4146(class84, string, ((Class204) this).anIntArray2456, i - i_12_, i_10_, i_11_, bool);
	}

	int method4143() {
		return ((Class204) this).anInt2457 - 1;
	}

	void method4144(Class84 class84, String string, int[] is, int i, int i_13_, int i_14_, boolean bool) {
		if (i_14_ == 0)
			bool = false;
		i_14_ |= ~0xffffff;
		for (int i_15_ = 0; i_15_ < string.length(); i_15_++) {
			int i_16_ = anIntArray2452[string.charAt(i_15_)];
			if (bool)
				((Class204) this).aClass135Array2458[i_16_].method3107(i + 1, i_13_ + 1, 0, -16777216, 1);
			((Class204) this).aClass135Array2458[i_16_].method3107(i, i_13_, 0, i_14_, 1);
			i += ((Class204) this).anIntArray2455[i_16_];
		}
	}

	int method4145(String string) {
		int i = 0;
		for (int i_17_ = 0; i_17_ < string.length(); i_17_++) {
			int i_18_ = anIntArray2452[string.charAt(i_17_)];
			i += ((Class204) this).anIntArray2455[i_18_];
		}
		return i;
	}

	void method4146(Class84 class84, String string, int[] is, int i, int i_19_, int i_20_, boolean bool) {
		if (i_20_ == 0)
			bool = false;
		i_20_ |= ~0xffffff;
		for (int i_21_ = 0; i_21_ < string.length(); i_21_++) {
			int i_22_ = anIntArray2452[string.charAt(i_21_)];
			if (bool)
				((Class204) this).aClass135Array2458[i_22_].method3107(i + 1, i_19_ + 1, 0, -16777216, 1);
			((Class204) this).aClass135Array2458[i_22_].method3107(i, i_19_, 0, i_20_, 1);
			i += ((Class204) this).anIntArray2455[i_22_];
		}
	}

	Class204(Class84 class84, int i, boolean bool, Component component) {
		((Class204) this).aBool2453 = false;
		((Class204) this).aClass135Array2458 = new Class135[256];
		((Class204) this).anIntArray2455 = new int[256];
		Font font = new Font("Helvetica", bool ? 1 : 0, i);
		FontMetrics fontmetrics = component.getFontMetrics(font);
		for (int i_23_ = 0; i_23_ < anInt2451; i_23_++)
			method4141(class84, font, fontmetrics, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"\u00a3$%^&*()-_=+[{]};:'@#~,<.>/?\\| \u00c4\u00cb\u00cf\u00d6\u00dc\u00e4\u00eb\u00ef\u00f6\u00fc\u00ff\u00df\u00c1\u00c0\u00c9\u00c8\u00cd\u00cc\u00d3\u00d2\u00da\u00d9\u00e1\u00e0\u00e9\u00e8\u00ed\u00ec\u00f3\u00f2\u00fa\u00f9\u00c2\u00ca\u00ce\u00d4\u00db\u00e2\u00ea\u00ee\u00f4\u00fb\u00c6\u00e6\u00e3\u00c3\u00f5\u00d5\u00e7\u00c7\u00d1\u00f1".charAt(i_23_), i_23_, false);
		if (bool && ((Class204) this).aBool2453) {
			((Class204) this).aBool2453 = false;
			font = new Font("Helvetica", 0, i);
			fontmetrics = component.getFontMetrics(font);
			for (int i_24_ = 0; i_24_ < anInt2451; i_24_++)
				method4141(class84, font, fontmetrics, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"\u00a3$%^&*()-_=+[{]};:'@#~,<.>/?\\| \u00c4\u00cb\u00cf\u00d6\u00dc\u00e4\u00eb\u00ef\u00f6\u00fc\u00ff\u00df\u00c1\u00c0\u00c9\u00c8\u00cd\u00cc\u00d3\u00d2\u00da\u00d9\u00e1\u00e0\u00e9\u00e8\u00ed\u00ec\u00f3\u00f2\u00fa\u00f9\u00c2\u00ca\u00ce\u00d4\u00db\u00e2\u00ea\u00ee\u00f4\u00fb\u00c6\u00e6\u00e3\u00c3\u00f5\u00d5\u00e7\u00c7\u00d1\u00f1".charAt(i_24_), i_24_, false);
			if (!((Class204) this).aBool2453) {
				((Class204) this).aBool2453 = false;
				for (int i_25_ = 0; i_25_ < anInt2451; i_25_++)
					method4141(class84, font, fontmetrics, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"\u00a3$%^&*()-_=+[{]};:'@#~,<.>/?\\| \u00c4\u00cb\u00cf\u00d6\u00dc\u00e4\u00eb\u00ef\u00f6\u00fc\u00ff\u00df\u00c1\u00c0\u00c9\u00c8\u00cd\u00cc\u00d3\u00d2\u00da\u00d9\u00e1\u00e0\u00e9\u00e8\u00ed\u00ec\u00f3\u00f2\u00fa\u00f9\u00c2\u00ca\u00ce\u00d4\u00db\u00e2\u00ea\u00ee\u00f4\u00fb\u00c6\u00e6\u00e3\u00c3\u00f5\u00d5\u00e7\u00c7\u00d1\u00f1".charAt(i_25_), i_25_, true);
			}
		}
	}

	int method4147(String string) {
		int i = 0;
		for (int i_26_ = 0; i_26_ < string.length(); i_26_++) {
			int i_27_ = anIntArray2452[string.charAt(i_26_)];
			i += ((Class204) this).anIntArray2455[i_27_];
		}
		return i;
	}

	void method4148(Class84 class84, Font font, FontMetrics fontmetrics, char c, int i, boolean bool) {
		int i_28_ = fontmetrics.charWidth(c);
		int i_29_ = i_28_;
		if (bool) {
			try {
				if (c == '/')
					bool = false;
				if (c == 'f' || c == 't' || c == 'w' || c == 'v' || c == 'k' || c == 'x' || c == 'y' || c == 'A' || c == 'V' || c == 'W')
					i_28_++;
			} catch (Exception exception) {
				/* empty */
			}
		}
		int i_30_ = fontmetrics.getMaxAscent();
		int i_31_ = fontmetrics.getMaxAscent() + fontmetrics.getMaxDescent();
		int i_32_ = fontmetrics.getHeight();
		Image image = Class180.aCanvas2174.createImage(i_28_, i_31_);
		Graphics graphics = image.getGraphics();
		graphics.setColor(Color.black);
		graphics.fillRect(0, 0, i_28_, i_31_);
		graphics.setColor(Color.white);
		graphics.setFont(font);
		graphics.drawString(new StringBuilder().append(c).append("").toString(), 0, i_30_);
		if (bool)
			graphics.drawString(new StringBuilder().append(c).append("").toString(), 1, i_30_);
		int[] is = new int[i_28_ * i_31_];
		PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, i_28_, i_31_, is, 0, i_28_);
		try {
			pixelgrabber.grabPixels();
		} catch (Exception exception) {
			/* empty */
		}
		image.flush();
		Object object = null;
		int i_33_ = 0;
		while_67_: for (int i_34_ = 0; i_34_ < i_31_; i_34_++) {
			for (int i_35_ = 0; i_35_ < i_28_; i_35_++) {
				int i_36_ = is[i_35_ + i_34_ * i_28_];
				if ((i_36_ & 0xffffff) != 0) {
					i_33_ = i_34_;
					break while_67_;
				}
			}
		}
		for (int i_37_ = 0; i_37_ < is.length; i_37_++) {
			if ((is[i_37_] & 0xffffff) == 0)
				is[i_37_] = 0;
		}
		((Class204) this).anInt2450 = i_30_ - i_33_;
		((Class204) this).anInt2457 = i_32_;
		((Class204) this).anIntArray2455[i] = i_29_;
		((Class204) this).aClass135Array2458[i] = class84.method1937(is, 0, i_28_, i_28_, i_31_, -2041657310);
	}

	void method4149(Class84 class84, Font font, FontMetrics fontmetrics, char c, int i, boolean bool) {
		int i_38_ = fontmetrics.charWidth(c);
		int i_39_ = i_38_;
		if (bool) {
			try {
				if (c == '/')
					bool = false;
				if (c == 'f' || c == 't' || c == 'w' || c == 'v' || c == 'k' || c == 'x' || c == 'y' || c == 'A' || c == 'V' || c == 'W')
					i_38_++;
			} catch (Exception exception) {
				/* empty */
			}
		}
		int i_40_ = fontmetrics.getMaxAscent();
		int i_41_ = fontmetrics.getMaxAscent() + fontmetrics.getMaxDescent();
		int i_42_ = fontmetrics.getHeight();
		Image image = Class180.aCanvas2174.createImage(i_38_, i_41_);
		Graphics graphics = image.getGraphics();
		graphics.setColor(Color.black);
		graphics.fillRect(0, 0, i_38_, i_41_);
		graphics.setColor(Color.white);
		graphics.setFont(font);
		graphics.drawString(new StringBuilder().append(c).append("").toString(), 0, i_40_);
		if (bool)
			graphics.drawString(new StringBuilder().append(c).append("").toString(), 1, i_40_);
		int[] is = new int[i_38_ * i_41_];
		PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, i_38_, i_41_, is, 0, i_38_);
		try {
			pixelgrabber.grabPixels();
		} catch (Exception exception) {
			/* empty */
		}
		image.flush();
		Object object = null;
		int i_43_ = 0;
		while_68_: for (int i_44_ = 0; i_44_ < i_41_; i_44_++) {
			for (int i_45_ = 0; i_45_ < i_38_; i_45_++) {
				int i_46_ = is[i_45_ + i_44_ * i_38_];
				if ((i_46_ & 0xffffff) != 0) {
					i_43_ = i_44_;
					break while_68_;
				}
			}
		}
		for (int i_47_ = 0; i_47_ < is.length; i_47_++) {
			if ((is[i_47_] & 0xffffff) == 0)
				is[i_47_] = 0;
		}
		((Class204) this).anInt2450 = i_40_ - i_43_;
		((Class204) this).anInt2457 = i_42_;
		((Class204) this).anIntArray2455[i] = i_39_;
		((Class204) this).aClass135Array2458[i] = class84.method1937(is, 0, i_38_, i_38_, i_41_, -2033931022);
	}

	static {
		for (int i = 0; i < 256; i++) {
			int i_48_ = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"\u00a3$%^&*()-_=+[{]};:'@#~,<.>/?\\| \u00c4\u00cb\u00cf\u00d6\u00dc\u00e4\u00eb\u00ef\u00f6\u00fc\u00ff\u00df\u00c1\u00c0\u00c9\u00c8\u00cd\u00cc\u00d3\u00d2\u00da\u00d9\u00e1\u00e0\u00e9\u00e8\u00ed\u00ec\u00f3\u00f2\u00fa\u00f9\u00c2\u00ca\u00ce\u00d4\u00db\u00e2\u00ea\u00ee\u00f4\u00fb\u00c6\u00e6\u00e3\u00c3\u00f5\u00d5\u00e7\u00c7\u00d1\u00f1".indexOf(i);
			if (i_48_ == -1)
				i_48_ = 74;
			anIntArray2452[i] = i_48_;
		}
	}

	int method4150() {
		return ((Class204) this).anInt2450;
	}

	int method4151() {
		return ((Class204) this).anInt2457 - 1;
	}

	void method4152(Class84 class84, Font font, FontMetrics fontmetrics, char c, int i, boolean bool) {
		int i_49_ = fontmetrics.charWidth(c);
		int i_50_ = i_49_;
		if (bool) {
			try {
				if (c == '/')
					bool = false;
				if (c == 'f' || c == 't' || c == 'w' || c == 'v' || c == 'k' || c == 'x' || c == 'y' || c == 'A' || c == 'V' || c == 'W')
					i_49_++;
			} catch (Exception exception) {
				/* empty */
			}
		}
		int i_51_ = fontmetrics.getMaxAscent();
		int i_52_ = fontmetrics.getMaxAscent() + fontmetrics.getMaxDescent();
		int i_53_ = fontmetrics.getHeight();
		Image image = Class180.aCanvas2174.createImage(i_49_, i_52_);
		Graphics graphics = image.getGraphics();
		graphics.setColor(Color.black);
		graphics.fillRect(0, 0, i_49_, i_52_);
		graphics.setColor(Color.white);
		graphics.setFont(font);
		graphics.drawString(new StringBuilder().append(c).append("").toString(), 0, i_51_);
		if (bool)
			graphics.drawString(new StringBuilder().append(c).append("").toString(), 1, i_51_);
		int[] is = new int[i_49_ * i_52_];
		PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, i_49_, i_52_, is, 0, i_49_);
		try {
			pixelgrabber.grabPixels();
		} catch (Exception exception) {
			/* empty */
		}
		image.flush();
		Object object = null;
		int i_54_ = 0;
		while_69_: for (int i_55_ = 0; i_55_ < i_52_; i_55_++) {
			for (int i_56_ = 0; i_56_ < i_49_; i_56_++) {
				int i_57_ = is[i_56_ + i_55_ * i_49_];
				if ((i_57_ & 0xffffff) != 0) {
					i_54_ = i_55_;
					break while_69_;
				}
			}
		}
		for (int i_58_ = 0; i_58_ < is.length; i_58_++) {
			if ((is[i_58_] & 0xffffff) == 0)
				is[i_58_] = 0;
		}
		((Class204) this).anInt2450 = i_51_ - i_54_;
		((Class204) this).anInt2457 = i_53_;
		((Class204) this).anIntArray2455[i] = i_50_;
		((Class204) this).aClass135Array2458[i] = class84.method1937(is, 0, i_49_, i_49_, i_52_, -2135727573);
	}

	int method4153() {
		return ((Class204) this).anInt2457 - 1;
	}

	int method4154() {
		return ((Class204) this).anInt2457 - 1;
	}

	void method4155(Class84 class84, String string, int i, int i_59_, int i_60_, boolean bool) {
		int i_61_ = method4147(string) / 2;
		class84.method1911(((Class204) this).anIntArray2456);
		if (i - i_61_ <= ((Class204) this).anIntArray2456[2] && i + i_61_ >= ((Class204) this).anIntArray2456[0] && (i_59_ - ((Class204) this).anInt2450 <= ((Class204) this).anIntArray2456[3]) && (i_59_ + ((Class204) this).anInt2457 >= ((Class204) this).anIntArray2456[1]))
			method4146(class84, string, ((Class204) this).anIntArray2456, i - i_61_, i_59_, i_60_, bool);
	}

	void method4156(Class84 class84, String string, int i, int i_62_, int i_63_, boolean bool) {
		int i_64_ = method4147(string) / 2;
		class84.method1911(((Class204) this).anIntArray2456);
		if (i - i_64_ <= ((Class204) this).anIntArray2456[2] && i + i_64_ >= ((Class204) this).anIntArray2456[0] && (i_62_ - ((Class204) this).anInt2450 <= ((Class204) this).anIntArray2456[3]) && (i_62_ + ((Class204) this).anInt2457 >= ((Class204) this).anIntArray2456[1]))
			method4146(class84, string, ((Class204) this).anIntArray2456, i - i_64_, i_62_, i_63_, bool);
	}

	void method4157(Class84 class84, String string, int[] is, int i, int i_65_, int i_66_, boolean bool) {
		if (i_66_ == 0)
			bool = false;
		i_66_ |= ~0xffffff;
		for (int i_67_ = 0; i_67_ < string.length(); i_67_++) {
			int i_68_ = anIntArray2452[string.charAt(i_67_)];
			if (bool)
				((Class204) this).aClass135Array2458[i_68_].method3107(i + 1, i_65_ + 1, 0, -16777216, 1);
			((Class204) this).aClass135Array2458[i_68_].method3107(i, i_65_, 0, i_66_, 1);
			i += ((Class204) this).anIntArray2455[i_68_];
		}
	}

	int method4158() {
		return ((Class204) this).anInt2450;
	}

	void method4159(Class84 class84, String string, int[] is, int i, int i_69_, int i_70_, boolean bool) {
		if (i_70_ == 0)
			bool = false;
		i_70_ |= ~0xffffff;
		for (int i_71_ = 0; i_71_ < string.length(); i_71_++) {
			int i_72_ = anIntArray2452[string.charAt(i_71_)];
			if (bool)
				((Class204) this).aClass135Array2458[i_72_].method3107(i + 1, i_69_ + 1, 0, -16777216, 1);
			((Class204) this).aClass135Array2458[i_72_].method3107(i, i_69_, 0, i_70_, 1);
			i += ((Class204) this).anIntArray2455[i_72_];
		}
	}
}
