home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / ElementDiagram$ZoomInAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.2 KB  |  32 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.BaseAction;
  4. import java.awt.event.ActionEvent;
  5. import javax.swing.AbstractAction;
  6.  
  7. public class ElementDiagram$ZoomInAction extends BaseAction {
  8.    // $FF: synthetic field
  9.    final ElementDiagram this$0;
  10.    ElementDiagram.ZoomOutAction outAction;
  11.  
  12.    public ElementDiagram$ZoomInAction(ElementDiagram var1) {
  13.       super("element.zoomin", 91);
  14.       this.this$0 = var1;
  15.       this.updateEnabled();
  16.    }
  17.  
  18.    public void updateEnabled() {
  19.       ((AbstractAction)this).setEnabled(this.this$0.getZoom() < this.this$0.getZoomMax());
  20.    }
  21.  
  22.    public void setOutAction(ElementDiagram.ZoomOutAction var1) {
  23.       this.outAction = var1;
  24.    }
  25.  
  26.    public void actionOccurred(ActionEvent var1) {
  27.       this.this$0.zoomIn();
  28.       this.updateEnabled();
  29.       this.outAction.updateEnabled();
  30.    }
  31. }
  32.