package org.ntlab.deltaViewer; import javax.swing.JMenu; import javax.swing.JMenuBar; import org.ntlab.actions.OpenAction; import org.ntlab.actions.StartAnimationAction; import org.ntlab.actions.StopAnimationAction; import org.ntlab.actions.ZoomInAction; import org.ntlab.actions.ZoomOutAction; import org.ntlab.actions.ZoomActualAction; public class MagnetRONMenuBar extends JMenuBar { public MagnetRONMenuBar(MagnetRONFrame magnetRON) { super(); JMenu fileMenu = add(new JMenu("ファイル")); fileMenu.add(new OpenAction(magnetRON)); JMenu extractsMenu = add(new JMenu("機能抽出")); JMenu animationSettingMenu = add(new JMenu("アニメーション設定")); JMenu viewMenu = add(new JMenu("表示")); viewMenu.add(new ZoomInAction(magnetRON.getViewer())); viewMenu.add(new ZoomOutAction(magnetRON.getViewer())); viewMenu.add(new ZoomActualAction(magnetRON.getViewer())); JMenu animationMenu = add(new JMenu("アニメーション")); animationMenu.add(new StartAnimationAction(magnetRON)); animationMenu.add(new StopAnimationAction(magnetRON)); } }