/* * Jalview - A Sequence Alignment Editor and Viewer * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ package jalview.jbgui; import javax.swing.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class GStructureViewer extends JInternalFrame { public GStructureViewer() { try { jbInit(); } catch (Exception ex) { ex.printStackTrace(); } } private void jbInit() throws Exception { this.setJMenuBar(menuBar); fileMenu.setText("File"); savemenu.setActionCommand("Save Image"); savemenu.setText("Save As"); pdbFile.setText("PDB File"); pdbFile.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionEvent) { pdbFile_actionPerformed(actionEvent); } }); png.setText("PNG"); png.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionEvent) { png_actionPerformed(actionEvent); } }); eps.setText("EPS"); eps.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionEvent) { eps_actionPerformed(actionEvent); } }); viewMapping.setText("View Mapping"); viewMapping.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent actionEvent) { viewMapping_actionPerformed(actionEvent); } }); viewMenu.setText("View"); chainMenu.setText("Show Chain"); menuBar.add(fileMenu); menuBar.add(viewMenu); fileMenu.add(savemenu); fileMenu.add(viewMapping); savemenu.add(pdbFile); savemenu.add(png); savemenu.add(eps); viewMenu.add(chainMenu); } JMenuBar menuBar = new JMenuBar(); JMenu fileMenu = new JMenu(); JMenu savemenu = new JMenu(); JMenuItem pdbFile = new JMenuItem(); JMenuItem png = new JMenuItem(); JMenuItem eps = new JMenuItem(); JMenuItem viewMapping = new JMenuItem(); JMenu viewMenu = new JMenu(); protected JMenu chainMenu = new JMenu(); JMenu jMenu1 = new JMenu(); public void pdbFile_actionPerformed(ActionEvent actionEvent) { } public void png_actionPerformed(ActionEvent actionEvent) { } public void eps_actionPerformed(ActionEvent actionEvent) { } public void viewMapping_actionPerformed(ActionEvent actionEvent) { } }