⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 actionzoomredo.java

📁 fortran并行计算包
💻 JAVA
字号:
/* *  (C) 2001 by Argonne National Laboratory *      See COPYRIGHT in top-level directory. *//* *  @author  Anthony Chan */package viewer.zoomable;import java.awt.*;import java.awt.event.*;import java.net.*;import javax.swing.*;import base.drawable.TimeBoundingBox;import viewer.common.Const;import viewer.common.Dialogs;public class ActionZoomRedo implements ActionListener{    private ToolBarStatus      toolbar;    private ModelTime          model;    public ActionZoomRedo( ToolBarStatus in_toolbar, ModelTime in_model )    {        toolbar    = in_toolbar;        model      = in_model;    }    public void actionPerformed( ActionEvent event )    {        Window  window;        String  msg;        if ( model.isZoomRedoStackEmpty() ) {            window  = SwingUtilities.windowForComponent( (JToolBar) toolbar );            msg     = "Zoom Redo Stack is empty";            Dialogs.warn( window, msg );        }        else            model.zoomRedo();        // Set toolbar buttons to reflect status        if ( toolbar != null )            toolbar.resetZoomButtons();        if ( Debug.isActive() )            Debug.println( "Action for Zoom Redo button." );    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -