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

  1. import java.awt.Color;
  2. import java.awt.Component;
  3. import java.awt.Container;
  4. import java.awt.Dimension;
  5. import java.awt.Event;
  6. import java.awt.Graphics;
  7. import java.awt.Image;
  8. import java.awt.LayoutManager;
  9. import java.awt.MediaTracker;
  10. import java.awt.Panel;
  11. import java.awt.Scrollbar;
  12. import java.io.File;
  13. import java.util.Vector;
  14.  
  15. public class OCdg extends Panel {
  16.    public int appWidth = 0;
  17.    public int appHeight = 0;
  18.    public int actAppWidth;
  19.    public int actAppHeight;
  20.    private int save_altx = 0;
  21.    private int save_alty = 0;
  22.    private boolean paint_called = false;
  23.    public Color bgColor;
  24.    int offimgx;
  25.    int offimgy;
  26.    boolean first_paint;
  27.    // $FF: renamed from: d java.awt.Dimension
  28.    Dimension field_0;
  29.    // $FF: renamed from: ts java.awt.Image
  30.    private Image field_1;
  31.    private Graphics g_ts;
  32.    private int tsImgWidth;
  33.    private int tsImgHeight;
  34.    Image off;
  35.    Graphics g_off;
  36.    boolean first_run;
  37.    public String[] def_pn;
  38.    public String[] def_pv;
  39.    public String[] spe_pn;
  40.    public String[] spe_pt;
  41.    public Vector spe_pv;
  42.    public String[] ml_pn;
  43.    public MLparam ml_pv;
  44.    public String[] icon_pn;
  45.    public Vector icon_pv;
  46.    int sb_width;
  47.    // $FF: renamed from: sb java.awt.Scrollbar
  48.    Scrollbar field_2;
  49.    Scrollbar hsb;
  50.    int scroll_y;
  51.    int scroll_x;
  52.    int sb_linedist;
  53.    int hsb_linedist;
  54.    boolean first_sb_run;
  55.    boolean first_hsb_run;
  56.    boolean use_sb;
  57.    boolean use_hsb;
  58.    private int last_scroll_y;
  59.    private int last_scroll_x;
  60.    public int sEdge;
  61.    Panel sb_corner;
  62.  
  63.    public void setVerticalPagePosition(int var1) {
  64.       if (this.use_sb) {
  65.          this.last_scroll_y = this.scroll_y;
  66.          this.scroll_y = var1;
  67.          this.field_2.setValue(Math.abs(this.scroll_y));
  68.          this.paintIt();
  69.       } else {
  70.          this.last_scroll_y = var1;
  71.          this.scroll_y = var1;
  72.       }
  73.    }
  74.  
  75.    public void checkAppSizeChange() {
  76.       if (this.actAppWidth != this.off.getWidth(this) || this.actAppHeight != this.off.getHeight(this)) {
  77.          this.centerAppArea();
  78.       }
  79.  
  80.    }
  81.  
  82.    public String getParameterSpecific(String var1, int var2) {
  83.       for(int var3 = 0; var3 < this.spe_pn.length; ++var3) {
  84.          if (this.spe_pn[var3].equals(var1)) {
  85.             String var4 = ((String[])this.spe_pv.elementAt(var2))[var3];
  86.             if (var4 != null && !var4.equals("") && !var4.equalsIgnoreCase("<default>") && !var4.equalsIgnoreCase("<none>")) {
  87.                return var4;
  88.             }
  89.  
  90.             return null;
  91.          }
  92.       }
  93.  
  94.       return null;
  95.    }
  96.  
  97.    public void setAppDimensions(int var1, int var2) {
  98.       if (var1 != this.appWidth || var2 != this.appHeight) {
  99.          this.appWidth = var1;
  100.          this.appHeight = var2;
  101.          if (this.appWidth <= 0 || this.appHeight <= 0) {
  102.             return;
  103.          }
  104.       }
  105.  
  106.       if (this.paint_called) {
  107.          this.DrawApplet();
  108.          this.checkAppSizeChange();
  109.          this.drawAppOff();
  110.          this.paintIt();
  111.       }
  112.  
  113.    }
  114.  
  115.    public void setBgColor(Color var1) {
  116.       this.bgColor = var1;
  117.       ((Component)this).setBackground(var1);
  118.       this.figureAltScrollBars(0, 0);
  119.       if (ACutila.iface.dgrid_id == 0) {
  120.          ACutila.iface.ipan.getOCdgvtis().setArrowBgColor(var1);
  121.       }
  122.  
  123.    }
  124.  
  125.    public void addDefaults(String[] var1, String[] var2) {
  126.       this.def_pn = var1;
  127.       this.def_pv = var2;
  128.       this.initDefault();
  129.    }
  130.  
  131.    public void addIcons(String[] var1, Vector var2) {
  132.       this.icon_pn = var1;
  133.       this.icon_pv = var2;
  134.       this.initIcons();
  135.    }
  136.  
  137.    public void redoAltOffs() {
  138.    }
  139.  
  140.    public void reDrawAltOffs() {
  141.    }
  142.  
  143.    public void checkAltOffScrollBars(Image[] var1, int[] var2, int[] var3, OCmsl[] var4) {
  144.       int var5 = 0;
  145.       int var6 = 0;
  146.       int var7 = 0;
  147.  
  148.       for(int var8 = 0; var8 < var1.length; ++var8) {
  149.          if (var4[var8].subOn) {
  150.             var7 = var2[var8] + var1[var8].getWidth(this);
  151.             if (var7 > var5) {
  152.                var5 = var7;
  153.             }
  154.  
  155.             var7 = var3[var8] + var1[var8].getHeight(this);
  156.             if (var7 > var6) {
  157.                var6 = var7;
  158.             }
  159.          }
  160.       }
  161.  
  162.       this.figureAltScrollBars(var5, var6);
  163.    }
  164.  
  165.    public void figureAltScrollBars(int var1, int var2) {
  166.       int var3 = 0;
  167.       int var4 = 0;
  168.       if (this.actAppWidth + this.offimgx > var1) {
  169.          var1 = this.actAppWidth + this.offimgx;
  170.       }
  171.  
  172.       if (this.actAppHeight + this.offimgy > var2) {
  173.          var2 = this.actAppHeight + this.offimgy;
  174.       }
  175.  
  176.       if (var2 > this.field_0.height - 4) {
  177.          this.use_sb = true;
  178.          this.tsImgHeight = var2 + this.sEdge * 2;
  179.          var4 = this.sb_width;
  180.          this.scroll_y = this.last_scroll_y;
  181.       } else {
  182.          this.use_sb = false;
  183.          this.tsImgHeight = this.field_0.height;
  184.       }
  185.  
  186.       if (var1 > this.field_0.width - 4) {
  187.          this.use_hsb = true;
  188.          this.tsImgWidth = var1 + this.sEdge * 2;
  189.          var3 = this.sb_width;
  190.          this.scroll_x = this.last_scroll_x;
  191.       } else {
  192.          this.use_hsb = false;
  193.          this.tsImgWidth = this.field_0.width;
  194.       }
  195.  
  196.       this.figureScrollBars();
  197.       this.field_1 = ((Component)this).createImage(this.tsImgWidth, this.tsImgHeight);
  198.       this.g_ts = this.field_1.getGraphics();
  199.       this.drawAppOff();
  200.       this.reDrawAltOffs();
  201.       if (this.use_hsb) {
  202.          if (this.scroll_x + this.tsImgWidth < this.field_0.width) {
  203.             this.scroll_x = this.field_0.width - this.tsImgWidth;
  204.          }
  205.       } else {
  206.          this.scroll_x = 0;
  207.          this.last_scroll_x = 0;
  208.       }
  209.  
  210.       if (this.use_sb) {
  211.          if (this.scroll_y + this.tsImgHeight < this.field_0.height) {
  212.             this.scroll_y = this.field_0.height - this.tsImgHeight;
  213.          }
  214.       } else {
  215.          this.scroll_y = 0;
  216.          this.last_scroll_y = 0;
  217.       }
  218.  
  219.       this.paintIt();
  220.    }
  221.  
  222.    public void reshape(int var1, int var2, int var3, int var4) {
  223.       if (var3 * var4 > 0) {
  224.          this.field_0 = new Dimension(var3, var4);
  225.          if (!this.first_run) {
  226.             this.centerAppArea();
  227.             this.drawAppOff();
  228.             this.redoAltOffs();
  229.             this.paintIt();
  230.          }
  231.  
  232.          super.reshape(var1, var2, var3, var4);
  233.       }
  234.    }
  235.  
  236.    public void drawAltOff(Image var1, int var2, int var3, boolean var4) {
  237.       if (!var4) {
  238.          this.g_ts.setColor(this.bgColor);
  239.          this.g_ts.fillRect(this.save_altx, this.save_alty, var1.getWidth(this), var1.getHeight(this));
  240.          this.drawAppOff();
  241.       }
  242.  
  243.       this.g_ts.drawImage(var1, var2, var3, this);
  244.       this.save_altx = var2;
  245.       this.save_alty = var3;
  246.    }
  247.  
  248.    public void initIcons() {
  249.    }
  250.  
  251.    public String getParameterIcon(String var1, int var2) {
  252.       for(int var3 = 0; var3 < this.icon_pn.length; ++var3) {
  253.          if (this.icon_pn[var3].equals(var1)) {
  254.             String var4 = ((String[])this.icon_pv.elementAt(var2))[var3];
  255.             if (var4 != null && !var4.equals("") && !var4.equalsIgnoreCase("<default>") && !var4.equalsIgnoreCase("<none>")) {
  256.                return var4;
  257.             }
  258.  
  259.             return null;
  260.          }
  261.       }
  262.  
  263.       return null;
  264.    }
  265.  
  266.    public void setHorizontalPagePosition(int var1) {
  267.       if (this.use_hsb) {
  268.          this.last_scroll_x = this.scroll_x;
  269.          this.scroll_x = var1;
  270.          this.hsb.setValue(Math.abs(this.scroll_x));
  271.          this.paintIt();
  272.       } else {
  273.          this.last_scroll_x = var1;
  274.          this.scroll_x = var1;
  275.       }
  276.    }
  277.  
  278.    public void drawAppOff() {
  279.       this.g_ts.drawImage(this.off, this.offimgx, this.offimgy, this);
  280.    }
  281.  
  282.    public void eraseAppOff() {
  283.       this.g_ts.setColor(this.bgColor);
  284.       this.g_ts.fillRect(this.offimgx, this.offimgy, this.off.getWidth(this), this.off.getHeight(this));
  285.    }
  286.  
  287.    OCdg() {
  288.       this.bgColor = ACutilWindow.daColor;
  289.       this.first_run = true;
  290.       this.sb_width = 13;
  291.       this.scroll_y = 0;
  292.       this.sb_linedist = 1;
  293.       this.hsb_linedist = 1;
  294.       this.first_sb_run = true;
  295.       this.first_hsb_run = true;
  296.       this.use_sb = false;
  297.       this.use_hsb = false;
  298.       this.last_scroll_y = 0;
  299.       this.sEdge = 5;
  300.       this.sb_corner = null;
  301.       ((Container)this).setLayout((LayoutManager)null);
  302.       this.sb_corner = new Panel();
  303.       this.sb_corner.setLayout((LayoutManager)null);
  304.       this.sb_corner.setBackground(ACutilb.windowColor);
  305.       ((Component)this).setBackground(this.bgColor);
  306.    }
  307.  
  308.    public void paint(Graphics var1) {
  309.       this.paint_called = true;
  310.       this.paintIt();
  311.    }
  312.  
  313.    public void DrawApplet() {
  314.    }
  315.  
  316.    public boolean mouseUp(Event var1, int var2, int var3) {
  317.       return ACutila.iface.isMouseInReposition(var1) ? true : true;
  318.    }
  319.  
  320.    public void addSpecifics(String[] var1, Vector var2) {
  321.       this.spe_pn = var1;
  322.       this.spe_pv = var2;
  323.       this.initSpecifics();
  324.    }
  325.  
  326.    public void addSpecifics(String[] var1, Vector var2, String[] var3) {
  327.       this.spe_pn = var1;
  328.       this.spe_pv = var2;
  329.       this.spe_pt = var3;
  330.       this.initSpecifics();
  331.    }
  332.  
  333.    public String getParameterDefault(String var1) {
  334.       for(int var2 = 0; var2 < this.def_pn.length; ++var2) {
  335.          if (this.def_pn[var2].equals(var1)) {
  336.             if (this.def_pv[var2].equalsIgnoreCase("<none>")) {
  337.                return null;
  338.             }
  339.  
  340.             return this.def_pv[var2];
  341.          }
  342.       }
  343.  
  344.       return null;
  345.    }
  346.  
  347.    public String getParameterSpecificByTitle(String var1, int var2) {
  348.       for(int var3 = 0; var3 < this.spe_pt.length; ++var3) {
  349.          if (this.spe_pt[var3].equalsIgnoreCase(var1)) {
  350.             String var4 = ((String[])this.spe_pv.elementAt(var2))[var3];
  351.             if (var4 != null && !var4.equals("") && !var4.equalsIgnoreCase("<default>") && !var4.equalsIgnoreCase("<none>")) {
  352.                return var4;
  353.             }
  354.  
  355.             return null;
  356.          }
  357.       }
  358.  
  359.       return null;
  360.    }
  361.  
  362.    public void initDefault() {
  363.    }
  364.  
  365.    public synchronized void paintIt() {
  366.       try {
  367.          if (this.paint_called) {
  368.             Graphics var1 = ((Component)this).getGraphics();
  369.             if (this.first_run) {
  370.                this.DrawApplet();
  371.                this.checkAppSizeChange();
  372.                this.drawAppOff();
  373.                this.figureScrollBars();
  374.                this.first_run = false;
  375.             }
  376.  
  377.             var1.drawImage(this.field_1, this.scroll_x, this.scroll_y, this);
  378.             if (this.use_sb && this.use_hsb) {
  379.                this.sb_corner.reshape(this.field_0.width - this.sb_width, this.field_0.height - this.sb_width, this.sb_width, this.sb_width);
  380.                ((Container)this).add(this.sb_corner);
  381.             } else {
  382.                ((Container)this).remove(this.sb_corner);
  383.             }
  384.          }
  385.       } catch (Exception var2) {
  386.       }
  387.    }
  388.  
  389.    public Image trackReturn(String var1) {
  390.       Object var2 = null;
  391.       MediaTracker var3 = new MediaTracker(this);
  392.       if (!var1.equals("-1")) {
  393.          Image var5 = ((Component)this).getToolkit().getImage((new File(var1)).getAbsolutePath());
  394.          var3.addImage(var5, 0);
  395.  
  396.          try {
  397.             var3.waitForID(0);
  398.          } catch (InterruptedException var4) {
  399.             return null;
  400.          }
  401.  
  402.          if (var3.isErrorID(0)) {
  403.             System.out.println("Error Loading Image File:" + var1);
  404.             return null;
  405.          } else {
  406.             return var5;
  407.          }
  408.       } else {
  409.          return null;
  410.       }
  411.    }
  412.  
  413.    public void resize(Dimension var1) {
  414.       if (var1.width * var1.height > 0) {
  415.          if (!this.first_run) {
  416.             this.centerAppArea();
  417.             this.drawAppOff();
  418.             this.redoAltOffs();
  419.             this.paintIt();
  420.          }
  421.  
  422.          super.resize(var1);
  423.       }
  424.    }
  425.  
  426.    public void resize(int var1, int var2) {
  427.       if (var1 * var2 > 0) {
  428.          this.field_0 = new Dimension(var1, var2);
  429.          if (!this.first_run) {
  430.             this.centerAppArea();
  431.             this.drawAppOff();
  432.             this.redoAltOffs();
  433.             this.paintIt();
  434.          }
  435.  
  436.          super.resize(var1, var2);
  437.       }
  438.    }
  439.  
  440.    public void figureScrollBars() {
  441.       if (this.first_sb_run) {
  442.          if (this.use_sb) {
  443.             this.field_2 = new Scrollbar(1);
  444.             if (this.use_sb && this.use_hsb) {
  445.                this.field_2.reshape(this.field_0.width - this.sb_width, 0, this.sb_width, this.field_0.height - this.sb_width);
  446.             } else {
  447.                this.field_2.reshape(this.field_0.width - this.sb_width, 0, this.sb_width, this.field_0.height);
  448.             }
  449.  
  450.             this.field_2.setBackground(Color.gray);
  451.             ((Container)this).add(this.field_2);
  452.             this.first_sb_run = false;
  453.          }
  454.       } else if (!this.use_sb) {
  455.          ((Container)this).remove(this.field_2);
  456.          this.field_2 = null;
  457.          this.first_sb_run = true;
  458.       } else if (this.use_sb && this.use_hsb) {
  459.          this.field_2.reshape(this.field_0.width - this.sb_width, 0, this.sb_width, this.field_0.height - this.sb_width);
  460.       } else {
  461.          this.field_2.reshape(this.field_0.width - this.sb_width, 0, this.sb_width, this.field_0.height);
  462.       }
  463.  
  464.       if (this.use_sb) {
  465.          int var1 = Math.abs(this.scroll_y);
  466.          if (this.scroll_y > this.tsImgHeight) {
  467.             var1 = this.tsImgHeight;
  468.          }
  469.  
  470.          int var2 = 0;
  471.          if (this.use_hsb) {
  472.             var2 = this.sb_width;
  473.          }
  474.  
  475.          this.field_2.setValues(var1, this.field_0.height, 0, this.tsImgHeight + var2);
  476.          this.field_2.setLineIncrement(10);
  477.          this.field_2.setPageIncrement(this.field_0.height);
  478.       }
  479.  
  480.       if (this.first_hsb_run) {
  481.          if (this.use_hsb) {
  482.             this.hsb = new Scrollbar(0);
  483.             if (this.use_sb && this.use_hsb) {
  484.                this.hsb.reshape(0, this.field_0.height - this.sb_width, this.field_0.width - this.sb_width, this.sb_width);
  485.             } else {
  486.                this.hsb.reshape(0, this.field_0.height - this.sb_width, this.field_0.width, this.sb_width);
  487.             }
  488.  
  489.             this.hsb.setBackground(Color.gray);
  490.             ((Container)this).add(this.hsb);
  491.             this.first_hsb_run = false;
  492.          }
  493.       } else if (!this.use_hsb) {
  494.          ((Container)this).remove(this.hsb);
  495.          this.hsb = null;
  496.          this.first_hsb_run = true;
  497.       } else if (this.use_sb && this.use_hsb) {
  498.          this.hsb.reshape(0, this.field_0.height - this.sb_width, this.field_0.width - this.sb_width, this.sb_width);
  499.       } else {
  500.          this.hsb.reshape(0, this.field_0.height - this.sb_width, this.field_0.width, this.sb_width);
  501.       }
  502.  
  503.       if (this.use_hsb) {
  504.          int var3 = Math.abs(this.scroll_x);
  505.          if (this.scroll_x > this.tsImgWidth) {
  506.             var3 = this.tsImgWidth;
  507.          }
  508.  
  509.          int var4 = 0;
  510.          if (this.use_sb) {
  511.             var4 = this.sb_width;
  512.          }
  513.  
  514.          this.hsb.setValues(var3, this.field_0.width, 0, this.tsImgWidth + var4);
  515.          this.hsb.setLineIncrement(10);
  516.          this.hsb.setPageIncrement(this.field_0.width);
  517.       }
  518.  
  519.    }
  520.  
  521.    public void initSpecifics() {
  522.    }
  523.  
  524.    public void undoAltOff(Image var1, int var2, int var3) {
  525.       this.g_ts.setColor(this.bgColor);
  526.       this.g_ts.fillRect(var2, var3, var1.getWidth(this), var1.getHeight(this));
  527.    }
  528.  
  529.    public boolean mouseDown(Event var1, int var2, int var3) {
  530.       return true;
  531.    }
  532.  
  533.    private void centerAppArea() {
  534.       int var1 = 0;
  535.       int var2 = 0;
  536.       this.actAppWidth = this.off.getWidth(this);
  537.       this.actAppHeight = this.off.getHeight(this);
  538.       ACutila.dg_img_width = this.actAppWidth;
  539.       ACutila.dg_img_height = this.actAppHeight;
  540.       if (this.actAppHeight > this.field_0.height - 4) {
  541.          this.use_sb = true;
  542.          this.tsImgHeight = this.actAppHeight + this.sEdge * 2;
  543.          var2 = this.sb_width;
  544.          this.scroll_y = this.last_scroll_y;
  545.       } else {
  546.          this.use_sb = false;
  547.          this.tsImgHeight = this.field_0.height;
  548.       }
  549.  
  550.       if (this.actAppWidth > this.field_0.width - 4) {
  551.          this.use_hsb = true;
  552.          this.tsImgWidth = this.actAppWidth + this.sEdge * 2;
  553.          var1 = this.sb_width;
  554.          this.scroll_x = this.last_scroll_x;
  555.       } else {
  556.          this.use_hsb = false;
  557.          this.tsImgWidth = this.field_0.width;
  558.       }
  559.  
  560.       this.figureScrollBars();
  561.       this.field_1 = ((Component)this).createImage(this.tsImgWidth, this.tsImgHeight);
  562.       this.g_ts = this.field_1.getGraphics();
  563.       this.offimgx = (this.tsImgWidth - this.actAppWidth) / 2;
  564.       this.offimgy = (this.tsImgHeight - this.actAppHeight) / 2;
  565.       if (this.use_hsb) {
  566.          if (this.scroll_x + this.tsImgWidth < this.field_0.width) {
  567.             this.scroll_x = this.field_0.width - this.tsImgWidth;
  568.          }
  569.       } else {
  570.          this.scroll_x = 0;
  571.          this.last_scroll_x = 0;
  572.       }
  573.  
  574.       if (this.use_sb) {
  575.          if (this.scroll_y + this.tsImgHeight < this.field_0.height) {
  576.             this.scroll_y = this.field_0.height - this.tsImgHeight;
  577.             return;
  578.          }
  579.       } else {
  580.          this.scroll_y = 0;
  581.          this.last_scroll_y = 0;
  582.       }
  583.  
  584.    }
  585.  
  586.    public boolean handleEvent(Event var1) {
  587.       boolean var2 = false;
  588.       boolean var3 = false;
  589.       if (var1.target == this.field_2) {
  590.          if (var1.id != 602 && var1.id != 601 && var1.id != 605) {
  591.             if (var1.id == 604 || var1.id == 603) {
  592.                this.scroll_y = -(this.field_2.getValue() * this.sb_linedist);
  593.                var2 = true;
  594.             }
  595.          } else {
  596.             this.scroll_y = -(this.field_2.getValue() * this.sb_linedist);
  597.             var2 = true;
  598.          }
  599.  
  600.          if (var2) {
  601.             if (this.scroll_y >= 0) {
  602.                this.scroll_y = 0;
  603.             } else {
  604.                int var7 = 0;
  605.                if (this.use_hsb) {
  606.                   var7 = this.sb_width;
  607.                }
  608.  
  609.                if (this.scroll_y + this.tsImgHeight + var7 < this.field_0.height) {
  610.                   this.scroll_y = -this.tsImgHeight + this.field_0.height;
  611.                }
  612.             }
  613.  
  614.             this.last_scroll_y = this.scroll_y;
  615.             this.paintIt();
  616.             var2 = false;
  617.          }
  618.  
  619.          return true;
  620.       } else if (var1.target != this.hsb) {
  621.          return super.handleEvent(var1);
  622.       } else {
  623.          if (var1.id != 602 && var1.id != 601 && var1.id != 605) {
  624.             if (var1.id == 604 || var1.id == 603) {
  625.                this.scroll_x = -this.hsb.getValue();
  626.                var3 = true;
  627.             }
  628.          } else {
  629.             this.scroll_x = -this.hsb.getValue();
  630.             var3 = true;
  631.          }
  632.  
  633.          if (var3) {
  634.             if (this.scroll_x >= 0) {
  635.                this.scroll_x = 0;
  636.             } else {
  637.                int var4 = 0;
  638.                if (this.use_sb) {
  639.                   var4 = this.sb_width;
  640.                }
  641.  
  642.                if (this.scroll_x + this.tsImgWidth + var4 < this.field_0.width) {
  643.                   this.scroll_x = -this.tsImgWidth + this.field_0.width;
  644.                }
  645.             }
  646.  
  647.             this.last_scroll_x = this.scroll_x;
  648.             this.paintIt();
  649.             var3 = false;
  650.          }
  651.  
  652.          return true;
  653.       }
  654.    }
  655.  
  656.    public boolean mouseDrag(Event var1, int var2, int var3) {
  657.       return true;
  658.    }
  659.  
  660.    public void setVerticalPagePositionMax() {
  661.       this.setVerticalPagePosition(-this.tsImgHeight - this.field_0.height);
  662.    }
  663.  
  664.    public void drawDeleteAltOffMult(Image[] var1, int[] var2, int[] var3, int[] var4, int[] var5, OCmsl[] var6, boolean var7) {
  665.       this.g_ts.setColor(this.bgColor);
  666.  
  667.       for(int var8 = 0; var8 < var6.length; ++var8) {
  668.          if (var6[var8].subOn) {
  669.             this.g_ts.fillRect(var4[var8], var5[var8], var1[var8].getWidth(this), var1[var8].getHeight(this));
  670.          }
  671.       }
  672.  
  673.    }
  674.  
  675.    public void drawAltOffMult(Image[] var1, int[] var2, int[] var3, int[] var4, int[] var5, OCmsl[] var6, boolean var7) {
  676.       if (!var7) {
  677.          this.g_ts.setColor(this.bgColor);
  678.  
  679.          for(int var8 = 0; var8 < var6.length; ++var8) {
  680.             if (var6[var8].subOn) {
  681.                this.g_ts.fillRect(var4[var8], var5[var8], var1[var8].getWidth(this), var1[var8].getHeight(this));
  682.             }
  683.          }
  684.  
  685.          this.drawAppOff();
  686.       }
  687.  
  688.       for(int var9 = 0; var9 < var6.length; ++var9) {
  689.          if (var6[var9].subOn) {
  690.             this.g_ts.drawImage(var1[var9], var2[var9], var3[var9], this);
  691.          }
  692.       }
  693.  
  694.    }
  695. }
  696.