home *** CD-ROM | disk | FTP | other *** search
/ Borland JBuilder 6 / jbuilder6.iso / IBM VisualAge for Java Enterprise v4.0 Retail / ivj40 / setup / IDE.Cab / F76516_GraphPanelCommandHandler.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-04-25  |  1.1 KB  |  33 lines

  1. package com.ibm.ivb.dgraph;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.awt.event.ActionListener;
  5. import java.util.EventObject;
  6. import javax.swing.JButton;
  7.  
  8. class GraphPanel$CommandHandler implements ActionListener {
  9.    // $FF: synthetic field
  10.    private final GraphPanel this$0;
  11.  
  12.    public void actionPerformed(ActionEvent var1) {
  13.       Object var2 = ((EventObject)var1).getSource();
  14.       if (var2 instanceof JButton) {
  15.          JButton var3 = (JButton)var2;
  16.          if (var3 == GraphPanel.access$1(this.this$0)) {
  17.             this.this$0.zoomIn();
  18.             return;
  19.          }
  20.  
  21.          if (var3 == GraphPanel.access$3(this.this$0)) {
  22.             this.this$0.zoomOut();
  23.          }
  24.       }
  25.  
  26.    }
  27.  
  28.    GraphPanel$CommandHandler(GraphPanel var1) {
  29.       this.this$0 = var1;
  30.       this.this$0 = var1;
  31.    }
  32. }
  33.