home *** CD-ROM | disk | FTP | other *** search
- import java.awt.Image;
- import java.net.MalformedURLException;
- import java.net.URL;
- import java.util.Hashtable;
- import java.util.NoSuchElementException;
- import java.util.StringTokenizer;
-
- public class wizinfo {
- private static Hashtable functionStore = new Hashtable();
- private Image theImage = null;
- public URL baseURL;
- public String picString;
- private int functions = 1;
- private String destinations = null;
- private String target = new String("_self");
- private int steps = 4;
- private int delay = 0;
- private int repeatRotate = 0;
- // $FF: renamed from: x int
- public int field_0;
- // $FF: renamed from: y int
- public int field_1;
-
- public Image getImageData() {
- return this.theImage;
- }
-
- public void setImageData(Image var1) {
- this.theImage = var1;
- }
-
- public String getFrame() {
- return new String(this.target);
- }
-
- public int getImageDelay() {
- return this.delay;
- }
-
- public void parseFunction(String var1) {
- StringTokenizer var2 = new StringTokenizer(var1, ",");
- int var3 = var2.countTokens();
-
- try {
- if (var3 > 5) {
- String var4 = new String(var2.nextToken().trim());
- int var5 = var4.lastIndexOf("/");
- if (var5 == -1 && var5 != var4.length()) {
- this.baseURL = null;
- this.picString = var4;
- } else {
- try {
- this.baseURL = new URL(var4.substring(0, var5 + 1));
- System.out.println("baseURL -" + this.baseURL.toString());
- this.picString = new String(var4.substring(var5 + 1));
- System.out.println("image -" + this.picString);
- } catch (MalformedURLException var6) {
- this.baseURL = null;
- this.picString = var4;
- }
- }
- } else {
- this.baseURL = null;
- this.picString = "";
- }
-
- this.field_0 = Integer.parseInt(var2.nextToken().trim());
- this.field_1 = Integer.parseInt(var2.nextToken().trim());
- this.functions = this.whichFunction(var2.nextToken().trim());
- this.steps = Integer.parseInt(var2.nextToken().trim());
- this.delay = Integer.parseInt(var2.nextToken().trim());
- if (var2.hasMoreTokens()) {
- this.destinations = var2.nextToken().trim();
- if (var2.hasMoreTokens()) {
- this.target = var2.nextToken().trim();
- }
- }
- } catch (NoSuchElementException var7) {
- System.out.println("Could not determine what to do with - " + var1);
- } catch (Exception var8) {
- System.out.println("param not in proper format - " + var1);
- }
-
- }
-
- public String getDest() {
- return this.destinations == null ? null : new String(this.destinations);
- }
-
- public int getMoveRate() {
- return this.steps;
- }
-
- public int getRepeatNum() {
- return this.repeatRotate;
- }
-
- public void setRepeatNum(int var1) {
- this.repeatRotate = var1;
- }
-
- public int getFunction() {
- return this.functions;
- }
-
- private int whichFunction(String var1) {
- try {
- int var2 = (Integer)functionStore.get(var1);
- return var2;
- } catch (Exception var3) {
- return 1;
- }
- }
-
- public static void setTable() {
- functionStore.put("scrollleft", new Integer(1));
- functionStore.put("scrollright", new Integer(2));
- functionStore.put("scrollup", new Integer(3));
- functionStore.put("scrolldown", new Integer(4));
- functionStore.put("appearremove", new Integer(7));
- functionStore.put("remove", new Integer(8));
- functionStore.put("appear", new Integer(9));
- functionStore.put("rotatevertsmall", new Integer(10));
- functionStore.put("rotatehorzsmall", new Integer(11));
- functionStore.put("rotatevertgrow", new Integer(12));
- functionStore.put("rotatehorzgrow", new Integer(13));
- functionStore.put("growup", new Integer(20));
- functionStore.put("shrinkdown", new Integer(21));
- functionStore.put("squeezeright", new Integer(22));
- functionStore.put("squeezeleft", new Integer(23));
- functionStore.put("imageshrink", new Integer(30));
- functionStore.put("squeeze", new Integer(30));
- functionStore.put("imagegrow", new Integer(31));
- functionStore.put("imagefadein", new Integer(40));
- functionStore.put("imagefadeout", new Integer(41));
- functionStore.put("oscrollleft", new Integer(50));
- functionStore.put("oscrollright", new Integer(51));
- functionStore.put("oscrollup", new Integer(52));
- functionStore.put("oscrolldown", new Integer(53));
- functionStore.put("revealup", new Integer(60));
- functionStore.put("revealdown", new Integer(61));
- functionStore.put("revealleft", new Integer(62));
- functionStore.put("revealright", new Integer(63));
- functionStore.put("revealout", new Integer(64));
- functionStore.put("revealin", new Integer(65));
- functionStore.put("reveallefttop", new Integer(66));
- functionStore.put("revealrighttop", new Integer(67));
- functionStore.put("revealleftbottom", new Integer(68));
- functionStore.put("revealrightbottom", new Integer(69));
- functionStore.put("wipeup", new Integer(70));
- functionStore.put("wipedown", new Integer(71));
- functionStore.put("wipeleft", new Integer(72));
- functionStore.put("wiperight", new Integer(73));
- functionStore.put("wipein", new Integer(74));
- functionStore.put("wipeoutcenter", new Integer(75));
- functionStore.put("fade", new Integer(80));
- functionStore.put("elevatordoor", new Integer(81));
- functionStore.put("checkboard", new Integer(90));
- functionStore.put("doubleslide", new Integer(91));
- functionStore.put("slidingdoor", new Integer(92));
- functionStore.put("trailsleft", new Integer(200));
- functionStore.put("trailsright", new Integer(201));
- functionStore.put("trailsdown", new Integer(202));
- functionStore.put("trailsup", new Integer(203));
- functionStore.put("spiralin", new Integer(204));
- functionStore.put("spiralout", new Integer(205));
- functionStore.put("slider", new Integer(206));
- }
- }
-