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

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

public class MenuCreator
extends java.lang.Object

Create the menu for Fatcat/CE structure alignment stuff

Since:
1.7
Author:
Andreas Prlic

Field Summary
static java.lang.String ALIGNMENT_PANEL
           
static java.lang.String EQR_COLOR
           
static java.lang.String FATCAT_BLOCK
           
static java.lang.String FATCAT_TEXT
           
static java.lang.String LOAD_ALIGNMENT_XML
           
static java.lang.String LOAD_DB_RESULTS
           
static java.lang.String PAIRS_ONLY
           
static java.lang.String PRINT
           
static java.lang.String SAVE_ALIGNMENT_XML
           
static java.lang.String SELECT_EQR
           
static java.lang.String SIMILARITY_COLOR
           
static java.lang.String TEXT_ONLY
           
 
Constructor Summary
MenuCreator()
           
 
Method Summary
static javax.swing.ImageIcon createImageIcon(java.lang.String path)
          Returns an ImageIcon, or null if the path was invalid.
static javax.swing.JMenuItem getAboutMenuItem()
           
static javax.swing.JMenuBar getAlignmentTextMenu(javax.swing.JFrame frame, java.awt.event.ActionListener actionListener, AFPChain afpChain)
          Create the menu for the "Text Only" representation of alignments
static javax.swing.JMenuItem getCloseMenuItem(javax.swing.JFrame frame)
           
static javax.swing.JMenuItem getDBResultMenuItem()
           
static javax.swing.JMenuItem getExitMenuItem()
           
static javax.swing.JMenuItem getExportPDBMenuItem(StructureAlignmentJmol parent)
           
static javax.swing.JMenuItem getHelpMenuItem()
           
static javax.swing.JMenuItem getLoadMenuItem()
           
static javax.swing.JMenuItem getOpenPDBMenuItem()
           
static javax.swing.JMenuItem getPrintMenuItem()
           
static javax.swing.JMenuItem getSaveAlignmentMenuItem(AFPChain afpChain)
           
static javax.swing.JMenuItem getShowPDBMenuItem()
           
static javax.swing.JMenuBar initAlignmentGUIMenu(javax.swing.JFrame frame)
           
static javax.swing.JMenuBar initMenu(javax.swing.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
protected static void showMemoryMonitor()
           
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 java.lang.String PRINT
See Also:
Constant Field Values

ALIGNMENT_PANEL

public static final java.lang.String ALIGNMENT_PANEL
See Also:
Constant Field Values

TEXT_ONLY

public static final java.lang.String TEXT_ONLY
See Also:
Constant Field Values

PAIRS_ONLY

public static final java.lang.String PAIRS_ONLY
See Also:
Constant Field Values

SELECT_EQR

public static final java.lang.String SELECT_EQR
See Also:
Constant Field Values

SIMILARITY_COLOR

public static final java.lang.String SIMILARITY_COLOR
See Also:
Constant Field Values

EQR_COLOR

public static final java.lang.String EQR_COLOR
See Also:
Constant Field Values

FATCAT_BLOCK

public static final java.lang.String FATCAT_BLOCK
See Also:
Constant Field Values

LOAD_DB_RESULTS

public static final java.lang.String LOAD_DB_RESULTS
See Also:
Constant Field Values

SAVE_ALIGNMENT_XML

public static final java.lang.String SAVE_ALIGNMENT_XML
See Also:
Constant Field Values

LOAD_ALIGNMENT_XML

public static final java.lang.String LOAD_ALIGNMENT_XML
See Also:
Constant Field Values

FATCAT_TEXT

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

MenuCreator

public MenuCreator()
Method Detail

initMenu

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

Returns:
a JMenuBar

getDBResultMenuItem

public static javax.swing.JMenuItem getDBResultMenuItem()

getShowPDBMenuItem

public static javax.swing.JMenuItem getShowPDBMenuItem()

getOpenPDBMenuItem

public static javax.swing.JMenuItem getOpenPDBMenuItem()

getLoadMenuItem

public static javax.swing.JMenuItem getLoadMenuItem()

getAlignmentTextMenu

public static javax.swing.JMenuBar getAlignmentTextMenu(javax.swing.JFrame frame,
                                                        java.awt.event.ActionListener actionListener,
                                                        AFPChain afpChain)
Create the menu for the "Text Only" representation of alignments

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

getPrintMenuItem

public static javax.swing.JMenuItem getPrintMenuItem()

getExportPDBMenuItem

public static javax.swing.JMenuItem getExportPDBMenuItem(StructureAlignmentJmol parent)

getSaveAlignmentMenuItem

public static javax.swing.JMenuItem getSaveAlignmentMenuItem(AFPChain afpChain)

getAboutMenuItem

public static javax.swing.JMenuItem getAboutMenuItem()

getExitMenuItem

public static javax.swing.JMenuItem getExitMenuItem()

getHelpMenuItem

public static javax.swing.JMenuItem getHelpMenuItem()

getCloseMenuItem

public static javax.swing.JMenuItem getCloseMenuItem(javax.swing.JFrame frame)

showAboutDialog

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


showSystemInfo

public static void showSystemInfo()

createImageIcon

public static javax.swing.ImageIcon createImageIcon(java.lang.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 javax.swing.JMenuBar initAlignmentGUIMenu(javax.swing.JFrame frame)

showMemoryMonitor

protected static void showMemoryMonitor()