org.biojava.bio.structure.align.gui
Class MenuCreator

java.lang.Object
  extended by org.biojava.bio.structure.align.gui.MenuCreator

public class MenuCreator
extends Object

Create the menu for Fatcat/CE structure alignment stuff

Since:
1.7
Author:
Andreas Prlic

Field Summary
static String ALIGNMENT_PANEL
           
static String EQR_COLOR
           
static String FATCAT_BLOCK
           
static String FATCAT_TEXT
           
static String LOAD_ALIGNMENT_XML
           
static String LOAD_DB_RESULTS
           
static String PAIRS_ONLY
           
static String PRINT
           
static String SAVE_ALIGNMENT_XML
           
static String SELECT_EQR
           
static String SIMILARITY_COLOR
           
static String TEXT_ONLY
           
 
Constructor Summary
MenuCreator()
           
 
Method Summary
static ImageIcon createImageIcon(String path)
          Returns an ImageIcon, or null if the path was invalid.
static JMenuItem getAboutMenuItem()
           
static JMenuBar getAlignmentTextMenu(JFrame frame, ActionListener actionListener, AFPChain afpChain)
          Create the menu for the "Text Only" representation of alignments
static JMenuItem getCloseMenuItem(JFrame frame)
           
static JMenuItem getDBResultMenuItem()
           
static JMenuItem getExitMenuItem()
           
static JMenuItem getExportPDBMenuItem(StructureAlignmentJmol parent)
           
static JMenuItem getHelpMenuItem()
           
static JMenuItem getLoadMenuItem()
           
static JMenuItem getOpenPDBMenuItem()
           
static JMenuItem getPrintMenuItem()
           
static JMenuItem getSaveAlignmentMenuItem(AFPChain afpChain)
           
static JMenuItem getShowPDBMenuItem()
           
static JMenuBar initAlignmentGUIMenu(JFrame frame)
           
static JMenuBar initMenu(JFrame frame, StructureAlignmentJmol parent, AFPChain afpChain)
          provide a JMenuBar that can be added to a JFrame
static void showAboutDialog()
          show some info about this gui
static void showSystemInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRINT

public static final String PRINT
See Also:
Constant Field Values

ALIGNMENT_PANEL

public static final String ALIGNMENT_PANEL
See Also:
Constant Field Values

TEXT_ONLY

public static final String TEXT_ONLY
See Also:
Constant Field Values

PAIRS_ONLY

public static final String PAIRS_ONLY
See Also:
Constant Field Values

SELECT_EQR

public static final String SELECT_EQR
See Also:
Constant Field Values

SIMILARITY_COLOR

public static final String SIMILARITY_COLOR
See Also:
Constant Field Values

EQR_COLOR

public static final String EQR_COLOR
See Also:
Constant Field Values

FATCAT_BLOCK

public static final String FATCAT_BLOCK
See Also:
Constant Field Values

LOAD_DB_RESULTS

public static final String LOAD_DB_RESULTS
See Also:
Constant Field Values

SAVE_ALIGNMENT_XML

public static final String SAVE_ALIGNMENT_XML
See Also:
Constant Field Values

LOAD_ALIGNMENT_XML

public static final String LOAD_ALIGNMENT_XML
See Also:
Constant Field Values

FATCAT_TEXT

public static final String FATCAT_TEXT
See Also:
Constant Field Values
Constructor Detail

MenuCreator

public MenuCreator()
Method Detail

initMenu

public static JMenuBar initMenu(JFrame frame,
                                StructureAlignmentJmol parent,
                                AFPChain afpChain)
provide a JMenuBar that can be added to a JFrame

Returns:
a JMenuBar

getDBResultMenuItem

public static JMenuItem getDBResultMenuItem()

getShowPDBMenuItem

public static JMenuItem getShowPDBMenuItem()

getOpenPDBMenuItem

public static JMenuItem getOpenPDBMenuItem()

getLoadMenuItem

public static JMenuItem getLoadMenuItem()

getAlignmentTextMenu

public static JMenuBar getAlignmentTextMenu(JFrame frame,
                                            ActionListener actionListener,
                                            AFPChain afpChain)
Create the menu for the "Text Only" representation of alignments

Parameters:
frame -
actionListener -
afpChain -
Returns:
a JMenuBar

getPrintMenuItem

public static JMenuItem getPrintMenuItem()

getExportPDBMenuItem

public static JMenuItem getExportPDBMenuItem(StructureAlignmentJmol parent)

getSaveAlignmentMenuItem

public static JMenuItem getSaveAlignmentMenuItem(AFPChain afpChain)

getAboutMenuItem

public static JMenuItem getAboutMenuItem()

getExitMenuItem

public static JMenuItem getExitMenuItem()

getHelpMenuItem

public static JMenuItem getHelpMenuItem()

getCloseMenuItem

public static JMenuItem getCloseMenuItem(JFrame frame)

showAboutDialog

public static void showAboutDialog()
show some info about this gui


showSystemInfo

public static void showSystemInfo()

createImageIcon

public static ImageIcon createImageIcon(String path)
Returns an ImageIcon, or null if the path was invalid.

Parameters:
path - the path to the icon
Returns:
ImageIcon object

initAlignmentGUIMenu

public static JMenuBar initAlignmentGUIMenu(JFrame frame)