Class MenuCreator
java.lang.Object
org.biojava.nbio.structure.align.gui.MenuCreator
Create the menus for structure alignment GUI windows (JFrames).
 
Examples: Text Frames, Alignment Panels, Jmol Panels.
- Since:
 - 1.7
 - Author:
 - Andreas Prlic, Aleix Lafita, Spencer Bliven
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCreates a frame to display a DotPlotPanel. - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic ImageIconcreateImageIcon(String path) Returns an ImageIcon, or null if the path was invalid.static JMenuItemstatic JMenuBargetAlignmentPanelMenu(JFrame frame, ActionListener actionListener, AFPChain afpChain, MultipleAlignment msa) Create the menu for the Alignment Panel representation of Structural Alignments.static JMenuBargetAlignmentTextMenu(JFrame frame, ActionListener actionListener, AFPChain afpChain, MultipleAlignment msa) Create the menu for the Text representations of Structural Alignments.static JMenuItemgetCloseMenuItem(JFrame frame) static JMenuItemstatic JMenuItemstatic JMenuItemprotected static JMenuItemgetIcon(ActionListener actionListener, String text) static JMenuItemprotected static JMenuItemstatic JMenuItemprotected static JMenuItemstatic JMenuItemstatic JMenuItemgetSaveAlignmentMenuItem(AFPChain afpChain, MultipleAlignment msa) static JMenuItemstatic JMenuBarinitAlignmentGUIMenu(JFrame frame) static JMenuBarinitJmolMenu(JFrame frame, AbstractAlignmentJmol parent, AFPChain afpChain, MultipleAlignment msa) Provide a JMenuBar that can be added to a JFrame containing a JmolPanel.static voidShow some info about this GUIprotected static voidstatic void 
- 
Field Details
- 
PRINT
- See Also:
 
 - 
ALIGNMENT_PANEL
- See Also:
 
 - 
TEXT_ONLY
- See Also:
 
 - 
PAIRS_ONLY
- See Also:
 
 - 
SELECT_EQR
- See Also:
 
 - 
SIMILARITY_COLOR
- See Also:
 
 - 
EQR_COLOR
- See Also:
 
 - 
FATCAT_BLOCK
- See Also:
 
 - 
LOAD_DB_RESULTS
- See Also:
 
 - 
SAVE_ALIGNMENT_XML
- See Also:
 
 - 
LOAD_ALIGNMENT_XML
- See Also:
 
 - 
FATCAT_TEXT
- See Also:
 
 - 
FASTA_FORMAT
- See Also:
 
 - 
DIST_MATRICES
- See Also:
 
 - 
DOT_PLOT
- See Also:
 
 - 
PAIRWISE_ALIGN
- See Also:
 
 - 
MULTIPLE_ALIGN
- See Also:
 
 - 
PHYLOGENETIC_TREE
- See Also:
 
 - 
keyMask
 
 - 
 - 
Constructor Details
- 
MenuCreator
public MenuCreator() 
 - 
 - 
Method Details
- 
initJmolMenu
public static JMenuBar initJmolMenu(JFrame frame, AbstractAlignmentJmol parent, AFPChain afpChain, MultipleAlignment msa) Provide a JMenuBar that can be added to a JFrame containing a JmolPanel. The alignment has to be either an AFPChain or a MultipleAlignment: set the other parameter to null.Menus included:
- File: open, save, export, import, exit.
 - Align: new pairwise alignment, new multiple alignment.
 - View: alignment panel, aligned pairs, text format, FatCat format, distance matrices, dot plot.
 - Help
 
- Returns:
 - a JMenuBar
 
 - 
getShowPDBMenuItem
 - 
getOpenPDBMenuItem
 - 
getLoadMenuItem
 - 
getAlignmentPanelMenu
public static JMenuBar getAlignmentPanelMenu(JFrame frame, ActionListener actionListener, AFPChain afpChain, MultipleAlignment msa) Create the menu for the Alignment Panel representation of Structural Alignments. The alignment can be in AFPChain format or in the MultipleAlignment format.- Parameters:
 frame-actionListener-afpChain-msa-- Returns:
 - a JMenuBar
 
 - 
getAlignmentTextMenu
public static JMenuBar getAlignmentTextMenu(JFrame frame, ActionListener actionListener, AFPChain afpChain, MultipleAlignment msa) Create the menu for the Text representations of Structural Alignments.- Parameters:
 frame-actionListener-afpChain-msa-- Returns:
 - a JMenuBar
 
 - 
getIcon
 - 
getPrintMenuItem
 - 
getExportPDBMenuItem
 - 
getSaveAlignmentMenuItem
 - 
getAboutMenuItem
 - 
getExitMenuItem
 - 
getHelpMenuItem
 - 
getCloseMenuItem
 - 
showAboutDialog
Show some info about this GUI - 
showSystemInfo
 - 
createImageIcon
Returns an ImageIcon, or null if the path was invalid.- Parameters:
 path- the path to the icon- Returns:
 - ImageIcon object
 
 - 
getPairwiseAlignmentMenuItem
 - 
getMultipleAlignmentMenuItem
 - 
initAlignmentGUIMenu
 - 
showMemoryMonitor
 
 -