actionyaxistreeexpand.java

来自「fortran并行计算包」· Java 代码 · 共 41 行

JAVA
41
字号
/* *  (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.*;public class ActionYaxisTreeExpand implements ActionListener{    private ToolBarStatus      toolbar;    private YaxisTree          tree_view;    public ActionYaxisTreeExpand( ToolBarStatus   in_toolbar,                                  YaxisTree       in_tree )    {        toolbar    = in_toolbar;        tree_view  = in_tree;    }    public void actionPerformed( ActionEvent event )    {        if ( Debug.isActive() )            Debug.println( "Action for Expand Tree button" );        tree_view.expandLevel();        toolbar.getYaxisTreeCommitButton().doClick();        // Set toolbar buttons to reflect status        toolbar.resetYaxisTreeButtons();    }}

⌨️ 快捷键说明

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